@php use App\Models\Nursery\LeaveRecord; @endphp {{-- أيام الحضور --}} @foreach(['children', 'staff'] as $scopeKey)

تعيين أيام الحضور — {{ $scopeKey === 'children' ? 'الأطفال' : 'طاقم العمل' }}

@csrf
@foreach($weekdayOptions as $opt) @php $selected = $scopeKey === 'children' ? $childrenWeekdays : $staffWeekdays; @endphp @endforeach
@endforeach {{-- تسجيل إجازة جماعي --}} @foreach(['children' => $childOptions, 'staff' => $staffOptions] as $scopeKey => $subjectOptions)

تسجيل إجازة

@csrf
@foreach($subjectOptions as $opt) @endforeach
@endforeach {{-- إجازة لفرد واحد --}}

إجازات

@csrf

لحذف إجازة مسجّلة، استخدم قائمة الإجازات في التقرير أو تواصل مع المسؤول.

{{-- تقرير --}} @foreach(['children', 'staff'] as $scopeKey)

إعداد تقرير

@if($scopeKey === 'children')
@foreach($childOptions as $opt) @endforeach
@else
@foreach($staffOptions as $opt) @endforeach
@endif

إرفاق سبب الغياب

عند التفعيل يظهر في التقرير عمود السبب: اسم الإجازة للأيام المسجّلة كإجازة، أو «غائب — لم يُسجَّل حضور» لباقي أيام الغياب.

@endforeach