@extends('admin.layouts.app') @section('title', 'Folio Receipt - ' . $booking->booking_id) @section('content')

{{ $hotelName }}

Guest Folio

STATEMENT

{{ $booking->booking_number }}
Guest {{ $booking->guest_name }}
Room {{ $booking->room?->room_number ?? 'N/A' }} ({{ $booking->roomType?->name }})
Check-in {{ $booking->check_in_date?->format('M d, Y') ?? 'N/A' }}
Check-out {{ $booking->check_out_date?->format('M d, Y') ?? 'N/A' }}
@php $roomCharges = $charges->where('charge_type', 'room')->sum('amount'); $otherCharges = $charges->where('charge_type', '!=', 'room')->sum('amount'); $totalCharges = $roomCharges + $otherCharges; @endphp @if($roomCharges > 0)
Room Charges
@foreach($charges->where('charge_type', 'room') as $charge) @endforeach
Description Amount
{{ $charge->description }}
{{ $charge->created_at->format('M d, H:i') }}
₦{{ number_format($charge->amount, 2) }}
@endif @if($otherCharges > 0)
Other Charges
@foreach($charges->where('charge_type', '!=', 'room') as $charge) @endforeach
Description Amount
{{ $charge->description }}
{{ $charge->created_at->format('M d, H:i') }}
₦{{ number_format($charge->amount, 2) }}
@endif @if($payments->count() > 0)
Payments
@foreach($payments as $payment) @endforeach
Method Amount
{{ ucfirst($payment->payment_method) }}
{{ $payment->created_at->format('M d, H:i') }}
₦{{ number_format($payment->amount, 2) }}
@endif
Total Charges ₦{{ number_format($totalCharges, 2) }}
Total Payments -₦{{ number_format($payments->sum('amount'), 2) }}
Balance Due ₦{{ number_format($totalCharges - $payments->sum('amount'), 2) }}
Back
@endsection