@extends('layouts.app') @section('title', $pageTitle ?? 'Training Calendar') @section('content') @include('partials.flash') @php // Reused read-only for HR (HrCalendarController): own route names, no create / list / "my calendar". $calRoute = $calRoute ?? 'trainer.sessions.calendar'; $showRoute = $showRoute ?? 'trainer.sessions.show'; $readOnly = $readOnly ?? false; @endphp {{-- Toolbar: view toggle + navigation --}}
{{ \Carbon\Carbon::parse($s->start_time)->format('H:i') }} {{ \Illuminate\Support\Str::limit($s->title, 28) }}
@if($showTrainerNames && $s->trainerName()){{ $s->trainerName() }}
@endif@if($sup)handshake@endif @if($s->recurrence_group_id)repeat@endif @if($c['full']) event_busy Full · {{ $c['label'] }} @elseif($c['almost']) {{ $c['label'] }} · almost full @else {{ $c['label'] }}{{ $s->capacity ? 'booked' : '' }} @endif
@empty—
@endforelse{{ $m['label'] }}
{{ $m['count'] ? $m['count'].' '.Str::plural('session', $m['count']) : 'No sessions' }}
{{ \Carbon\Carbon::parse($s->start_time)->format('H:i') }} {{ $s->title }}
@if($showTrainerNames && $s->trainerName()){{ $s->trainerName() }}
@endif@if($sup)handshake@endif @if($s->recurrence_group_id)repeat@endif @if($c['full']) event_busy Full · {{ $c['label'] }} @elseif($c['almost']) {{ $c['label'] }} · almost full @else {{ $c['label'] }}{{ $s->capacity ? 'booked' : '' }} @endif
@endforeach