{{-- resources/views/superadmin/notifications-monitor/show.blade.php --}} @extends('layouts.superadmin') @section('title', 'متابعة إشعار #' . $notification->id) @section('page-title', 'متابعة إشعار إداري') @section('content')
{{-- معلومات الإشعار + أزرار --}}
إشعار إداري رقم #{{ $notification->id }} @if(str_contains($notification->title, '[تذكير]')) تذكير @endif

{{ $notification->title }}

{{ $notification->content }}

مرسل الإشعار: {{ optional($notification->creator)->name ?? 'غير معروف' }} أُرسل بتاريخ: {{ $notification->created_at?->format('Y-m-d H:i') }}
{{-- إحصائيات سريعة + زر تذكير جماعي --}}

الإجمالي

{{ $stats['total'] }}

قرؤوا

{{ $stats['read'] }}

لم يقرأوا

{{ $stats['unread'] }}

@csrf
العودة إلى قائمة الإشعارات
{{-- جدول المستلمين --}}

متابعة قراءة الإشعار حسب الأعضاء

@if($recipients->isEmpty())
لا يوجد مستلمين لهذا الإشعار.
@else
@foreach($recipients as $recipient) @php $user = $recipient->user; @endphp @endforeach
العضو بيانات الاتصال الحالة تاريخ الإرسال / القراءة تذكير
{{ $user?->name ?? 'عضو محذوف' }} @if($user?->username) {{ '@' . $user->username }} @endif
@if($user?->email)
{{ $user->email }}
@else لا يوجد بيانات @endif
@if($recipient->read) مقروء @else غير مقروء @endif
أُرسل: {{ $recipient->created_at?->format('Y-m-d H:i') }}
@if($recipient->read_at)
قُرئ: {{ $recipient->read_at->format('Y-m-d H:i') }}
@endif
@csrf
{{ $recipients->onEachSide(1)->links() }}
@endif
@endsection