@php $items = filament()->getUserMenuItems(); $logoutItem = $items['logout'] ?? null; $currentTenant = filament()->getTenant(); $currentTenantName = $currentTenant ? filament()->getTenantName($currentTenant) : null; $navigation = $component->getNavigation(); $hasDisplayAndAccessibility = $component->hasDisplayAndAccessibility(); $hasCompanySettings = $component->hasCompanySettings(); $hasLogoutItem = $component->hasLogoutItem(); $panels = $component->getNavigationAsHierarchyArray(); @endphp
@foreach($panels as $panelId => $panel) @if($panelId !== 'main' && isset($panel['label'])) @endif @if($panel['renderItems']) @foreach($panel['items'] as $item) @endforeach @endif @if($panelId === 'company-settings') @endif @if($panelId === 'company-switcher') @endif @if($panelId === 'display-and-accessibility') @endif @if($panelId === 'main' && $hasLogoutItem) @endif @endforeach