@extends('layouts.admin') @php $editing = $batch->exists; $locked = $editing && $batch->datesLocked(); @endphp @section('title', 'Batches') @section('heading', $editing ? 'Edit Batch' : 'Create Internship Batch') @use('App\Models\InternshipBatch', 'Batch') @use('App\Models\InternHospitalAllocation', 'Allocation') @section('content') @php $start = old('starts_on', $batch->starts_on?->toDateString()); $err = fn ($k) => $errors->first($k); $input = 'w-full rounded-xl border bg-white px-3.5 py-3 text-sm text-gray-800 focus:ring-2 focus:outline-none'; $ok = 'border-slate-200 focus:border-blue-300 focus:ring-blue-100'; $bad = 'border-red-400 focus:border-red-400 focus:ring-red-100'; @endphp {{ $editing ? 'Back to batch' : 'All batches' }}
@endsection