@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