@extends('layouts.main_dashboard.app') @section('title', app()->getLocale() === 'ar' ? 'الملفات الصحية' : 'Health Profiles') @section('skip_page_hero', true) @php $isArabic = app()->getLocale() === 'ar'; @endphp @section('content')

{{ $isArabic ? 'الملفات الصحية' : 'Health profiles' }}

{{ $isArabic ? 'ملفات الطلاب الصحية والطوارئ' : 'Student health and emergency records' }}

{{ $isArabic ? 'ابحث عن الطالب وافتح ملفه الصحي لإدارة المؤشرات الحيوية، الحساسية، التطعيمات، وبطاقة الطوارئ.' : 'Search for a student and open the profile to manage vitals, allergies, vaccinations, and the emergency card.' }}

@foreach($studentCards as $card)

{{ $card['name'] }}

{{ $card['class_name'] }}

{{ $card['identifier'] }}

@if($card['severe_condition_flag']) {{ $isArabic ? 'تحذير شديد' : 'Severe alert' }} @endif
{{ $isArabic ? 'فصيلة الدم' : 'Blood type' }}
{{ $card['blood_type'] }}
{{ $isArabic ? 'BMI' : 'BMI' }}
{{ $card['bmi'] }}
{{ $isArabic ? 'حساسيات' : 'Allergies' }}
{{ $card['active_allergy_count'] }}
@endforeach @if($studentCards->isEmpty())
{{ $isArabic ? 'لا توجد نتائج مطابقة.' : 'No matching students found.' }}
@endif
{{ $students->links() }}
@endsection