{{-- ================================================================ 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 ? '✕' : '✓'; $label = 'font-size:11px;font-weight:700;letter-spacing:0.5px;text-transform:uppercase;color:' . $muted . ';margin:0 0 3px;'; $value = 'font-size:16px;font-weight:700;color:' . $ink . ';margin:0;'; $sectionHead = 'background:' . $green . ';border-radius:8px 8px 0 0;padding:8px 14px;font-size:13px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:#ffffff;'; $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 @if($web) QuickSilver Booking #{{ $card['booking_no'] }} @else {{-- Email: body content only. Yahoo and others strip /