@extends('layouts.admin') @section('title', 'Sessions') @section('admin')

Sessions

Each session is one intake, named like UNIPORT sessions (e.g. 2026/2027). New registrations go into the session that is open. Only one session can be open at a time. Students can take the training only once, in one session.

@foreach ($sessions as $s)

{{ $s->title() }} @if ($s->is_open)Open for registration@elseClosed@endif

{{ $s->starts_on?->format('j M Y') ?? 'No start date' }} – {{ $s->ends_on?->format('j M Y') ?? 'no end date' }} · {{ $s->max_seats ? $s->max_seats.' seats' : 'No seat limit' }}

@if ($s->is_open)
@csrf
@else
@csrf
@endif
Certificates issued{{ number_format($s->certificates) }}
Edit dates, seats and label
@csrf @method('PUT') @include('admin.partials.session-fields', ['s' => $s])
@endforeach
@csrf

Add a session

@include('admin.partials.session-fields', ['s' => null])
@endsection