@extends('backend.layouts.admin.app') @section('content') @php $isEdit = isset($pageData['vehicle']); $vehicle = $pageData['vehicle'] ?? null; @endphp

{{$title}}

{{__('app.step_1')}}
{{__('app.basic_details')}}
{{__('app.step_2')}}
{{__('app.additional_details')}}
@if(!$isEdit)
{{__('app.step_3')}}
{{__('app.drivers.driver')}} & {{__('app.documents')}}
@endif
@include('backend.layouts.alert')
@csrf @if($isEdit) @method('PUT') @endif

{{__('app.basic_details')}}

@if ($errors->has('registration_number')) {{ $errors->first('registration_number') }} @endif
@if ($errors->has('make')) {{ $errors->first('make') }} @endif
@if ($errors->has('model')) {{ $errors->first('model') }} @endif
@if ($errors->has('year_of_manufacture')) {{ $errors->first('year_of_manufacture') }} @endif
@if ($errors->has('vin')) {{ $errors->first('vin') }} @endif
@if ($errors->has('engine_number')) {{ $errors->first('engine_number') }} @endif
@if($isEdit && $vehicle && $vehicle->trailers->count() > 0) @foreach($vehicle->trailers as $index => $trailer)
@endforeach @endif
@if(!$isEdit) @endif
@endsection