@extends('layouts.app') @php($readiness = $progress->overallPercent()) @php($circumference = 2 * M_PI * 52) @php($offset = $circumference * (1 - $readiness / 100)) @php($canEdit = !auth()->user()->isStudent()) @section('title', 'Progress Report') @section('subtitle', $student->user->name.' · '.$student->student_number) @section('content') Profile @if ($canEdit) Update progress @endif
{{ $readiness }}% READINESS
{{ $readiness >= 80 ? 'Test ready' : ($readiness >= 40 ? 'In training' : 'Needs attention') }}
Updated {{ $progress->updated_at->diffForHumans() }}@if ($progress->editor) by {{ $progress->editor->name }}@endif

Training hours

Theory {{ $progress->theory_hours_completed }} / {{ $progress->theory_hours_required }}h
Practical {{ $progress->practical_hours_completed }} / {{ $progress->practical_hours_required }}h
Attendance {{ $attendanceRate }}%

Assessments

Mock test{{ $progress->mock_test_score !== null ? $progress->mock_test_score.'%' : 'Not taken' }}
Final test date{{ $progress->final_test_date?->format('j M Y') ?? 'Not booked' }}
Final result{{ ucfirst($progress->final_test_result) }}
Completed lessons{{ $completedLessons }}
Upcoming lessons{{ $upcomingLessons }}
@if ($progress->remarks)

Trainer summary

{{ $progress->remarks }}
@endif

Lesson feedback

{{ $reports->count() }} report(s) from trainer sessions

@forelse ($reports as $report)
{{ $report->booking?->starts_at->format('j M Y') ?? $report->created_at->format('j M Y') }} {{ $report->booking?->typeLabel() ?? 'Lesson' }} @for ($i = 1; $i <= 5; $i++)@endfor {{ $report->trainer?->user?->name }}
@if ($report->topics_covered)
Topics: {{ $report->topics_covered }}
@endif @if ($report->performance_notes)
Performance: {{ $report->performance_notes }}
@endif @if ($report->next_steps)
Next: {{ $report->next_steps }}
@endif
@empty @endforelse

Recommended next steps

    @if ($progress->theoryPercent() < 100)
  • Complete the remaining {{ max(0, $progress->theory_hours_required - $progress->theory_hours_completed) }} theory hours.
  • @endif @if ($progress->practicalPercent() < 100)
  • Book {{ max(0, $progress->practical_hours_required - $progress->practical_hours_completed) }} more practical hours with {{ $student->trainer?->user?->name ?? 'your trainer' }}.
  • @endif @if ($progress->mock_test_score === null || $progress->mock_test_score < 80)
  • Take a mock test and aim for 80%+ to unlock the final test.
  • @endif @if ($progress->final_test_result === 'pending')
  • Once readiness is high, schedule the final driving test.
  • @endif
  • Keep attending lessons consistently — attendance is {{ $attendanceRate }}%.
@endsection