@extends('layouts.admin') @section('title', 'Driver safety') @section('heading', 'Driver compliance & safety') @section('content')
Types control delivery/taxi compatibility and optional customer ride-class matching.
| Type | Service | Ride class | Vehicles | Configuration |
|---|---|---|---|---|
Private downloads only. Expired files never authorize a driver.
| Driver | Document | Expiry | Status | Review |
|---|---|---|---|---|
| {{ $document->driver->user->name }} | {{ $document->label }} {{ str_replace('_', ' ', $document->type) }} |
{{ $document->expires_at?->format('d M Y') ?? 'โ' }}@if($document->expires_at?->isBetween(today(), today()->addDays(config('driver_compliance.expiry_warning_days', 30)))) Expires soon@endif |
{{ $document->effective_status }} | @if($document->status === 'pending') @else {{ $document->review_note ?? 'Reviewed' }} @endif |
| No driver documents. | ||||
Profile edits return vehicles to pending verification.
| Driver | Registration | Vehicle | Status | |
|---|---|---|---|---|
| {{ $vehicle->driver->user->name }} | {{ $vehicle->registration_number }} | {{ $vehicle->make }} {{ $vehicle->model }} ยท {{ $vehicle->vehicleType?->name ?? $vehicle->type }} {{ $vehicle->is_active?'Selected by driver':'Inactive' }} | {{ $vehicle->verification_status }} {{ $vehicle->verification_note }} | |
| No vehicles. | ||||
Location-linked incidents and response ownership.
| Incident | Driver | Location | Status | |
|---|---|---|---|---|
| {{ $incident->number }} {{ $incident->created_at->format('d M Y H:i') }} | {{ $incident->customer?->name ?? $incident->driver?->user?->name ?? 'Unknown participant' }} {{ $incident->customer_id ? 'Passenger' : 'Driver' }} | {{ $incident->latitude }}, {{ $incident->longitude }} | {{ $incident->status }} | Respond |
| No safety incidents. | ||||
Private evidence with capture metadata.
| Delivery | Driver | Captured | Received by | |
|---|---|---|---|---|
| #{{ str($proof->job->public_id)->limit(12) }} | {{ $proof->driver->user->name }} | {{ $proof->captured_at->format('d M Y H:i') }} {{ $proof->confirmed_at ? 'PIN verified' : 'Awaiting completion' }} | {{ $proof->received_by ?? $proof->signature_name ?? 'โ' }} SHA-256 {{ str($proof->signature_sha256)->limit(12) }} | Private photo@if($proof->signature_payload)Signature@endif |
| No delivery proofs. | ||||