@extends('layouts.app') @section('title', 'الإشعارات') @section('styles') @endsection @section('content') {{-- Stats --}}

الإجمالي

{{ $stats['total'] ?? 0 }}

غير مقروءة

{{ $stats['unread'] ?? 0 }}

عاجلة

{{ $stats['urgent'] ?? 0 }}
{{-- Table --}}

قائمة الإشعارات

@if($notifications->count() > 0)
@foreach($notifications as $index => $notification) @endforeach
# العنوان الرسالة النوع الهدف الأولوية التاريخ
{{ $notifications->firstItem() + $index }} {{ $notification->title }} {{ Str::limit($notification->message, 50) }} @if($notification->type == 'info') معلومات @elseif($notification->type == 'warning') تحذير @elseif($notification->type == 'urgent') عاجل @elseif($notification->type == 'success') نجاح @else {{ $notification->type }} @endif @if($notification->target == 'all') الكل @elseif($notification->target == 'department') قسم @elseif($notification->target == 'specific') محدد @else {{ $notification->target }} @endif {{ $notification->priority ?? '-' }} {{ $notification->created_at ? \Carbon\Carbon::parse($notification->created_at)->format('Y-m-d') : '-' }}
{{ $notifications->withQueryString()->links() }}
@else

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

@endif
{{-- Add Modal --}} {{-- Stat Modal --}}
@endsection @section('scripts') @endsection