@php $editing = $session->exists; @endphp

Calendar

{{ $editing ? 'Edit session' : 'Schedule session' }}

@if ($courses->isEmpty())

No courses to schedule yet.

Sessions belong to a course. Create a course first.

New course
@else
@csrf @if ($editing) @method('PUT') @endif
Session

Only staff enrolled in this course can register.

@if (Auth::user()->isAdmin())

Not listed? Add a trainer

@endif
When and where
Back
@if ($editing)
@csrf @method('DELETE')
@endif @endif