@php $isEdit = $session->exists; $action = $isEdit ? route('trainer.sessions.update', $session) : route('trainer.sessions.store'); $input = 'w-full px-4 py-2.5 bg-surface-container rounded-lg border-none focus:ring-2 focus:ring-primary/20 text-body-md outline-none'; $label = 'block text-label-md font-label-md text-on-surface-variant mb-1.5'; $dateVal = old('session_date', optional($session->session_date)->format('Y-m-d')); $timeVal = old('start_time', $session->start_time ? \Carbon\Carbon::parse($session->start_time)->format('H:i') : ''); $formatVal = old('format', $session->format ?? 'online'); @endphp
@csrf @if($isEdit) @method('PUT') @endif

The training code identifies the topic. Workers who have already completed a training with the same code can't be booked onto it again.

@unless($isEdit) {{-- Recurrence: run this training repeatedly --}}
repeat

Repeat this training

Create a whole series in one go — e.g. every weekday for 6 months.

@foreach([1 => 'Mon', 2 => 'Tue', 3 => 'Wed', 4 => 'Thu', 5 => 'Fri', 6 => 'Sat', 7 => 'Sun'] as $iso => $dow) @endforeach

Leave all unticked to use the start date's weekday.

info Each occurrence becomes its own session, so bookings, attendance and notes are tracked separately. Max 500 occurrences.

@endunless
Cancel