@if (($langId || $navigation->navigationable_type == \App\Models\Menu::class) && $isSubNav)
@endif
@if ($langId || $navigation->navigationable_type == \App\Models\Menu::class)
@if ($isSubNav)
@php
$path = basename(Request::path());
@endphp
@foreach ($nav['navigationsTakeData'] as $key => $navSub)
@if ($key == $navigation->id)
@foreach ($navSub as $sub)
@php
$isCurrent =
!empty($path) &&
$path ==
$sub->navigationable->slug;
$url =
$sub->navigationable->link !==
null
? getNavUrl(
$sub->navigationable
->link,
)
: route('categoryPage', [
'category' =>
$navigation
->navigationable
->slug,
'slug' =>
$sub->navigationable
->slug,
]);
@endphp
@endforeach
@endif
@endforeach
@endif
@endif