@extends('admin/layouts/master') @section('title', 'Order Manage') @section('style') @endsection @section('content') @php $airline = $booking->airline ? strtolower($booking->airline) : 'N/A'; @endphp
Cancellation policies are not available for FlyJinnah bookings at this time.
@elseStatus: {{ $data['Status'] }}
@else| When | Amount | Application |
|---|---|---|
| {{ $when }} | {{ isset($fee['price']) ? ($fee['price']['amount'] ?? '') . ' ' . ($fee['price']['code'] ?? '') : '' }} | {{ $fee['amountApplication'] ?? '' }} |
No penalty info available.
@endifNo penalties found for this booking item.
No booking items found.
@endforelse @elseif ($airline === 'flyjinnah') @php $xmlBody = $booking->bookingRequest && isset($booking->bookingRequest->xml_body) ? json_decode($booking->bookingRequest->xml_body, true) : null; $airReservation = $xmlBody['response']['Body']['OTA_AirBookRS']['AirReservation'] ?? $xmlBody['Body']['OTA_AirBookRS']['AirReservation'] ?? null; $options = $airReservation['AirItinerary']['OriginDestinationOptions']['OriginDestinationOption'] ?? []; $options = is_array($options) && isset($options[0]) ? $options : [$options]; $hasPenalties = false; @endphp @foreach ($options as $option) @if (!empty($option['FlightSegment']) && is_array($option['FlightSegment'])) @foreach ($option['FlightSegment'] as $segment) @if (!empty($segment['AvailableFlexiOperations']['FlexiOperations']) && is_array($segment['AvailableFlexiOperations']['FlexiOperations'])) @php $hasPenalties = true; @endphpNo penalty information available.
| Type | Amount | Currency |
|---|---|---|
| {{ $fee['type_code'] ?? 'N/A' }} | {{ $fee['amount'] ?? '' }} | {{ $fee['currency'] ?? '' }} |
No penalty info available.
@endifNo penalties found for this booking item.
No booking items found.
@endforelse @elseUnsupported airline for penalty information.
| # | Error Type | Message | {{--Details | --}}Date |
|---|---|---|---|---|
| {{ $index + 1 }} | {{ ucfirst($log->error_type) }} | @php $errorMessage = json_decode($log->error_message, true); @endphp {{ is_array($errorMessage) ? implode(', ', $errorMessage) : $log->error_message }} | {{--
@php
$details = json_decode($log->details, true);
@endphp
@if (is_array($details))
{{ json_encode($details, JSON_PRETTY_PRINT) }}
@else
{{ $log->details }}
@endif
| --}}
{{ \Carbon\Carbon::parse($log->created_at)->format('d M Y h:i A') }} |
Unsupported tax format for airline.
@endif @elseNo taxes available.
@endifNo services available.
@endifNo booking items found.
@endforelse| Airline Ref | {{--RBD Code | Cancellation Fee | --}}Flight No | Origin/Destination | Stops | Departure | Arrival | Duration | Class |
|---|---|---|---|---|---|---|---|---|---|
| {{ $flight->airline }} | {{--NA | --}} {{--LB | --}}{{ $segment->flight_number }} | {{ $segment->departure_code }} - {{ $segment->arrival_code }} | {{ $flight->is_connected ? '1' : '0' }} | {{ \Carbon\Carbon::parse($segment->departure_date)->format('d M Y H:i') }} | {{ \Carbon\Carbon::parse($segment->arrival_date)->format('d M Y H:i') }} | {{ $segment->formatted_duration }} | {{ $flight->cabin_name_with_code }} |
| Passenger Name | Date Of Birth | Type | Nationality | Passport Number / NIC | Expiry | Airline PNR | GDS PNR | Ticket Number | Price | Status | |||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ strtoupper($passenger['title']) }} {{ $passenger['given_name'] ?? '' }} {{ $passenger['surname'] }} | {{ \Carbon\Carbon::parse($passenger['dob'] ?? '')->format('d/m/Y') }} | {{ $passenger['type'] ?? '' }} | {{ $passenger['nationality'] ?? 'N/A' }} | {{ $passenger['passport_no'] ?? 'N/A' }} | {{ \Carbon\Carbon::parse($passenger['passport_exp'] ?? '')->format('d/m/Y') }} | {{ $booking->airline_id ?? $booking->order_id }} | {{ $booking->flight_booking_id }}-{{ $loop->iteration }} | @if ($ticket){{ $ticket->ticket_no ?? '' }} | {{ number_format($ticket->price) }} {{ $ticket->price_code }} | {{ strtoupper($ticket->status ?? '') }} | @else @if ($booking->status === 'issued') @elseNot issued | @endif @endif||
| No passengers found. | |||||||||||||
| Type | Provider | Supplier | Base Fare | Tax | POS Rule | Displayed Price | PNR Expires At | Booking Expires At | {{----}} |
|---|---|---|---|---|---|---|---|---|---|
| {{ $booking->is_oneway ? 'Oneway' : 'Return' }} Flight | {{ $booking->airline ?? '' }}Api | {{ $booking->airline ?? '' }} | {{ $booking->total_price ?? 0 }} | {{ $booking->tax ?? 0 }} | Affiliation POS Rule | {{ $booking->total_tax_price ?? 0 }} | {{ \Carbon\Carbon::parse($booking->payment_limit)->format('d M Y h:i A') }} | {{ \Carbon\Carbon::parse($booking->ticket_limit)->format('d M Y h:i A') }} | {{--
| --}}
| Created at | Payment Method | Transaction ID | Displayed Price | Merchant Fee | Service Fee | Status | Refund Status | Selling Fare | Actions |
|---|---|---|---|---|---|---|---|---|---|
| {{ $payment->created_at->format('d M Y h:i a') }} | {{ $payment->payment_method }} | {{ $payment->transaction_id }} | {{ $payment->base_price_code }} {{ number_format($payment->base_price + $payment->tax, 2) }} | {{ $payment->merchant_fee }}% | {{ $payment->service_fee }} | {{ ucfirst($payment->status) }} | {{ $payment->refund_status ?? 'N/A' }} | {{ $payment->base_price_code }} {{ number_format($payment->base_price, 2) }} | @can('manage payment') @endcan |
| No Payment Found | |||||||||