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

{{ $isArabic ? 'التقارير الصحية' : 'Health Reports' }}

{{ $isArabic ? 'غيابات مرضية' : 'Illness absences' }}
{{ $illnessRelatedAbsences }}
{{ $isArabic ? 'تطعيمات متأخرة' : 'Overdue vaccines' }}
{{ $vaccinationOverdue }}
{{ $isArabic ? 'مخزون منخفض' : 'Low stock' }}
{{ $lowStockItems }}
{{ $isArabic ? 'قرب الانتهاء' : 'Expiring soon' }}
{{ $expiringItems }}
{{ $isArabic ? 'حالات حرجة' : 'Severe alerts' }}
{{ $activeSevereAlerts }}
{{ $isArabic ? 'أيام اتجاه الزيارات' : 'Tracked days' }}
{{ $weeklyVisitTrend->count() }}

{{ $isArabic ? 'اتجاه زيارات العيادة خلال 7 أيام' : '7-day clinic visit trend' }}

@foreach($weeklyVisitTrend as $date => $count)
{{ \Illuminate\Support\Carbon::parse($date)->format('Y-m-d') }}
{{ $count }}
@endforeach @if($weeklyVisitTrend->isEmpty())
{{ $isArabic ? 'لا توجد زيارات في آخر 7 أيام.' : 'No visits in the last 7 days.' }}
@endif

{{ $isArabic ? 'الاتجاهات الوبائية الأولية' : 'Symptom trend snapshot' }}

@foreach($symptomTrends as $symptom => $count)
{{ $symptom }}
{{ $count }}
@endforeach @if($symptomTrends->isEmpty())
{{ $isArabic ? 'لا توجد مؤشرات أعراض كافية بعد.' : 'No symptom trend data yet.' }}
@endif
@endsection