Bill To:
{{ $invoice->guest_name ?? '-' }}
{{ $invoice->guest_email ?? '-' }}
@if(!empty($invoice->guest_phone))
{{ $invoice->guest_phone }}
@endif
Booking Details:
Booking ID: {{ optional($invoice->booking)->booking_code ?? 'N/A' }}
Check-in: {{ optional($invoice->check_in_date)->format('d/m/Y') ?? '-' }}
Check-out: {{ optional($invoice->check_out_date)->format('d/m/Y') ?? '-' }}
Duration: {{ (int)($invoice->nights ?? 0) }} {{ (int)($invoice->nights ?? 0) > 1 ? 'nights' : 'night' }}
Room Subtotal:
Rp {{ number_format((float)($invoice->subtotal ?? 0), 0, ',', '.') }}
@if((float)($invoice->services_total ?? 0) > 0)
Services Total:
Rp {{ number_format((float)($invoice->services_total ?? 0), 0, ',', '.') }}
@endif
@if((float)($invoice->tax_amount ?? 0) > 0)
Tax:
Rp {{ number_format((float)($invoice->tax_amount ?? 0), 0, ',', '.') }}
@endif
TOTAL:
Rp {{ number_format((float)($invoice->total_amount ?? 0), 0, ',', '.') }}