@extends('layouts.app') @section('title', 'Ticket Fare Details') @section('content')

Ticket Fare Details

Back to List

Basic Information

ID

{{ $ticketFare->id }}

Airline

{{ $ticketFare->airline->name ?? '-' }}

Class

{{ $ticketFare->airlineClass->travelClass->name ?? '-' }}

Route

@if($ticketFare->route) @if($ticketFare->route->route_type->value === 'multi_city') @if($ticketFare->route->multiSegments->count() > 0) {{ $ticketFare->route->multiSegments->first()->fromCity->code ?? '-' }}-{{ $ticketFare->route->multiSegments->first()->toCity->code ?? '-' }} ... @else - @endif @else {{ $ticketFare->route->fromCity->code ?? '-' }}-{{ $ticketFare->route->toCity->code ?? '-' }} @if($ticketFare->route->route_type->value === 'round') -{{ $ticketFare->route->returnCity->code ?? '-' }} @endif @endif @else - @endif

Ticket Type

@switch($ticketFare->ticket_type->value) @case('regular') Regular @break @case('offer') Offer @break @case('group') Group @break @endswitch

With Meal

{{ $ticketFare->with_meal ? 'Yes' : 'No' }}

Effective From

{{ $ticketFare->effective_from->format('Y-m-d') }}

Effective To

{{ $ticketFare->effective_to->format('Y-m-d') }}

Fare Information

Net Fare

{{ number_format($ticketFare->net_fare, 2) }} SAR

Selling Fare

{{ number_format($ticketFare->selling_fare, 2) }} SAR

@if($ticketFare->offer_price)
Offer Price

{{ number_format($ticketFare->offer_price, 2) }} SAR

@endif
Child Fare %

{{ $ticketFare->child_fare_percentage }}%

Infant Fare %

{{ $ticketFare->infant_fare_percentage }}%

@if($ticketFare->groupTicket)

Group Ticket Details

Inbound Date

{{ $ticketFare->groupTicket->inbound_date->format('Y-m-d') }}

Outbound Date

{{ $ticketFare->groupTicket->outbound_date->format('Y-m-d') }}

PNR

{{ $ticketFare->groupTicket->pnr }}

Ticket Quantity

{{ $ticketFare->groupTicket->ticket_qty }}

Refundable

{{ $ticketFare->groupTicket->is_refundable ? 'Yes' : 'No' }}

Exchangable

{{ $ticketFare->groupTicket->is_exchangable ? 'Yes' : 'No' }}

@endif

Baggage Allowances

Inbound

@php $inboundAllowances = $ticketFare->baggageAllowances->where('travel_direction', 'inbound'); @endphp
Adult {{ $inboundAllowances->where('passenger_type', 'adult')->first()?->allowance ?? '-' }} KG
Child {{ $inboundAllowances->where('passenger_type', 'child')->first()?->allowance ?? '-' }} KG
Infant {{ $inboundAllowances->where('passenger_type', 'infant')->first()?->allowance ?? '-' }} KG

Outbound

@php $outboundAllowances = $ticketFare->baggageAllowances->where('travel_direction', 'outbound'); @endphp
Adult {{ $outboundAllowances->where('passenger_type', 'adult')->first()?->allowance ?? '-' }} KG
Child {{ $outboundAllowances->where('passenger_type', 'child')->first()?->allowance ?? '-' }} KG
Infant {{ $outboundAllowances->where('passenger_type', 'infant')->first()?->allowance ?? '-' }} KG

Actions

Edit
@csrf @method('DELETE')

Metadata

Created By

{{ $ticketFare->user->name ?? '-' }}

Created At

{{ $ticketFare->created_at->format('Y-m-d H:i:s') }}

Updated At

{{ $ticketFare->updated_at->format('Y-m-d H:i:s') }}

@endsection