@extends('template.layouts.template-base') @section('title', 'Add Driver') @section('styles') @endsection @section('content') @php $d = $driver; $old = fn($k) => old($k, $d->$k ?? ''); $selectedVehicleIds = collect(old('vehicle_ids', [])) ->filter(fn($id) => !is_null($id) && $id !== '') ->map(fn($id) => (string) $id) ->values() ->all(); @endphp
@csrf {{-- Driver Information --}}

Driver Information

+91
Select one or more vehicles.
{{-- Rating --}}
5 Star
{{-- Status --}}
status) == 1 ? 'checked' : '' }}>
status) == 0 ? 'checked' : '' }}>
{{-- Address --}}

Address

{{-- Documents --}}

Documents

{{-- Toast: Driver Created --}}
@include('template.layouts.error-modal') @endsection @section('scripts') @endsection