@extends('layouts.superadmin') @section('title', 'تفاصيل الإشعار') @section('content')

تفاصيل الإشعار

عرض تفاصيل الإشعار وإحصائيات القراءة

معلومات الإشعار

{{ $notification->status_text }}

{{ $notification->title }}

{{ $notification->content }}

@if($notification->attachment)
@if($notification->isAttachmentImage()) @else تحميل الملف @endif {{ $notification->attachment }}
@endif
{{ $notification->recipient_type_text }}
@if($notification->recipient_type !== 'all' && $notification->recipient_data)
@if($notification->recipient_type === 'roles') @foreach($notification->recipient_data as $roleName) @php $role = \Spatie\Permission\Models\Role::where('name', $roleName)->first(); @endphp {{ $role ? $role->display_name : $roleName }} @endforeach @elseif($notification->recipient_type === 'specific_users') @foreach($notification->recipients as $user) {{ $user->name }} @endforeach @endif
@endif

{{ $notification->creator->name }}

{{ $notification->created_at->format('Y/m/d H:i') }}

@if($notification->sent_at)

{{ $notification->sent_at->format('Y/m/d H:i') }}

@endif
@if($notification->status === 'sent')

{{ number_format($stats['total_recipients']) }}

إجمالي المستلمين

{{ number_format($stats['read_count']) }}

تم قراءته

{{ number_format($stats['unread_count']) }}

لم يقرأ بعد

{{ $stats['read_percentage'] }}%

معدل القراءة

قائمة المستلمين

تم القراءة
لم يقرأ بعد
@if($notification->notificationRecipients->count() > 0)
@foreach($notification->notificationRecipients as $recipient) @endforeach
العضو الدور حالة القراءة وقت القراءة
{{ $recipient->user->name }}
{{ $recipient->user->email }}
{{ $recipient->user->role_name }} @if($recipient->read) تم القراءة @else لم يقرأ @endif @if($recipient->read_at)
{{ $recipient->read_at->format('Y/m/d') }}
{{ $recipient->read_at->format('H:i') }}
@else - @endif
@else

لا يوجد مستلمين

لم يتم إرسال هذا الإشعار بعد

@endif
@else

إشعار في المسودة

هذا الإشعار محفوظ كمسودة ولم يتم إرساله للأعضاء بعد. يمكنك تعديله أو إرساله من خلال الأزرار أعلاه.

@endif
@endsection