@php // Define the navigation items for the application $navItems = [ // Notifications item [ 'icon' => 'bell', 'label' => 'الاشعارات', 'tooltip' => 'الاشعارات', 'modal' => 'notificationModal', 'badge' => '', // Originally had: {{ \App\Models\Notification::where('user_id', Auth::user()->id)->where('read', 0)->count() }} // 'active' => request()->route()->named('notifiuser'), ], // Home item - also in mobile bottom nav [ 'icon' => 'gamepad-2', 'label' => 'الرئيسية', 'route' => 'index', 'tooltip' => 'الرئيسية', 'hideOnMobile' => true, 'showInBottomNav' => true, // 'active' => request()->route()->named('Games'), ], // Orders item - also in mobile bottom nav [ 'icon' => 'shopping-cart', 'label' => 'الطلبات', 'route' => 'order.index', 'tooltip' => 'الطلبات', 'hideOnMobile' => true, 'showInBottomNav' => true, // 'active' => request()->route()->named('showOrders'), ], // Payments item - also in mobile bottom nav [ 'icon' => 'banknote', 'label' => 'الدفعات', 'route' => 'payments.index', 'tooltip' => 'الدفعات', 'hideOnMobile' => true, 'showInBottomNav' => true, // 'active' => request()->route()->named('showPayments'), ], // Balance request item (conditional) [ 'icon' => 'credit-card', 'label' => 'طلب رصيد', 'route' => 'charge.index', 'tooltip' => 'طلب رصيد', // 'condition' => Auth::user()->canRequestBalance == 1, // 'active' => request()->route()->named('canRequestBalance'), ], // Support item [ 'label' => 'دفعات طلبات الرصيد', 'route' => 'payments.creditRequest.index', 'tooltip' => 'طلبات الرصيد', 'icon' => 'wallet', // 'active' => request()->route()->named('support'), ], // Account item [ 'icon' => 'circle-user', 'label' => 'الحساب', 'route' => 'profile.edit', 'tooltip' => 'الحساب الشخصي', // 'active' => request()->route()->named('profile.edit'), ], // Security Center item [ 'icon' => 'shield', 'label' => 'مركز الأمان', 'route' => 'security.index', 'tooltip' => 'جميع خيارات الأمان والحماية', // 'active' => request()->route()->named('security.index'), ], // PIN Code item (sub-item) [ 'icon' => 'key', 'label' => 'البين كود', 'route' => 'security.pin.index', 'tooltip' => 'إدارة البين كود', 'hideOnMobile' => true, ], // Biometric item (sub-item) [ 'icon' => 'fingerprint', 'label' => 'البصمة', 'route' => 'security.biometric.index', 'tooltip' => 'إدارة التحقق بالبصمة', 'hideOnMobile' => true, // 'active' => request()->route()->named('security.biometric.index'), ], // User Logs item [ 'icon' => 'shield-alert', 'label' => 'سجلات الدخول', 'route' => 'security.logs.welcome', 'tooltip' => 'تتبع عمليات الدخول والأجهزة', 'hideOnMobile' => true, // 'active' => request()->route()->named('security.logs.index'), ], [ 'icon' => 'code', 'label' => 'API', 'route' => 'API_Documentation', 'tooltip' => 'Link', // 'condition' => !Auth::user()->pin == null && Auth::user()->api_status == 1, ], ]; @endphp