{{-- CARD HEADER --}}
|
🚂 TRIP DETAILS
|
{{-- PICKUP DATE / TIME --}}
|
📅 PICKUP DATE & TIME
{{ \Carbon\Carbon::parse($reservation['pickup_date'] . ' ' . $reservation['pickup_time'])->format('d-M-Y') }}
• {{ \Carbon\Carbon::parse($reservation['pickup_date'] . ' ' . $reservation['pickup_time'])->format('h:i A') }}
|
{{-- ROUTE (Pickup = RED, Dropoff = GREEN) --}}
|
🗺 ROUTE
{{-- Pickup — RED --}}
|
A
|
PICKUP LOCATION
{{ $reservation['pickup_location']['address'] }}
|
{{-- Connector line --}}
@if(isset($reservation['additional_stops']) && count($reservation['additional_stops']) > 0)
@foreach($reservation['additional_stops'] as $index => $stop)
|
{{ $index + 1 }}
|
STOP {{ $index + 1 }}
{{ $stop['address'] ?? ($stop['location']['address'] ?? 'N/A') }}
|
@endforeach
@endif
{{-- Dropoff — GREEN --}}
|
B
|
DROP LOCATION
{{ $reservation['dropoff_location']['address'] }}
|
|
{{-- PASSENGER / LUGGAGE / VEHICLE — 3-column cards --}}
|
👥 PASSENGERS
|
|
{{ collect($reservation['travellers'])->sum('count') }}
Pax
|
|
|
👳 LUGGAGE
|
|
{{ $reservation['luggage'] }}
Bags
|
|
|
🚗 VEHICLE
|
|
{{ $reservation['selected_vehicle']['vehicles_type'] ?? $reservation['selected_vehicle']['vehicle_type'] ?? 'Vehicle' }}
Scheduled
|
|
{{-- Extra info badges (distance, hours, stops) --}}
@if(!empty($reservation['distance']) || !empty($reservation['drop_off_hours']) || count($reservation['additional_stops'] ?? []) > 0)
@if(!empty($reservation['distance']))
|
🛣 {{ $reservation['distance'] }} mi
|
@endif
@if(!empty($reservation['drop_off_hours']))
⏱ {{ $reservation['drop_off_hours'] }} hrs
|
@endif
@if(count($reservation['additional_stops'] ?? []) > 0)
📍 {{ count($reservation['additional_stops']) }} stop(s)
|
@endif
@endif
|
{{-- BAGGAGE NOTE --}}
|
🛃 You may carry
{{ $reservation['luggage'] }} hand bag(s) and
{{ $reservation['check_in_bags'] ?? 0 }} check-in bag(s).
|
{{-- FARE --}}
|
TOTAL FARE
|
${{ $reservation['total_fare'] }}
|
|