@extends('layout.aplikasi') @section('konten')

Your Flight

Departure
{{ $flight->segments->first()->airport->name ?? '-' }} ({{ $flight->segments->first()->airport->iata_code ?? '-' }})
Arrival
{{ $flight->segments->last()->airport->name ?? '-' }} ({{ $flight->segments->last()->airport->iata_code ?? '-' }})
Date
{{ \Carbon\Carbon::parse($flight->segments->first()->time)->format('d F y') }}
Quantity
{{ $quantity }} people
@if($flight->airline && $flight->airline->logo) {{ $flight->airline->name }} @endif
{{ $flight->airline->name ?? '-' }}
{{ \Carbon\Carbon::parse($flight->segments->first()->time)->format('H:i') }} - {{ \Carbon\Carbon::parse($flight->segments->last()->time)->format('H:i') }}
Details
{{ ucfirst($class->class_type) }} Class
{{ ucfirst($class->class_type) }} Class
Rp. {{ number_format($class->price, 0, ',', '.') }}
{{ $flight->segments->count() > 1 ? ($flight->segments->count() - 1 . 'x Transit') : 'Direct Flight' }}
{{ $flight->segments->first()->airport->iata_code ?? '-' }} o-○-o {{ $flight->segments->last()->airport->iata_code ?? '-' }}

Transaction Details

Quantity
{{ $quantity }} People
Tiers
{{ ucfirst($class->class_type) }}
Seats
{{ implode(', ', $selectedSeats) }}
Price
Rp {{ number_format($class->price, 0, ',', '.') }}
Govt. Tax
11%
Sub Total
Rp {{ number_format($subTotal, 0, ',', '.') }}
Total Tax
Rp {{ number_format($totalTax, 0, ',', '.') }}
Grand Total
Rp {{ number_format($grandTotal, 0, ',', '.') }}
@foreach($seats as $seat) @endforeach
@endsection