• @if($count > 0) {{ $count }} إشعارات غير مقروءة @endif
    @if($count > 0) لديك {{ $count }} إشعار{{ $count == 1 ? '' : 'ات' }} @else لا توجد إشعارات @endif @if($count > 0) @endif
    @if($count > 0) @foreach($recentNotifications as $notification)
    @if(isset($notification->data['type'])) @switch($notification->data['type']) @case('leave')
    @break @case('loan')
    @break @case('payroll')
    @break @case('attendance')
    @break @case('employee')
    @break @default
    @endswitch @else
    @endif
    {{ $notification->data['title'] ?? 'إشعار جديد' }}
    @if(!$notification->read_at) جديد @endif

    {{ Str::limit($notification->data['message'] ?? 'لديك إشعار جديد', 50) }}

    {{ $notification->created_at->diffForHumans() }}
    @endforeach @else

    لا توجد إشعارات حالياً

    ستظهر الإشعارات هنا عند توفرها
    @endif
    عرض جميع الإشعارات
    @if($count > 0) @endif