@extends('layouts.app') @section('title', 'Driver Behaviour') @section('content')
| Driver | Braking | Acceleration | Speeding | Safety | Points | Score | Band | Recommendation | Events |
|---|---|---|---|---|---|---|---|---|---|
| {{ $driver->full_name }} {{ $driver->staff_no ?: 'Driver' }} |
{{ $card['categories']['Harsh braking']['count'] }} | {{ $card['categories']['Rapid acceleration']['count'] }} | {{ $card['categories']['Speeding']['count'] }} | {{ $card['categories']['Safety violation']['count'] }} | {{ $card['total_points'] }} | {{ $card['score'] }} | {{ $card['band'] }} | {{ $card['recommendation'] }}@if($card['expired_documents']) {{ $card['expired_documents'] }} expired document(s) @endif |
|
| Date / time | Driver | Vehicle | Event | Severity | Points | Speed | Location | Review | Actions |
|---|---|---|---|---|---|---|---|---|---|
| {{ $event->occurred_at->format('d M Y, H:i') }} | {{ $event->driver?->full_name ?: '—' }} | {{ $event->vehicle?->reg_no ?: '—' }} | {{ $event->event_type }} | {{ $event->severity }} | {{ $event->points }} | {{ $event->speed_kph ? num($event->speed_kph, 0) . ' km/h' : '—' }} | {{ $event->location ?: '—' }} | {{ $event->is_reviewed ? 'Reviewed' : 'Pending' }} |
@if(!$event->is_reviewed)
@endif
|