@if ($errors->any())

Please correct the highlighted information.

@endif

Vehicle information

Identity, type and fleet status

Vehicle photo

Upload up to 4 vehicle images. The extra ones are optional.

@if($vehicle->image_path){{ $vehicle->name }}@else

No image selected

@endif

Compliance documents

Store each vehicle document with its expiry date

@foreach ([ ['Insurance', 'insurance_expiry', 'insurance_document', 'insurance_document_path'], ['Permit', 'permit_expiry', 'permit_document', 'permit_document_path'], ['Fitness certificate', 'fitness_expiry', 'fitness_document', 'fitness_document_path'], ['Pollution certificate', 'pollution_expiry', 'pollution_document', 'pollution_document_path'], ] as [$label, $dateField, $fileField, $pathField])

{{ $label }}

@if($vehicle->{$pathField}) View current document @endif
@endforeach