@extends('layouts.portal')
@php $editing = $batch->exists; $dateVal = fn ($d) => $d ? $d->format('Y-m-d') : null; @endphp
@section('title', $editing ? 'Edit batch' : 'New batch')
@section('subtitle', $editing ? ($batch->course?->title.' · '.$batch->batch_code) : 'Schedule a run of a course, assign a trainer and (optionally) generate the class calendar.')
@section('actions')