@php /** @var \App\Models\Nursery\CalendarEntry|null $entry */ $entry = $entry ?? null; $entryType = $entryType ?? ($entry?->entry_type ?? 'lesson'); $formAction = $formAction ?? ''; $formMethod = $formMethod ?? 'POST'; $submitLabel = $submitLabel ?? 'إضافة'; $selectedClassroomIds = is_array($selectedClassroomIds ?? null) ? $selectedClassroomIds : []; $selectedChildIds = is_array($selectedChildIds ?? null) ? $selectedChildIds : []; $mediaLinks = is_array($mediaLinks ?? null) && ($mediaLinks ?? []) !== [] ? $mediaLinks : [['url' => '', 'label' => '']]; $eventDate = old('event_date', $entry?->starts_at?->format('Y-m-d') ?? now()->format('Y-m-d')); $startsTime = old('starts_at_time', $entry?->starts_at?->format('H:i') ?? '09:00'); $endsTime = old('ends_at_time', $entry?->ends_at?->format('H:i') ?? '10:00'); $isRecurring = old('is_recurring', $entry?->is_recurring ?? false); $showTypePicker = $entry === null && ! request()->has('type'); @endphp
{{ $typeLabel }}
@endforeach