@extends('layouts.admin') @section('title', 'Add Driver') @section('header', 'Add New Driver') @section('styles') @endsection @section('content')
Driver Information
@csrf
@error('name')
{{ $message }}
@enderror
@error('email')
{{ $message }}
@enderror
@error('phone')
{{ $message }}
@enderror
@error('password')
{{ $message }}
@enderror
@error('vehicle_type')
{{ $message }}
@enderror
@error('vehicle_number')
{{ $message }}
@enderror
@error('license_number')
{{ $message }}
@enderror
Auto Delivery Zone
Use current location or search to detect zone
Zone will be fetched automatically from the selected map location.
Search manually, use browser location, or drag the map marker to set driver location.
@error('address')
{{ $message }}
@enderror @error('latitude')
{{ $message }}
@enderror @error('longitude')
{{ $message }}
@enderror
Leave blank to use global limit: {{ $globalMaxActiveOrders }} active order{{ $globalMaxActiveOrders == 1 ? '' : 's' }}. @error('max_active_orders')
{{ $message }}
@enderror
@include('admin.partials.payout-account-fields', ['values' => [ 'account_holder_name' => old('account_holder_name'), 'bank_name' => old('bank_name'), 'account_number' => old('account_number'), 'ifsc_code' => old('ifsc_code'), 'upi_id' => old('upi_id'), 'stripe_account_id' => old('stripe_account_id'), 'gateway_account_id' => old('gateway_account_id', old('stripe_account_id')), ]])
Cancel
Information

Drivers will receive login credentials via email. They can access the driver app using their email and password.


Vehicle number and license details are required for verification purposes.
@endsection @section('scripts') @php $deliveryAreaPayload = $deliveryAreas->map(function ($area) { return [ 'id' => $area->id, 'name' => $area->name, 'area_type' => $area->area_type, 'description' => $area->description, 'latitude' => $area->latitude, 'longitude' => $area->longitude, 'radius_km' => $area->radius_km, 'polygon_coordinates' => $area->polygon_coordinates, ]; })->values(); @endphp @include('partials.google-maps-shim') @endsection