@section('title', 'الإشعارات') @section('page-title', 'الإشعارات') @section('page-description', 'جميع إشعارات المحطة والتنبيهات المهمة')

{{ $stats['total'] }}

إجمالي الإشعارات

{{ $stats['unread'] }}

غير مقروءة

{{ $stats['read'] }}

مقروءة

@if($stats['unread'] > 0) @endif
@if($notifications->count() > 0)
@foreach($notifications as $notification)
@switch($notification->type) @case('fuel_request_approved') @break @case('fuel_request_rejected') @break @case('fuel_request_ready_delivery') @break @default @endswitch

{{ $notification->title }}

{{ $notification->message }}

{{ $notification->created_at->diffForHumans() }} {{ $notification->type_name }} @if($notification->isUnread()) جديد @endif
@if($notification->isUnread()) @endif
@csrf @method('DELETE')
@endforeach
{{ $notifications->withQueryString()->links() }}
@else

لا توجد إشعارات

@if(request()->filled('status') || request()->filled('type')) لا توجد إشعارات تطابق الفلاتر المحددة. إعادة تعيين الفلاتر @else ستظهر هنا جميع إشعارات المحطة والتنبيهات المهمة. @endif

@endif
@push('scripts') @endpush