@extends('admin.layouts.master') @section('title', 'الإشعارات') @section('content')
{{-- Page Header --}} @if(session('success'))
{{ session('success') }}
@endif {{-- Stats Row --}}
غير مقروء
{{ $unreadCount }}
الإجمالي
{{ $notifications->total() }}
{{-- Filters --}}
تصفية الإشعارات
@if(($canFilterBranches ?? false) && auth()->user()->isSuperAdmin())
@endif
مسح
{{-- Notifications Table --}}
@forelse($notifications as $notif) @empty @endforelse
الإشعار النوع الأولوية التاريخ الحالة إجراء
{{ $notif->title }} {{ $notif->message }}
{{ $notif->type_label }} @php $priorityLabels = ['low' => 'منخفضة', 'normal' => 'عادية', 'high' => 'عالية', 'urgent' => 'عاجلة']; $priorityClasses = ['low' => 'badge bg-secondary', 'normal' => 'badge bg-info text-dark', 'high' => 'badge bg-warning text-dark', 'urgent' => 'badge bg-danger']; @endphp {{ $priorityLabels[$notif->priority] ?? '-' }} {{ $notif->time_ago }} @if($notif->is_unread) جديد @else مقروء @endif @if($notif->action_url) فتح @else @endif
لا توجد إشعارات مطابقة
@if($notifications->hasPages())
{{ $notifications->links() }}
@endif
@endsection