@extends('layouts.app') @section('title', 'Dashboard') @section('subtitle', 'School performance at a glance') @section('content') Schedule lesson Enroll student

Everything is on track.

{{ $trainerCount }} trainers · {{ $vehiclesAvailable }} of {{ $vehicleTotal }} vehicles ready · {{ $newApplications }} new admission enquiries · {{ $attendanceRate }}% attendance this month.

Weekly timetable Full reports

Revenue trend

Payments collected over the last six months

{{ money($revenueThisMonth) }} this month

Lesson status

All lessons by current state

{{ $passedStudents }} students passed final test View history

Today's schedule

{{ now()->format('l, j F') }} · {{ $todaySchedule->count() }} lessons

All lessons
@forelse ($todaySchedule as $lesson) @empty @endforelse
TimeStudentTrainerVehicleStatus
{{ $lesson->starts_at->format('g:i A') }} {{ $lesson->student->user->name }}
{{ $lesson->typeLabel() }}
{{ $lesson->trainer?->user?->name ?? 'Unassigned' }} {{ $lesson->vehicle?->registration_number ?? '—' }} {{ ucfirst(str_replace('_', ' ', $lesson->status)) }}

Pending payments

{{ $outstandingCount }} invoices need attention

Alerts
    @forelse ($pendingPayments as $payment)
  • {{ $payment->student->user->name }} {{ $payment->invoice_number }} · due {{ $payment->due_date->format('j M') }}
    {{ money($payment->balance()) }}
    {{ ucfirst($payment->status) }}
  • @empty
  • @endforelse

New admissions

View all
    @forelse ($latestApplications as $application)
  • {{ strtoupper(substr($application->first_name, 0, 1).substr($application->last_name, 0, 1)) }}
    {{ $application->fullName() }} {{ $application->course?->name ?? 'General enquiry' }}
    {{ ucfirst($application->status) }}
  • @empty
  • @endforelse

Fleet alerts

Fleet
    @forelse ($vehicleAlerts->take(4) as $vehicle)
  • {{ $vehicle->registration_number }} {{ $vehicle->make }} {{ $vehicle->model }}
    {{ $vehicle->needsService() ? 'Service due' : 'Insurance' }}
  • @empty
  • @endforelse
Attendance this month
{{ $attendanceRate }}%

Recent activity

@if (auth()->user()->isAdmin()) Audit log @endif
@if ($recentActivity->isNotEmpty())
    @foreach ($recentActivity as $log)
  • {{ $log->description }} {{ $log->user?->name ?? 'System' }} · {{ $log->created_at->diffForHumans() }}
  • @endforeach
@else @endif
@endsection @push('scripts') @endpush