@php /** * What a rider's pin says when the operator opens it. * * WHO is riding (avatar + name), EVERYTHING they are carrying (one line per * order — number linking to the order, customer and total), and the two ways * to reach them: call and text. One rider is one pin, so a rider with two * orders shows both lines here rather than hiding one under a stacked pin. * Same card, same bands, same hairline rhythm as the venue popup * (map-venue-popup.php), and rendered on the SERVER for the same reasons: * money(), the translator and escaping all live here, not in the map script. * * @var array $dlv The rider (driver_name, driver_phone, driver_avatar) — * also a full order row, kept as the single-order fallback. * @var array $orders Every order this rider carries (id, order_number, * customer_name, total). Defaults to [$dlv]. */ $orders = $orders ?? [$dlv]; $phone = trim((string) ($dlv['driver_phone'] ?? '')); $tel = preg_replace('/[^+\d]/', '', $phone); @endphp
{!! brandmark_html($dlv['driver_avatar'] ?? null, (string) ($dlv['driver_name'] ?? ''), 'md', 'qm-brandmark--round') !!}
{{ (string) ($dlv['driver_name'] ?? '') }}

{{ t_raw('order.track_contact_driver') }}

@foreach ($orders as $o)

{{ (string) ($o['order_number'] ?? '') }} · {{ (string) ($o['customer_name'] ?? '') }} · {{ money((float) ($o['total'] ?? 0)) }}

@endforeach
@if ($tel !== '') @php /* The two ways to reach the rider — the same two-button band the venue card uses for Delivery/Pickup, each carrying the number it dials. */ @endphp
{{ t_raw('order.track_call_btn') }} {{ $phone }} {{ t_raw('order.track_text_btn') }} {{ $phone }}
@endif