{{-- Ligne de session programmée --}} @php $modeLabels = [ 'presentiel' => 'Présentiel', 'visio' => 'Visio', 'blended' => 'Mixte (blended)', 'elearning' => 'E-learning', ]; $statusLabels = [ 'planifiee' => ['Planifiée', 'bg-slate-100 text-slate-600'], 'ouverte' => ['Inscriptions ouvertes', 'bg-emerald-50 text-emerald-700'], 'complete' => ['Complète', 'bg-rose-50 text-rose-700'], ]; [$statusLabel, $statusClass] = $statusLabels[$session->status] ?? ['—', 'bg-slate-100 text-slate-600']; @endphp
{{ $session->title ?? 'Session' }} {{ $statusLabel }}
{{ $modeLabels[$session->mode] ?? $session->mode }} @if ($session->start_date) · du {{ $session->start_date->translatedFormat('d M Y') }} @if ($session->end_date) au {{ $session->end_date->translatedFormat('d M Y') }} @endif @endif @if ($session->location) · {{ $session->location }} @endif
@if ($session->capacity) {{ $session->capacity }} places @endif @php $passPrice = $session->price_override ?? $session->formation?->price; @endphp @if (in_array($session->status, ['ouverte', 'planifiee'], true)) @auth
@csrf
@else Réserver une place @endauth @endif