@extends('layouts.app') @section('title', 'My Dashboard') @section('subtitle', 'Your learning journey at a glance') @section('content') @php($readiness = $progress?->overallPercent() ?? 0) Learning library My progress
YOUR ROAD TO A LICENCE {{ $readiness }}%

{{ $readiness >= 80 ? 'Almost test-ready!' : ($readiness >= 40 ? 'Building confidence every lesson.' : 'Every expert was once a beginner.') }}

{{ $progress?->remarks ?? 'Your trainer will update your progress after each lesson. Keep showing up — consistency is what gets you test-ready.' }}

Theory hours {{ $progress?->theory_hours_completed ?? 0 }} / {{ $progress?->theory_hours_required ?? 0 }} hrs
Practical hours {{ $progress?->practical_hours_completed ?? 0 }} / {{ $progress?->practical_hours_required ?? 0 }} hrs
{{ $progress?->mock_test_score ? $progress->mock_test_score.'%' : '—' }}
Best mock score
{{ $progress?->final_test_date?->format('j M Y') ?? 'Not booked' }}
Final test
{{ ucfirst($student->status) }}
Student status

Next lesson

Be 10 minutes early

My lessons
@if ($nextLesson)
{{ $nextLesson->starts_at->format('d') }}
{{ $nextLesson->starts_at->format('M') }}
{{ $nextLesson->typeLabel() }}
{{ $nextLesson->starts_at->format('l, g:i A') }} – {{ $nextLesson->ends_at->format('g:i A') }}
{{ $nextLesson->location ?? 'Training Ground A' }}
{{ $nextLesson->trainer?->user?->initials() ?? 'T' }}
{{ $nextLesson->trainer?->user?->name ?? 'Trainer pending' }}
Your trainer
{{ ucfirst($nextLesson->status) }}
@else @endif

Upcoming lessons

All
    @forelse ($upcomingLessons as $lesson)
  • {{ $lesson->typeLabel() }} {{ $lesson->starts_at->format('D, j M · g:i A') }} · {{ $lesson->trainer?->user?->name }}
  • @empty
  • @endforelse

Recent feedback

Progress
    @forelse ($recentReports as $report)
  • {{ $report->booking?->typeLabel() }} · {{ $report->trainer?->user?->name }} {{ \Illuminate\Support\Str::limit($report->performance_notes, 70) }}
    {{ $report->rating }}/5
  • @empty
  • @endforelse

Latest resources

Library
    @forelse ($materials as $material)
  • {{ $material->title }} {{ ucfirst($material->type) }}{{ $material->duration_minutes ? ' · '.$material->duration_minutes.' min' : '' }}
    Open
  • @empty
  • @endforelse
@if ($liveClasses->isNotEmpty())
Next live class
{{ $liveClasses->first()->title }} {{ $liveClasses->first()->starts_at->format('D, j M · g:i A') }}
@endif
@endsection