@php $tabs = collect($menu)->filter(fn ($item) => isset($item['tab']))->values(); @endphp @if ($tabs->isNotEmpty()) @endif