Vehicles Master

Manage fleet vehicles, categories, WebP compressed images, power sources, and technical specs.

@if(!$showForm) @if(auth()->user()?->canManageVehicles()) @endif @else @endif
@if($showForm)

{{ $editingId ? 'Edit Vehicle Master' : 'Add New Fleet Vehicle' }}

Provide category, vehicle registration plate, technical specs, and WebP images.

Cancel
Select Vehicle Category... @foreach($categories as $cat) {{ $cat->name }} {{ $cat->parent ? '('.$cat->parent->name.')' : '' }} @endforeach
Diesel Electric CNG Petrol Hybrid
Compressing & converting uploaded images to WebP format...
@if(!empty($newImages))
New Upload Previews (Converting to WebP):
@foreach($newImages as $img) @endforeach
@endif @if(!empty($existingImages))
Current Saved WebP Images:
@foreach($existingImages as $ex)
@endforeach
@endif
Active Inactive
@if(!$editingId) @endif
@endif @if(!$showForm)
@forelse($vehicles as $v) @empty @endforelse
Vehicle Category / Type Primary Function Power & Specs WebP Gallery QR Code Status Actions
@if($v->primary_image_url) @else
@endif
{{ $v->vehicle_number }} @if($v->odometer_reading) ODO: {{ $v->odometer_reading }} @endif
{{ $v->category ? $v->category->name : 'Uncategorized' }} @if($v->category && $v->category->parent) Sub of: {{ $v->category->parent->name }} @endif {{ $v->primary_function ?: '—' }} {{ $v->power_source ?: 'Diesel' }} @if($v->core_capacity_specs) {{ $v->core_capacity_specs }} @endif @if($v->images->count() > 0) {{ $v->images->count() }} WebP {{ Str::plural('Img', $v->images->count()) }} @else No Images @endif

No vehicle records found.

@if($vehicles->hasPages())
{{ $vehicles->links() }}
@endif
@endif @if($showQrModal && $this->selectedQrVehicle)
Official Vehicle QR Badge

{{ $this->selectedQrVehicle->vehicle_number }}

{{ $this->selectedQrVehicle->category?->name ?? 'Municipal Sanitation Unit' }}

{!! $this->selectedQrVehicle->qr_code_svg !!}
{{ $this->selectedQrVehicle->public_profile_url }} Scans open vehicle specs & citizen grievance form
@endif