@extends('layouts.app') @section('title', 'Carte interne des livraisons') @push('styles') @endpush @section('content') @php $mapStats = $mapPayload['stats'] ?? []; $fullscreenBackUrl = ($internalDriverMode ?? false) ? (Route::has('driver.map') ? route('driver.map') : url('/driver/map')) : route('prestataire.food-orders.dashboard', ['tab' => 'delivery']); $heroStats = [ [ 'label' => 'Courses actives', 'value' => (int) ($mapStats['active_orders_total'] ?? count($mapPayload['orders'] ?? [])), ], [ 'label' => ($internalDriverMode ?? false) ? 'Ma tournée' : 'Livreurs en mission', 'value' => (int) (($internalDriverMode ?? false) ? ($mapStats['active_points_total'] ?? 0) : ($mapStats['drivers_on_mission'] ?? 0)), ], [ 'label' => 'Points suivis', 'value' => (int) ($mapStats['active_points_total'] ?? 0), ], ]; @endphp

Carte interne des livraisons

@foreach($heroStats as $stat)
{{ $stat['value'] }} {{ $stat['label'] }}
@endforeach
@if(!($internalDriverMode ?? false)) Retour livraisons Gestion livreurs @endif @if($internalDriverMode ?? false) @endif
@if($internalDriverMode ?? false)
Mode livreur interne : affichage limité à votre tournée et à vos validations de livraison.
@endif
@if(!($internalDriverMode ?? false)) @else @endif
Live --:--:-- 0 course 0 livreur Gain 0,00 € Tournée 0,0 km
Ordre de tournée
Calcul en cours...
Aucun point de livraison a afficher
GPS actif Recherche du prochain point...
- km ETA -
Mise à jour
@if(!empty($googleMapsKey)) @endif @endsection