@extends('layouts.main_dashboard.app') @section('title', app()->getLocale() === 'ar' ? 'الملف الصحي' : 'Health Profile') @section('skip_page_hero', true) @php $isArabic = app()->getLocale() === 'ar'; @endphp @section('content')
{{ $isArabic ? 'العودة للملفات' : 'Back to profiles' }}

{{ $student->name }}

{{ $studentClassName }}

{{ $isArabic ? 'الحالة الحرجة' : 'Severe condition' }}

{{ $profile->severe_condition_flag ? ($isArabic ? 'نشطة' : 'Active') : ($isArabic ? 'لا يوجد' : 'None') }}

{{ $isArabic ? 'بطاقة الطوارئ' : 'Emergency card' }}

{{ $profile->emergency_contact_name ?: ($isArabic ? 'غير مكتملة' : 'Incomplete') }}

{{ $isArabic ? 'الملف الصحي الأساسي' : 'Core health profile' }}

@csrf @method('PUT')

{{ $isArabic ? 'سجل الحساسية' : 'Allergy registry' }}

@csrf
@foreach($allergyCards as $allergy)
{{ $allergy['allergen'] }}
{{ $allergy['reaction_details'] }}
{{ $allergy['severity'] }}
@endforeach @if($allergyCards->isEmpty())
{{ $isArabic ? 'لا توجد حساسيات مسجلة.' : 'No allergies recorded.' }}
@endif

{{ $isArabic ? 'التطعيمات' : 'Vaccinations' }}

@csrf
@foreach($vaccinationCards as $vaccination)
{{ $vaccination['title'] }}
{{ $isArabic ? 'الاستحقاق:' : 'Due:' }} {{ $vaccination['due_on'] }}
{{ $vaccination['status'] }}
@endforeach @if($vaccinationCards->isEmpty())
{{ $isArabic ? 'لا توجد تطعيمات مسجلة.' : 'No vaccinations recorded.' }}
@endif

{{ $isArabic ? 'بطاقة الطوارئ' : 'Emergency card' }}

@csrf @method('PUT')
{{ $isArabic ? 'المستشفى:' : 'Hospital:' }} {{ $profile->preferred_hospital ?: '—' }}
{{ $isArabic ? 'ولي الأمر/الجهة:' : 'Contact:' }} {{ $profile->emergency_contact_name ?: '—' }}
{{ $isArabic ? 'الهاتف:' : 'Phone:' }} {{ $profile->emergency_contact_phone ?: '—' }}
{{ $isArabic ? 'ملاحظات:' : 'Notes:' }} {{ $profile->emergency_notes ?: '—' }}

{{ $isArabic ? 'آخر زيارات العيادة' : 'Recent clinic visits' }}

@foreach($visitCards as $visit)
{{ $visit['checked_in_label'] }}
{{ $visit['symptoms'] }}
{{ $visit['disposition'] }}
@endforeach @if($visitCards->isEmpty())
{{ $isArabic ? 'لا توجد زيارات عيادة بعد.' : 'No clinic visits yet.' }}
@endif

{{ $isArabic ? 'الأدوية أثناء اليوم الدراسي' : 'School-hour medications' }}

@foreach($medicationCards as $medication)
{{ $medication['name'] }}
{{ $medication['schedule_summary'] }}
@endforeach @if($medicationCards->isEmpty())
{{ $isArabic ? 'لا توجد أدوية مجدولة.' : 'No scheduled medications.' }}
@endif
@endsection