@extends('layouts.dashboard') @section('content')

{{ $vehicle->exists ? 'Edit Vehicle' : 'Add Vehicle' }}

Keep fleet ownership, expiry and assignment data in one place.

@csrf @if($vehicle->exists)@method('PUT')@endif @if($errors->any())
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @php($fields=['name'=>'Vehicle name *','plate_number'=>'Plate number *','plate_emirate'=>'Plate emirate','make'=>'Make','model'=>'Model','year'=>'Year','color'=>'Color','vin'=>'VIN','capacity_kg'=>'Capacity (kg)','odometer_km'=>'Odometer (km)'])
@foreach($fields as $field=>$label)@endforeach @foreach(['registration_expires_at'=>'Registration expiry','insurance_expires_at'=>'Insurance expiry','inspection_expires_at'=>'Inspection expiry','next_service_at'=>'Next service'] as $field=>$label)@endforeach
Cancel
@endsection