@php $user = auth()->user(); $isCustomer = $user?->isCustomer() ?? false; $customerModules = $isCustomer ? app(\App\Services\Module\ModuleManager::class)->accessibleModulesForUser($user) : []; $staffNavItems = [ ['route' => 'dashboard', 'icon' => 'ph-light ph-squares-four', 'label' => 'Dashboard'], ['route' => 'staff.index', 'icon' => 'ph-light ph-users-three', 'label' => 'Staff & Permissions', 'active_routes' => ['staff.*', 'roles.*', 'customers.*']], ['route' => 'modules.index', 'icon' => 'ph-light ph-puzzle-piece', 'label' => 'Modules', 'permission' => 'MODULES_VIEW'], ['route' => 'marketplace.index', 'icon' => 'ph-light ph-storefront', 'label' => 'Marketplace', 'permission' => 'MARKETPLACE_VIEW'], ['route' => 'wallet.index', 'icon' => 'ph-light ph-wallet', 'label' => 'Wallet', 'permission' => 'MARKETPLACE_VIEW'], ['route' => 'updates.index', 'icon' => 'ph-light ph-arrow-clockwise', 'label' => 'Updates', 'permission' => 'SETTINGS_VIEW'], ['route' => 'settings.index', 'icon' => 'ph-light ph-gear', 'label' => 'Settings', 'permission' => 'SETTINGS_VIEW'], ['route' => 'audit-logs.index', 'icon' => 'ph-light ph-clock-counter-clockwise', 'label' => 'Audit Logs', 'permission' => 'AUDIT_VIEW'], ]; @endphp