@extends('layouts.app') @section('title', 'Compliance & Documentation') @section('content')
| Vehicle | Next inspection | Document | Status | Prompt |
|---|---|---|---|---|
| {{ $row->vehicle->reg_no }} | {{ $row->inspection['date'] ? \Carbon\Carbon::parse($row->inspection['date'])->format('d M Y') : 'Not recorded' }} | {{ $row->inspection['document']?->document_no ?: '—' }} | {{ $row->inspection['label'] }} | {{ $row->inspection['message'] }} |
| Vehicle | Type | Document no. | Issuer | Expires | Status | File | Actions |
|---|---|---|---|---|---|---|---|
| {{ $row->document->vehicle?->reg_no ?: '—' }} | {{ $row->document->type }} | {{ $row->document->document_no ?: '—' }} | {{ $row->document->issuer ?: '—' }} |
{{ $row->document->expires_at ? $row->document->expires_at->format('d M Y') : 'No expiry' }}
@if($row->status['days'] !== null) {{ abs($row->status['days']) }} days {{ $row->status['days'] < 0 ? 'overdue' : 'left' }} @endif
|
{{ $row->status['label'] }} | @if($row->document->file_path)View@else —@endif |
|
| Driver | Type | Document no. | Issuer | Expires | Status | File | Actions |
|---|---|---|---|---|---|---|---|
| {{ $row->document->driver?->full_name ?: '—' }} | {{ $row->document->type }} | {{ $row->document->document_no ?: '—' }} | {{ $row->document->issuer ?: '—' }} |
{{ $row->document->expires_at ? $row->document->expires_at->format('d M Y') : 'No expiry' }}
@if($row->status['days'] !== null) {{ abs($row->status['days']) }} days {{ $row->status['days'] < 0 ? 'overdue' : 'left' }} @endif
|
{{ $row->status['label'] }} | @if($row->document->file_path)View@else —@endif |
|