{{-- Quick search (Ctrl K / ⌘K): jumps to a module the signed-in role may open. Same access matrix the server enforces; the server still decides. --}} @php $role = auth()->user()->role; $icons = ['dashboard' => 'layout-dashboard', 'workers' => 'users', 'attendance' => 'map-pin', 'schedules' => 'calendar-clock', 'leave' => 'calendar-days', 'reports' => 'chart-column', 'orders' => 'package', 'settings' => 'settings']; $entries = collect(\App\Enums\AppModule::accessibleTo($role))->map(fn ($m) => ['label' => __($m->navLabelKey($role)), 'href' => route($m->value), 'icon' => $icons[$m->value]])->values(); $entries->push(['label' => __('notifications.title'), 'href' => route('notifications'), 'icon' => 'bell']); @endphp