{{-- Shared create/edit batch form. $batch is null when creating. --}} @php $value = fn ($field, $default = null) => old($field, $batch?->{$field} ?? $default); $selectedDays = array_map('intval', old('days', $batch?->days ?? [])); @endphp
@csrf @if($batch) @method('PUT') @endif
@foreach($days as $number => $label) @endforeach
@if($branches->count() > 1)
@endif

Leave “Fee override” empty to charge the course fee. Room and instructor clashes with other open batches are blocked automatically.