@extends('layout.admin') @section('styles') @endsection @section('content')
Name: {{ $booking->customer_name ?? 'N/A' }}
Email: {{ $booking->customer_email ?? 'N/A' }}
Name: {{ ucfirst($passenger->title ?? 'N/A') }} {{ ucfirst($passenger->first_name ?? 'N/A') }} {{ $passenger->middle_name ? ucfirst($passenger->middle_name) : '' }} {{ ucfirst($passenger->last_name ?? 'N/A') }}
Email: {{ $passenger->email ?? 'N/A' }}
Phone NO: {{ $passenger->phone_no ?? 'N/A' }}
Mobile No: {{ $passenger->mobile_no ?? 'N/A' }}
IP Address: {{ $passenger->address ?? 'N/A' }}
Date Of Birth: {{ $passenger->dob ?? 'N/A' }}
Gender: {{ ucfirst($passenger->gender ?? 'N/A') }}
Passport No: {{ $passenger->passport_no ?? 'N/A' }}
Passenger Type: {{ $passenger->seat_preferenc ?? 'N/A' }}
Created At: {{ $passenger->created_at ?? 'N/A' }}
Transaction Amount: {{ number_format($booking->transaction_amount, 2) }}
Currency: {{ $booking->currency ?? 'N/A' }}
Transaction Reference: {{ $booking->transaction_reference ?? 'N/A' }}
Payment Method: {{ ucfirst($booking->payment_method) ?? 'N/A' }}
Payment Date: {{ $booking->payment_date ?? 'N/A' }}
Transaction status : {{ ucfirst($booking->transaction_status) ?? 'N/A' }}
@php $gatewayResponse = json_decode($booking->gateway_response, true); function renderResponse($data, $level = 0) { foreach ($data as $key => $value) { $indent = $level * 10; // Indentation for nested data $keyLabel = is_string($key) ? ucwords(str_replace('_', ' ', $key)) : 'Item'; if (is_array($value)) { echo "No Gateway Response available.
@endifPnr No: {{ $booking->pnr_no ?? 'N/A' }}
Order Ticket Id: {{ $booking->order_reference ?? 'N/A' }}
Booking Status: {{ ucfirst($booking->payment_status ?? 'N/A' ) }}
Booking Amount: {{ ucfirst($booking->amount ?? 'N/A' ) }}
Created At: {{ ucfirst($booking->created_at ?? 'N/A' ) }}
@php $details = json_decode($booking->flight_detail, true); @endphp @php function renderDetails($data, $level = 0) { foreach ($data as $key => $value) { $indent = $level * 10; // Increase indent with nesting $keyLabel = is_string($key) ? ucwords(str_replace('_', ' ', $key)) : 'Item'; if (is_array($value)) { echo "No additional details provided.
@endif