Back to Choose Flight
Choose Seats
Transaction Details
Quantity 1 People
Tiers {{ ucfirst($class->class_type ?? '-') }}
Seats -
Price Rp {{ number_format($class->price ?? 0, 0, ',', '.') }}
Govt. Tax 11%
Sub Total Rp 0
Total Tax Rp 0
Grand Total Rp 0

{{ ucfirst($class->class_type ?? 'Economy') }} Class

Available Booked Selected
@csrf
@php $rows = ['A','B','C','D','E']; $seatMap = collect($seats)->keyBy('name'); @endphp @foreach($rows as $row) @for($col = 1; $col <= 7; $col++) @if($col == 4) @else @php $realCol = $col < 4 ? $col : $col - 1; $seatName = $row . $realCol; $seat = $seatMap->get($seatName); $isAvailable = $seat ? $seat->is_available : true; $isBooked = $seat && !$seat->is_available; @endphp @endif @endfor @endforeach