{{-- ================================================================ QuickSilver trip card — ONE template for every copy of a booking: customer confirmation / cancellation emails, driver new-trip / trip-canceled emails, the confirmation screen and the print view. Data comes from App\Support\TripCard::build(). Email-safe markup (tables + inline styles, no web fonts or icon fonts). Variables: $card (array), $web (bool, true = browser/print view) ================================================================ --}} @php $variant = $card['variant']; $customer = $card['customer']; $isCancel = in_array($variant, ['cancellation', 'driver_canceled'], true); $web = $web ?? false; $green = '#0b6b3a'; $greenBg = '#eef7f0'; $greenBorder = '#cfe6d6'; $red = '#e3141b'; $redBg = '#fdecec'; $redBorder = '#f5b5b8'; $ink = '#0f1b3d'; $muted = '#5b6474'; $titles = [ 'confirmation' => ['YOUR BOOKING IS CONFIRMED', 'Thank you for choosing QuickSilver Premium Transportation.'], 'cancellation' => ['YOUR RESERVATION HAS BEEN CANCELED', null], 'driver_assigned' => ['NEW TRIP HAS BEEN ASSIGNED TO YOU', 'Please review the trip details below.'], 'driver_canceled' => ['YOUR ASSIGNED TRIP HAS BEEN CANCELED', 'No action is required. Do not proceed with this trip.'], ]; [$title, $subtitle] = $titles[$variant]; $icon = $isCancel ? '✖' : ($variant === 'driver_assigned' ? '🚗' : '✔'); $label = 'font-size:12px;color:' . $muted . ';margin:0 0 2px;'; $value = 'font-size:16px;font-weight:700;color:' . $ink . ';margin:0;'; $sectionHead = 'background:' . $greenBg . ';border:1px solid ' . $greenBorder . ';border-radius:8px 8px 0 0;padding:9px 14px;font-size:16px;font-weight:700;color:' . $green . ';'; $sectionBody = 'border:1px solid ' . $greenBorder . ';border-top:0;border-radius:0 0 8px 8px;background:#ffffff;'; $phones = '☎ (913) 722-4311' . '|' . '☎ 1-800-888-8294'; @endphp QuickSilver Booking #{{ $card['booking_no'] }} @if($web)
@endif
{{-- ── HEADER ARTWORK ── --}} {{-- ── STATUS BANNER ── --}} @foreach($card['trips'] as $i => $trip) @if($i > 0) @endif {{-- ── BOOKING # + TRIP TYPE ── --}} {{-- ── CUSTOMER INFORMATION (once) ── --}} @if($i === 0) @endif {{-- ── TRIP DETAILS ── --}} {{-- ── PASSENGER & VEHICLE ── --}} {{-- ── FARE ── --}} @endforeach {{-- ── FOOTER ── --}}
QuickSilver Premium Transportation Service · (913) 722-4311 · 1-800-888-8294
 
@if($variant === 'confirmation') @elseif($variant === 'cancellation') @endif
{!! $icon !!}

{{ $title }}

@if($variant === 'cancellation')

Your Quicksilver reservation #{{ $card['booking_no'] }} has been canceled.

@if(!empty($card['trips'][0]['cancellation']))

Cancellation Date: {{ $card['trips'][0]['cancellation']['date'] }}

@endif @elseif($subtitle)

{{ $subtitle }}

@endif
Need to make a change? Please call us as soon as possible.
Cancellations must be made at least {{ \App\Support\TripCard::FREE_CANCEL_HOURS }} hours before your scheduled pickup time to avoid being charged the full trip fare.
{!! $phones !!}

If you did not request this cancellation, or if you have any questions, please contact us immediately.

{!! $phones !!}
  RETURN TRIP  

BOOKING #

{{ $trip['id'] }}

  @if($variant === 'cancellation')

✖ CANCELED

@else

✈ {{ $trip['type']['label'] }}

@endif
👤 Customer Information
{{ $customer['initial'] ?: '?' }}

Customer Name

{{ strtoupper($customer['name']) }}

☎ Phone Number

{{ $customer['phone'] ?: '—' }}

💳 Payment Method

{{ $customer['payment'] }}

📅 Trip Details
@if(count($trip['stops'])) @endif

PICKUP DATE & TIME

{{ $trip['pickup_date'] }}

{{ $trip['pickup_time'] }}

@if($trip['flight'])

✈ Flight Information

@if($trip['flight']['airline'])

{{ $trip['flight']['airline'] }}

@endif

@if($trip['flight']['number'])Flight # {{ $trip['flight']['number'] }}@endif @if($trip['flight']['time']) • {{ $trip['flight']['label'] }} {{ $trip['flight']['time'] }}@endif

@else

Service

{{ ucwords(strtolower($trip['type']['label'])) }}

@endif

📍 PICKUP LOCATION

{{ $trip['pickup']['title'] }}

@if($trip['pickup']['detail'])

{{ $trip['pickup']['detail'] }}

@endif

📍 DESTINATION

{{ $trip['dropoff']['title'] }}

@if($trip['dropoff']['detail'])

{{ $trip['dropoff']['detail'] }}

@endif @if($trip['dropoff_is_airport'])

Terminal: To be provided

@endif

ADDITIONAL STOPS

@foreach($trip['stops'] as $n => $stop)

{{ $n + 1 }}. {{ $stop }}

@endforeach
👥 Passenger & Vehicle Information

Passengers

{{ $trip['passengers'] }}

🧳 Luggage

{{ $trip['luggage'] }}

Bags

🚗 Vehicle Type

{{ $trip['vehicle'] ?: '—' }}

or Similar

@if($variant === 'cancellation' && $trip['cancellation']) @endif
💲 Fare Information
Trip Total @if($variant === 'cancellation')(Original Fare)@endif {{ $trip['total'] }}
 

💲 Cancellation Charge

{{ $trip['cancellation']['charge'] }}

{{ $trip['cancellation']['note'] }}

QuickSilver Premium Transportation Service ☎ (913) 722-4311

Local Dispatch

☎ 1-800-888-8294

Toll Free (24/7)