@php $logoPath = public_path('assets/logo.png'); $logoSrc = file_exists($logoPath) && isset($message) ? $message->embed($logoPath) : asset('assets/logo.png'); @endphp

Payment Confirmation

Receipt for Booking #{{ $billing->booking_id }}

Dear {{ $billing->booking->full_name }},

Thank you for your payment. We have successfully recorded your payment for your stay at G4 Homez.

Payment Summary

Total Bill Amount: ${{ number_format($billing->amount_to_pay, 2) }}
Latest Payment: ${{ number_format($amountPaid, 2) }}
Total Paid to Date: ${{ number_format($billing->amount_paid, 2) }}
Current Outstanding Balance: ${{ number_format($billing->amount_to_pay - $billing->amount_paid, 2) }}
@if($billing->payments->isNotEmpty())

Recent Payment Transactions

@foreach($billing->payments->sortByDesc('payment_date')->take(5) as $payment) @endforeach
Date Method Reference Amount
{{ $payment->payment_date->format('M d, Y') }} {{ strtoupper($payment->payment_method) }} {{ $payment->reference_number ?: '-' }} ${{ number_format($payment->amount, 2) }}
@endif

Please find your official payment receipt attached to this email as a PDF document.

If you have any questions regarding this payment, please feel free to contact our front desk.