{{--
--}}
@stack('styles')
@if (isset($isPreview) && $isPreview)
Beranda
@else
Beranda
@endif @foreach ($menuGrouped as $key => $menuGroup) @php if (isset($isPreview) && $isPreview) { $parentUrl = 'preview-menu/' . ($menuGroup['url'] ?? ''); } else { $parentUrl = 'menu/' . ($menuGroup['url'] ?? ''); } $isParentActive = request()->is($parentUrl) || request()->is($parentUrl . '/*'); @endphp @if (!empty($menuGroup['children']))
{{ $menuGroup['label'] }}
@foreach ($menuGroup['children'] as $child) @php if (isset($isPreview) && $isPreview) { $childUrl = 'preview-menu/' . ($child['url'] ?? ''); } else { $childUrl = 'menu/' . ($child['url'] ?? ''); } $isChildActive = request()->is($childUrl); @endphp
{{ $child['label'] }} @if (isset($isPreview) && $isPreview)
Preview
@endif
@endforeach
@else
@if (isset($isPreview) && $isPreview)
{{ $menuGroup['label'] }}
Preview
@else
{{ $menuGroup['label'] }}
@endif
@endif @endforeach
@yield('content')
{{-- FOOTER --}}
@stack('scripts')