@extends('layouts.main_dashboard.app') @section('title', app()->getLocale() === 'ar' ? 'لوحة الرعاية الصحية' : 'Health Care Dashboard') @section('skip_page_hero', true) @php $isArabic = app()->getLocale() === 'ar'; @endphp @section('content')
{{-- ═══ Hero ═══ --}}
{{ $isArabic ? 'بوابة الزائرة الصحية' : 'Health Visitor Portal' }}

{{ $isArabic ? 'لوحة الرعاية الصحية' : 'Health Care Dashboard' }}

{{ $isArabic ? 'متابعة شاملة للحالات الصحية، العيادة، الأدوية، والتواصل مع أولياء الأمور.' : 'Comprehensive tracking of health cases, clinic, medications, and parent communication.' }}

{{-- ═══ Stats Row 1 ═══ --}}
{{-- ═══ Stats Row 2 ═══ --}}

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

{{ $profilesCount }}

{{-- ═══ Main Content Grid ═══ --}}
{{-- Recent Health Cases --}}

{{ $isArabic ? 'أحدث حالات الغياب الصحي' : 'Recent health-related absences' }}

{{ $isArabic ? 'آخر 8 حالات غياب مسجلة' : 'Last 8 logged absence cases' }}

{{ $isArabic ? 'عرض الكل' : 'View all' }}
@forelse($healthCaseCards as $case)

{{ $case['student_name'] }}

{{ $case['class_name'] }}{{ $case['subject_name'] !== ($isArabic ? 'بدون مادة' : 'No subject') ? ' · ' . $case['subject_name'] : '' }}

{{ $isArabic ? 'متابعة' : 'Follow-up' }}
@empty

{{ $isArabic ? 'لا توجد حالات غياب صحية حديثة.' : 'No recent health absences.' }}

@endforelse
{{-- Right Column --}}
{{-- Quick Actions --}} {{-- Recent Notes --}}

{{ $isArabic ? 'أحدث الملاحظات' : 'Latest notes' }}

{{ $isArabic ? 'عرض الكل' : 'View all' }}
@forelse($recentNoteCards as $note)

{{ $note['title'] }}

{{ $note['student_name'] }}

{{ $note['priority'] }}
@empty
{{ $isArabic ? 'لا توجد ملاحظات.' : 'No notes yet.' }}
@endforelse
{{-- Recent Alerts --}}

{{ $isArabic ? 'آخر التنبيهات المرسلة' : 'Latest sent alerts' }}

{{ $isArabic ? 'عرض السجل' : 'View history' }}
@forelse($recentAlertCards as $alert)

{{ $alert['title'] }}

{{ $alert['summary'] }}

{{ $alert['priority'] }}
@empty
{{ $isArabic ? 'لم يتم إرسال تنبيهات بعد.' : 'No alerts sent yet.' }}
@endforelse
@endsection