{{-- Top Bar --}}
{{-- خلفيات ملحمية (Visual فقط) --}}
@php use App\Helpers\TestHelper; $siteLogo = \App\Models\SystemSetting::get('site_logo'); $siteName = \App\Models\SystemSetting::get('site_name', 'لوحة التحكم المتقدمة'); $unreadTipsCount = 0; $unreadManualNotificationsCount = 0; try { if (Schema::hasTable('advisor_tips') && Schema::hasColumn('advisor_tips', 'recipient_id') && Schema::hasColumn('advisor_tips', 'is_read')) { $unreadTipsCount = \App\Models\AdvisorTip::where('recipient_id', auth()->id()) ->where('is_read', false) ->count(); } } catch (Exception $e) {} try { if (Schema::hasTable('manual_notifications') && Schema::hasColumn('manual_notifications', 'is_read')) { $unreadManualNotificationsCount = \App\Models\ManualNotification::where('is_read', false)->count(); } } catch (Exception $e) {} $recentNotifications = \App\Http\Controllers\General\GeneralNotificationController::getRecentNotifications(); $unreadNotificationsCount = \App\Http\Controllers\General\GeneralNotificationController::getUnreadNotificationsCount(); $testsCount = TestHelper::countAvailableTests(); @endphp
{{-- اليسار: زر القائمة + الشعار + عنوان الصفحة --}}
{{-- زر القائمة للموبايل --}} {{-- الشعار --}} @if($siteLogo)
{{ $siteName }}
@endif {{-- عنوان الصفحة + وصف صغير --}}

@yield('page-title', 'لوحة السوبر أدمن')

مرحباً بك في نظام {{ $siteName }} — مساحة إدارة متقدمة لمتابعة كل تفاصيل الفريق.

{{-- اليمين: شريط الأيقونات --}}
{{-- شريط الأيقونات --}}
{{-- مركز النشاط (Tabbed Dropdown) --}} {{-- مركز النشاط (Small Card + Tabs + Scroll) --}} {{-- مركز النشاط (Small Card + Tabs + Scroll) --}}
{{-- النصائح المستلمة --}} @if($unreadTipsCount > 0) {{ $unreadTipsCount > 9 ? '9+' : $unreadTipsCount }} @endif {{-- الإشعارات اليدوية --}} {{-- (تركتها زي ما هي عندك: ما أضفت زر جديد عشان ما نغامر بروت/صفحة مش موجودة) --}} {{-- المتواجدون الآن (Dropdown) --}}
{{-- لازم يبقى مباشرة بعد الزر (عشان JS) --}}
{{-- الإشعارات الأوتوماتيكية (Dropdown) --}}
{{-- لازم يبقى مباشرة بعد الزر (عشان JS) --}}
{{-- الاختبارات المتاحة --}} @if($testsCount > 0) {{ $testsCount }} @endif
{{-- Theme Toggle Button --}} {{-- الوقت الحالي (بعد الأيقونات) --}}
@push('scripts') @endpush @push('scripts') @endpush
@if (session('success'))
تم بنجاح
{{ session('success') }}
@endif @if (session('error'))
حدث خطأ
{{ session('error') }}
@endif @yield('content')