@extends('layouts.main_dashboard.app') @section('title', app()->getLocale() === 'ar' ? 'تنبيهات أولياء الأمور' : 'Parent Alerts') @section('skip_page_hero', true) @php $isArabic = app()->getLocale() === 'ar'; @endphp @section('content')

{{ $isArabic ? 'تنبيهات أولياء الأمور' : 'Parent Alerts' }}

{{ $isArabic ? 'تنبيهات صحية لأولياء الأمور' : 'Health Alerts for Parents' }}

{{ $isArabic ? 'سجل التنبيهات المرسلة' : 'Sent alerts history' }}

@foreach($alertCards as $alert)

{{ $alert['title'] }}

{{ $alertTypes[$alert['model']->type] ?? $alert['model']->type }} {{ $priorities[$alert['model']->priority] ?? $alert['model']->priority }}
{{ $isArabic ? 'نطاق الإرسال:' : 'Scope:' }} {{ $alert['model']->recipient_scope === 'all_parents' ? ($isArabic ? 'جميع أولياء الأمور' : 'All parents') : ($isArabic ? 'أولياء أمور محددون' : 'Specific parents') }} {{ $isArabic ? 'المستلمون:' : 'Recipients:' }} {{ $alert['resolved_users'] }} {{ $isArabic ? 'بريد ناجح:' : 'Email sent:' }} {{ $alert['email_sent'] }} {{ $isArabic ? 'داخل النظام:' : 'In-app:' }} {{ $alert['in_app_delivered'] }} {{ $isArabic ? 'آخر إرسال:' : 'Last sent:' }} {{ $alert['sent_at_label'] }}

{{ $alert['message'] }}

{{ $isArabic ? 'القنوات:' : 'Channels:' }} {{ $alert['channel_summary'] }}

@csrf
@endforeach @if($alertCards->isEmpty())

{{ $isArabic ? 'لا توجد تنبيهات مرسلة حتى الآن' : 'No sent alerts yet' }}

{{ $isArabic ? 'ابدئي بإرسال أول تنبيه صحي من النموذج الموجود في أعلى الصفحة.' : 'Start by sending your first alert from the form above.' }}

@endif
@if(method_exists($alerts, 'links'))
{{ $alerts->links() }}
@endif
@endsection