• @php $unreadCount = auth()->user()?->unreadNotifications()->count() ?? 0; @endphp @if($unreadCount > 0) {{ $unreadCount > 9 ? '9+' : $unreadCount }} @else @endif
    الإشعارات
    @php $notifications = auth()->user()?->notifications()->latest()->limit(10)->get() ?? collect(); @endphp @forelse($notifications as $notif)
    @if(($notif->data['type'] ?? '') === 'invoice_posted') @elseif(($notif->data['type'] ?? '') === 'low_stock') @else @endif {{ $notif->data['message'] ?? 'إشعار جديد' }}
    {{ $notif->created_at->diffForHumans() }}
    @empty
    لا توجد إشعارات
    @endforelse
    عرض كل الإشعارات
    • Account Settings

    • تسجيل الخروج
      @csrf