{{ $label }}
{{ $expiry ? 'Expires '.$expiry->format('d M Y') : 'Expiry date not added' }}
@if($path) View document @elseNo document uploaded
@endif@extends('layouts.admin') @section('title', $vehicle->name) @section('header-back')Back@endsection @section('header-title', $vehicle->name) @section('content') @php $statusColors = ['available' => 'bg-emerald-400/20 text-emerald-100 ring-emerald-300/30', 'reserved' => 'bg-amber-400/20 text-amber-100 ring-amber-300/30', 'on_trip' => 'bg-blue-300/20 text-blue-100 ring-blue-200/30', 'under_maintenance' => 'bg-orange-400/20 text-orange-100 ring-orange-300/30', 'inactive' => 'bg-white/15 text-white/80 ring-white/20']; $vehicleImages = collect([$vehicle->image_path, $vehicle->image_path_2, $vehicle->image_path_3, $vehicle->image_path_4])->filter(); $complianceDocuments = [ ['Insurance', $vehicle->insurance_expiry, $vehicle->insurance_document_path], ['Permit', $vehicle->permit_expiry, $vehicle->permit_document_path], ['Fitness certificate', $vehicle->fitness_expiry, $vehicle->fitness_document_path], ['Pollution certificate', $vehicle->pollution_expiry, $vehicle->pollution_document_path], ]; @endphp
{{ $vehicle->registration_number }}
{{ str($vehicle->status)->replace('_', ' ')->title() }}{{ $vehicle->vehicle_type }} ยท {{ trim($vehicle->brand.' '.$vehicle->model) ?: 'Brand/model not provided' }}
{{ $vehicle->seating_capacity }} seats
Current reading
{{ number_format($vehicle->current_km) }} km
Seating capacity
{{ $vehicle->seating_capacity }} seats
Buy date
{{ $vehicle->buy_date ? $vehicle->buy_date->format('d M Y') : 'Not set' }}
Last updated
{{ $vehicle->updated_at->format('d M Y, h:i A') }}
Vehicle certificates and expiry dates
{{ $expiry ? 'Expires '.$expiry->format('d M Y') : 'Expiry date not added' }}
@if($path) View document @elseNo document uploaded
@endifMain image and any optional gallery photos
No vehicle image uploaded
{{ $vehicle->notes ?: 'No notes have been added.' }}