{{-- Training Session — read-only detail for a care worker. From EmployeeSessionController@show: $session (trainer, attendees_count), $myStatus Care workers do not self-register; a manager books them onto sessions. --}} @extends('layouts.app') @section('title', 'Session Details') @section('content') @include('employee._flash') @php $isPast = $session->hasEnded(); $isBooked = $myStatus && $myStatus !== 'cancelled'; $isOnline = $session->format === 'online'; $start = \Carbon\Carbon::parse($session->start_time); $end = $start->copy()->addMinutes((int) $session->duration_minutes); // My status → a single badge. if ($myStatus === 'attended') { $badge = ['class' => 'bg-secondary-container text-on-secondary-container', 'icon' => 'check_circle', 'label' => 'You attended']; } elseif ($myStatus === 'no_show') { $badge = ['class' => 'bg-error-container text-error', 'icon' => 'cancel', 'label' => 'Marked as missed']; } elseif ($isBooked && $isPast) { $badge = ['class' => 'bg-surface-container-high text-on-surface-variant', 'icon' => 'event_busy', 'label' => 'Session ended']; } elseif ($isBooked) { $badge = ['class' => 'bg-primary/10 text-primary', 'icon' => 'event_available', 'label' => 'You are booked']; } elseif ($isPast) { $badge = ['class' => 'bg-surface-container-high text-on-surface-variant', 'icon' => 'event_busy', 'label' => 'Session ended']; } else { $badge = ['class' => 'bg-surface-container-high text-on-surface-variant', 'icon' => 'info', 'label' => 'Not booked']; } @endphp arrow_back Back to sessions
Ref: {{ $session->training_code }}
@endif{{ $session->session_date->format('M') }}
{{ $session->session_date->format('j') }}
{{ $session->session_date->format('D') }}
workspace_premium You attended this session — your certificate of attendance is ready.
download Download certificaterate_review How was this training? Your feedback takes a few minutes and isn’t shared with the trainer.
edit_note Give feedbacktask_alt You gave feedback on this session on {{ $myFeedback->created_at->format('j M Y') }} — thank you.
@endif {{-- Upload the provider's certificate (e.g. Team Teach) once the course has run --}} @if($canUploadCert)task_alt Certificate uploaded {{ $myBooking->certificate_uploaded_at?->format('j M Y') }} — {{ $myBooking->certificate_name ?: 'view' }}
@elseupload_file Upload the certificate you received for this course, so it's on your training record.
@endifPDF or photo, max 30 MB.
@error('certificate'){{ $message }}
@enderrorThe join link becomes available because you’re booked onto this session.
description About this session
{{ $session->notes }}
folder_open Resources
Handouts for this session — download them before you attend.
local_parking Venue information
{{ $session->attendee_info }}
checklist {{ $guide['heading'] }}
Want a place on this session?
Places are arranged by your manager. Speak to your Service Manager or Registered Manager to be booked onto this training.
Pick which of your staff to book — and manage who’s already on it.
No one is booked on this session yet.
@else| Staff member | Status | Booked by | Booked on |
|---|---|---|---|
| {{ $r['name'] }} {{ $r['email'] }} | {{ $badge[0] }} @if($r['certificate_url'] ?? null) workspace_premiumCertificate @endif | {{ $r['booked_by'] }} | {{ $r['booked_at'] ? \Illuminate\Support\Carbon::parse($r['booked_at'])->format('j M Y, H:i') : '—' }} |