{{-- Une livraison assurée par le restaurant : commande, client, étapes, carte et itinéraire — le même déroulé que la carte d'une course côté chauffeur. --}}
{{ __('chauffeur.delivery_order_label') }} {{ $booking->order?->order_number }}
{{ $booking->created_at->translatedFormat('j M Y H:i') }}
@if ($booking->completed_at) {{ __('chauffeur.delivery_status_completed') }} @elseif ($booking->status === \App\Models\ChauffeurBooking::STATUS_CANCELLED) {{ __('chauffeur.delivery_status_cancelled') }} @elseif ($booking->started_at) {{ __('chauffeur.restaurant_delivery_status_started') }} @else {{ __('chauffeur.restaurant_delivery_status_to_deliver') }} @endif
{{ __('messages.products_order_details') }} {{ $booking->client_message }}
{{ __('chauffeur.booking_dropoff') }} {{ $booking->dropoff_address ?: '—' }}
@if ($booking->estimated_km)
{{ __('messages.carriers_booking_distance') }} {{ number_format((float) $booking->estimated_km, 1, ',', ' ') }} km
@endif
{{ __('chauffeur.booking_client') }} {{ trim(($booking->client->first_name ?? '') . ' ' . ($booking->client->last_name ?? '')) ?: $booking->client?->name }} @if ($booking->client_phone ?: $booking->client?->phone) · {{ $booking->client_phone ?: $booking->client->phone }} @endif
@php $active = $booking->isPaid() && ! $booking->completed_at; $clientCallUrl = $active ? phone_tel_uri($booking->client_phone ?: $booking->client?->phone, $booking->client?->country) : null; $navLinks = ($active && $booking->started_at) ? $booking->navigationLinks() : null; $nextStep = $booking->nextRideStep(); @endphp @if ($clientCallUrl) {{ __('chauffeur.mail_call_client') }} @endif @if ($booking->livePositionAllowed()) @endif {{-- Itinéraire dans le GPS du téléphone, une fois parti. --}} @if ($navLinks)

{{ __('chauffeur.nav_question') }}

@endif @if ($active)
{{ __('messages.carriers_track_driver_map_title') }}
@if ($booking->livePositionAllowed())

@endif
@endif @if ($booking->ridePermitted())
@foreach ($booking->rideSteps() as $step) @continue(! $booking->hasRideStep($step)) {{ __('chauffeur.restaurant_delivery_step_' . $step . '_past') }} @endforeach @if ($nextStep)
@csrf
@elseif ($booking->completed_at) {{ __('chauffeur.delivery_completed') }} @endif
@endif @if ($booking->order)
{{ __('chauffeur.mail_delivery_view_order') }} →
@endif