@props(['items' => []])
Menu
@foreach(\App\Models\Section::where('status', true)->orderBy('order_section')->get() as $section) @if($section->icon)
{{ $section->title }} icon
@endif {{ $section->title }}
@endforeach
@foreach($items as $item) @if($item->children->isEmpty()) {{ $item->getName() }} @if($item->isActive()) @endif @else
@foreach($item->children->sortBy('order_section') as $child) @endforeach
@endif @endforeach
@push('scripts') @endpush