@extends('layouts.admin') @php $currencySymbol = App\Models\AppSetting::getValue('currency_symbol', '?'); @endphp @section('title', 'Drivers') @section('header', 'Driver Management') @section('content')
Manage delivery partners
| ID | Avatar | Name | Contact | Vehicle | Payout | Orders | Active Limit | Earnings | Status | Joined | Actions |
|---|---|---|---|---|---|---|---|---|---|---|---|
| #{{ $driver->id }} |
{{ substr($driver->name, 0, 2) }}
|
{{ $driver->name }}
|
{{ $driver->email }}
{{ $driver->phone }}
|
{{ ucfirst($driver->vehicle_type ?? 'N/A') }}
#{{ $driver->vehicle_number ?? 'N/A' }}
|
@php $hasAccountHolder = filled($driver->account_holder_name); $hasGatewayAccount = filled($driver->gateway_account_id) || filled($driver->stripe_account_id); $hasBankAccount = filled($driver->bank_name) && filled($driver->account_number) && filled($driver->ifsc_code); $hasUpi = filled($driver->upi_id); $isPayoutReady = $hasAccountHolder && ($hasGatewayAccount || $hasBankAccount || $hasUpi); $hasAnyPayoutData = $hasAccountHolder || $hasGatewayAccount || $hasBankAccount || $hasUpi || filled($driver->bank_name) || filled($driver->account_number) || filled($driver->ifsc_code); @endphp @if($isPayoutReady) Ready @elseif($hasAnyPayoutData) Partial @else Missing @endif | {{ $driver->total_orders ?? 0 }} |
{{ $driver->active_orders_count ?? 0 }}/{{ $driver->effective_max_active_orders ?? $globalMaxActiveOrders }}
{{ $driver->max_active_orders ? 'Individual' : 'Global' }}
|
{{ $currencySymbol }}{{ number_format($driver->total_earnings ?? 0, App\Models\AppSetting::currencyDecimals()) }} |
is_active ? 'checked' : '' }}>
|
{{ $driver->created_at->format('d M Y') }} | |
| No drivers found | |||||||||||