@extends('layouts.app')
@php($canCreate = !auth()->user()->isStudent())
@section('title', 'Lesson Schedule')
@section('subtitle', 'Bookings, confirmations and lesson history')
@section('content')
| When | Student | Trainer | Vehicle | Lesson | Status | Actions |
|---|---|---|---|---|---|---|
|
{{ $booking->starts_at->format('j M Y') }}
{{ $booking->starts_at->format('g:i A') }} – {{ $booking->ends_at->format('g:i A') }}
|
{{ $booking->student?->user?->name ?? '—' }}
{{ $booking->student?->student_number }}
|
{{ $booking->trainer?->user?->name ?? '—' }} | {{ $booking->vehicle?->registration_number ?? '—' }} | {{ $booking->typeLabel() }} | {{ $statuses[$booking->status] ?? ucfirst($booking->status) }} | |