@extends('layouts.app') @section('page-title', 'Faktur ' . $invoice->invoice_number) @section('content')

Faktur {{ $invoice->invoice_number }}

{{ ucfirst($invoice->payment_status) }}
Download PDF Cetak Faktur

{{ config('app.name', 'Kosan') }}

Sistem Manajemen Kosan

FAKTUR

{{ $invoice->invoice_number }}

Diterbitkan: {{ $invoice->issued_at->format('d M Y') }}

Tagihan Kepada

{{ $invoice->reservation->guest->full_name }}

{{ $invoice->reservation->guest->email }}

{{ $invoice->reservation->guest->phone }}

@if($invoice->reservation->guest->address)

{{ $invoice->reservation->guest->address }}

@endif

Detail Reservasi

Kode{{ $invoice->reservation->reservation_code }}
Kamar{{ $invoice->reservation->room->room_number }} ({{ $invoice->reservation->room->roomType->name }})
Check-in{{ $invoice->reservation->check_in_date->format('d M Y') }}
Check-out{{ $invoice->reservation->check_out_date->format('d M Y') }}
Durasi{{ $invoice->reservation->months }} bulan
@if($invoice->reservation->early_checkin_fee > 0) @endif @if($invoice->reservation->late_checkout_fee > 0) @endif @if($invoice->discount > 0) @endif
Deskripsi Jumlah
Kamar {{ $invoice->reservation->room->room_number }} — {{ $invoice->reservation->room->roomType->name }}
{{ $invoice->reservation->months }} bulan × Rp {{ number_format($invoice->reservation->room->roomType->price_per_month, 0, ',', '.') }}
Rp {{ number_format($invoice->subtotal, 0, ',', '.') }}
Biaya Check-in Lebih Awal Rp {{ number_format($invoice->reservation->early_checkin_fee, 0, ',', '.') }}
Biaya Check-out Terlambat Rp {{ number_format($invoice->reservation->late_checkout_fee, 0, ',', '.') }}
Subtotal Rp {{ number_format($invoice->subtotal, 0, ',', '.') }}
Pajak ({{ number_format(config('hotel.tax_rate', 0.11) * 100, 0) }}%) Rp {{ number_format($invoice->tax, 0, ',', '.') }}
Biaya Layanan ({{ number_format(config('hotel.service_charge_rate', 0.10) * 100, 0) }}%) Rp {{ number_format($invoice->service_charge, 0, ',', '.') }}
Diskon -Rp {{ number_format($invoice->discount, 0, ',', '.') }}
Total Keseluruhan Rp {{ number_format($invoice->grand_total, 0, ',', '.') }}
@if($invoice->payments->count())

Pembayaran Diterima

@foreach($invoice->payments as $payment)
{{ $payment->payment_date->format('d M Y') }} — {{ $payment->payment_method_label }} Rp {{ number_format($payment->amount, 0, ',', '.') }}
@endforeach
@endif @if($invoice->remaining_balance > 0)
Sisa Tagihan: Rp {{ number_format($invoice->remaining_balance, 0, ',', '.') }}
@endif

Terima kasih telah menginap bersama kami!

{{ config('app.name') }} • {{ config('app.url') }}

@endsection