@extends('layouts.main_dashboard.app') @section('title', app()->getLocale() === 'ar' ? 'الإعفاءات والإجازات الطبية' : 'Medical Leaves & Exemptions') @section('skip_page_hero', true) @php $isArabic = app()->getLocale() === 'ar'; @endphp @section('content')

{{ $isArabic ? 'متابعة الإدارة للإعفاءات الطبية والإجازات المرضية' : 'Administration review of medical exemptions and sick leaves' }}

{{ $isArabic ? 'تعرض هذه الصفحة ما صدر من الوحدة الصحية حتى يتم اعتماده أو رفضه إداريًا.' : 'This page lists the records issued by the health office so administration can approve or reject them.' }}

{{ $isArabic ? 'طلبات قيد الانتظار:' : 'Pending items:' }} {{ $pendingCount }}

{{ $isArabic ? 'الإعفاءات الطبية' : 'Medical exemptions' }}

@foreach($exemptions as $exemption)
@csrf @method('PATCH')
{{ $exemption->student?->name }} • {{ $exemption->exemption_type }}
{{ $exemption->starts_on?->format('Y-m-d') }} - {{ $exemption->ends_on?->format('Y-m-d') }}
@endforeach
{{ $exemptions->links() }}

{{ $isArabic ? 'الإجازات المرضية' : 'Sick leaves' }}

@foreach($sickLeaves as $leave)
@csrf @method('PATCH')
{{ $leave->student?->name }}
{{ $leave->start_date?->format('Y-m-d') }} - {{ $leave->end_date?->format('Y-m-d') }}
@endforeach
{{ $sickLeaves->links() }}
@endsection