@php $quickAccessModules = ($tenantNavigation ?? null)?->visibleModuleLauncherCards() ?? []; $nurseryPrimaryShell = function_exists('is_nursery_shell') && is_nursery_shell(); $tenantHome = function_exists('tenant_home_route') ? tenant_home_route() : route('dashboard'); @endphp {{-- Top Global Navbar — يُدمَج داخل .flex.flex-col.min-h-screen في التخطيط الأم --}}
{{-- LEFT (App Switcher + Logo + Breadcrumb) --}}
@guest @else @unless($nurseryPrimaryShell) {{-- فتح مودال يدوياً بعد bootstrap.bundle (نفس أسلوب استيراد الحسابات) لتفادي تعطيل data-api على السيرفر --}} @endunless @endguest {{ config('app.name') }} @hasSection('breadcrumb') @else @endif
{{-- CENTER (Global Search) — مخفي لحضانة SaaS لتجنب سياق ERP العام --}} @unless($nurseryPrimaryShell) @endunless {{-- RIGHT (Notifications + Quick Apps + User) --}}
@auth @php $unreadCount = Auth::user()->unreadNotifications()->count(); $recentNotifications = Auth::user()->notifications()->latest()->limit(8)->get(); @endphp {{-- التنبيهات: Bootstrap dropdown (موثوق مع Livewire/Filament على السيرفر) — نفس التنسيق السابق --}} {{-- User menu: Bootstrap dropdown (أكثر موثوقية من Alpine مع Livewire/Filament على السيرفر) --}} @endauth
@auth @unless($nurseryPrimaryShell) {{-- مودال الوصول السريع للوحدات (Bootstrap فقط) --}} @endunless @endauth