{{-- resources/views/superadmin/system-notifications/panel/index.blade.php --}} @extends('layouts.superadmin') @section('title', 'متابعة إشعارات النظام') @section('page-title', '📡 إشعارات النظام الأوتوماتيكية') @section('content')
{{-- هيدر البانيل --}}
لوحة متابعة إشعارات النظام الأوتوماتيكية (4 + 5 + 3)

إشعارات النظام الإدارية المرسلة

هنا تتابع كل إشعارات النظام التي تم توليدها أوتوماتيكياً، تشوف الجمهور المستهدف، عدد الذين قرؤوا، وأولوية المتابعة الذكية (Smart Follow) مع إمكانية تسجيل تذكير جماعي لنفس الإشعار.

{{-- بحث + فلاتر --}}
@php $currentFilter = $filter ?? 'all'; @endphp
{{-- جدول / بانيل الإشعارات --}}
@if($notifications->isEmpty())
لا توجد إشعارات نظام أوتوماتيكية مسجلة بعد.
@else {{-- نسخة موبايل: كروت --}}
@foreach($notifications as $notification) @php $priority = $notification->follow_priority ?? 'low'; $readsCount = $notification->reads_count ?? 0; $priorityLabel = [ 'high' => 'أولوية عالية', 'medium' => 'متوسط المتابعة', 'low' => 'أولوية منخفضة', ][$priority] ?? 'أولوية منخفضة'; $priorityClasses = [ 'high' => 'bg-rose-50 text-rose-700 dark:bg-rose-900/40 dark:text-rose-200', 'medium' => 'bg-amber-50 text-amber-700 dark:bg-amber-900/40 dark:text-amber-200', 'low' => 'bg-emerald-50 text-emerald-700 dark:bg-emerald-900/40 dark:text-emerald-200', ][$priority] ?? 'bg-emerald-50 text-emerald-700 dark:bg-emerald-900/40 dark:text-emerald-200'; @endphp

{{ $notification->message }}

@if($notification->audience_type === 'general') إشعار عام @else إشعار خاص @endif {{ $priorityLabel }}
#{{ $notification->id }}
{{ $notification->created_at?->format('Y-m-d') }}
{{ $notification->created_at?->format('H:i') }}
{{ $readsCount }} قراءة
@csrf
@if($notification->action_url) @endif
@endforeach
{{ $notifications->onEachSide(1)->links() }}
@endif
@endsection