@php $isPast = $session->hasEnded(); $myStatus = $myStatuses[$session->id] ?? null; $isBooked = $myStatus && $myStatus !== 'cancelled'; $isOnline = $session->format === 'online'; @endphp
{{-- Date chip --}}

{{ $session->session_date->format('M') }}

{{ $session->session_date->format('j') }}

{{ $session->session_date->format('D') }}

{{-- Details --}}

{{ $session->title }}

{{ $isOnline ? 'Online' : 'In-Person' }}
schedule {{ \Carbon\Carbon::parse($session->start_time)->format('H:i') }} · {{ $session->duration_minutes }} min {{ $isOnline ? 'videocam' : 'location_on' }} {{ $isOnline ? ($session->teams_link ? $session->meetingProvider() : 'Online') : ($session->location ?? 'Venue TBC') }} @if($session->trainerName()) person{{ $session->trainerName() }} @endif @php $agBooked = (int) ($session->booked_count ?? $session->attendees_count ?? 0); $agFull = $session->capacity !== null && $agBooked >= (int) $session->capacity; @endphp @if($session->capacity !== null) {{ $agFull ? 'event_busy' : 'group' }}{{ $agBooked }} / {{ $session->capacity }}{{ $agFull ? ' · Full' : '' }} @else group{{ $agBooked }} booked @endif
{{-- Action — sessions are booked by a manager, so this is view-only --}}
@if($isPast) @if($myStatus === 'attended') check_circle Attended @elseif($myStatus === 'no_show') Missed @elseif($isBooked) Registered @else Ended @endif @elseif($isBooked) check_circle Booked @endif visibility View details
@if($isPast && $session->notes && $isBooked)

edit_note Trainer's notes

{{ $session->notes }}

@endif