@extends('layouts.admin-modern') @section('title', 'Gestion des Livreurs') @section('page-title', 'Gestion des Livreurs') @section('content')
@if(isset($tableNotExists) && $tableNotExists)
La table des livreurs n'existe pas encore. Exécutez les migrations.
@else
Total livreurs
{{ $stats['total'] ?? 0 }}
Actifs
{{ $stats['active'] ?? 0 }}
En attente
{{ $stats['pending'] ?? 0 }}
Suspendus
{{ $stats['suspended'] ?? 0 }}
@if(request('search') || request('status')) @endif
Liste des Livreurs ({{ $drivers->total() }})
@forelse($drivers as $driver) @empty @endforelse
Livreur Contact Véhicule Note Livraisons Statut Stripe Inscrit le Actions
{{ strtoupper(substr($driver->first_name ?? 'L', 0, 1)) }}
{{ $driver->first_name }} {{ $driver->last_name }} @if($driver->sponsor_prestataire_id)
Parrainé @endif
{{ $driver->user->email ?? '—' }}
{{ $driver->phone ?? '—' }}
@php $vehicleIcons = ['bicycle' => 'fa-bicycle', 'scooter' => 'fa-motorcycle', 'car' => 'fa-car', 'van' => 'fa-shuttle-van']; @endphp {{ ucfirst($driver->vehicle_type ?? '—') }} {{ number_format($driver->rating ?? 0, 1) }} {{ $driver->total_deliveries ?? 0 }} @if($driver->is_suspended) Suspendu @elseif($driver->is_active) Actif @else En attente @endif @if($driver->stripe_onboarding_complete) OK @elseif($driver->stripe_account_id) Incomplet @else Non configuré @endif {{ $driver->created_at?->format('d/m/Y') ?? '—' }}
@if(!$driver->is_active && !$driver->is_suspended)
@csrf
@endif @if($driver->is_active && !$driver->is_suspended) @endif @if($driver->is_suspended)
@csrf
@endif

Aucun livreur trouvé

@if($drivers->hasPages())
{{ $drivers->links() }}
@endif
@endif
@endsection