{{-- The theme's side menu, fed from data. `groups` is the Navigation::groups() shape: each group's items are ['label', 'route', 'icon', 'active'?, 'can'?]. Groups are separated by the theme's divider rather than headed by a label, as in botique's panel; a group every item of which is gated away renders nothing, so two dividers never stack. --}} @props(['groups' => []]) @php $groups = collect($groups) ->map(fn ($group) => collect($group['items'])->filter(fn ($item) => ! isset($item['can']) || auth()->user()?->can($item['can']))) ->filter(fn ($items) => $items->isNotEmpty()) ->values(); @endphp