travel_date)); $booking_date_formatted = date_i18n(get_option('date_format') . ' ' . get_option('time_format'), strtotime($booking->created_at)); // Get status color $status_colors = [ 'pending' => ['bg' => '#fef3c7', 'text' => '#d97706', 'label' => 'Pending'], 'confirmed' => ['bg' => '#d1fae5', 'text' => '#059669', 'label' => 'Confirmed'], 'processing' => ['bg' => '#dbeafe', 'text' => '#2563eb', 'label' => 'Processing'], 'completed' => ['bg' => '#d1fae5', 'text' => '#059669', 'label' => 'Completed'], 'cancelled' => ['bg' => '#fee2e2', 'text' => '#dc2626', 'label' => 'Cancelled'], 'refunded' => ['bg' => '#fce7f3', 'text' => '#db2777', 'label' => 'Refunded'], 'on_hold' => ['bg' => '#e5e7eb', 'text' => '#6b7280', 'label' => 'On Hold'], ]; $status_style = $status_colors[$booking->status] ?? $status_colors['pending']; yatra_get_header(); // Hook for Pro modules to add custom scripts (Facebook Pixel, etc.) do_action('yatra_booking_confirmation_header', $booking); ?>
status === 'confirmed') { esc_html_e('Thank you for your booking. We look forward to hosting you!', 'yatra'); } elseif ($booking->status === 'pending') { esc_html_e('Thank you for your booking. Your booking is pending confirmation.', 'yatra'); } elseif ($booking->status === 'cancelled') { esc_html_e('This booking has been cancelled.', 'yatra'); } else { esc_html_e('Thank you for your booking submission.', 'yatra'); } ?>
starting_location); ?> ending_location) && $booking->ending_location !== $booking->starting_location) : ?> → ending_location); ?>
trip_destinations_list)) : ?> trip_activities_list)) : ?> trip_categories_list)) : ?> trip_attributes_list)) : ?>