@extends('layouts.main_dashboard.app') @section('title', app()->getLocale() === 'ar' ? 'تنبيهات صحية للطلاب' : 'Student Health Alerts') @section('skip_page_hero', true) @php $isArabic = app()->getLocale() === 'ar'; @endphp @section('content')
{{ $isArabic ? 'طلاب لديهم تنبيهات' : 'Students with alerts' }}
{{ $summary['total_alerts'] }}
{{ $isArabic ? 'حالات شديدة' : 'Severe conditions' }}
{{ $summary['severe_conditions'] }}
{{ $isArabic ? 'حساسيات شديدة' : 'Severe allergies' }}
{{ $summary['severe_allergies'] }}

{{ $isArabic ? 'تنبيهات صحية ظاهرة للمعلمين' : 'Teacher-visible health alerts' }}

@forelse($studentAlertCards as $student)

{{ $student['name'] }}

{{ $student['class_name'] }}

@if($student['teacher_alert_note'])

{{ $student['teacher_alert_note'] }}

@endif
@if($student['severe_condition_flag']) {{ $isArabic ? 'تحذير شديد' : 'Severe alert' }} @endif
{{ $isArabic ? 'بطاقة الطوارئ' : 'Emergency card' }}
{{ $student['emergency_contact'] }}
{{ $student['preferred_hospital'] }}
{{ $isArabic ? 'الحساسيات الظاهرة' : 'Visible allergies' }}
{{ $student['visible_allergies'] }}
@empty
{{ $isArabic ? 'لا توجد تنبيهات صحية ضمن صفوفك الحالية.' : 'There are no health alerts in your current classes.' }}
@endforelse
@endsection