@extends('admin-layouts.master') @section('title', 'Detail Laporan Pendapatan') @section('content')
Total Pendapatan
Total Invoice
Rata-rata per Invoice
Total Pajak
| Pendapatan Kamar | Rp {{ number_format($summary['total_room_revenue'], 0, ',', '.') }} |
| Pendapatan Layanan | Rp {{ number_format($summary['total_service_revenue'], 0, ',', '.') }} |
| Diskon | - Rp {{ number_format($summary['total_discount'], 0, ',', '.') }} |
| Pajak (PPN) | Rp {{ number_format($summary['total_tax'], 0, ',', '.') }} |
| Total Pendapatan | Rp {{ number_format($summary['total_revenue'], 0, ',', '.') }} |
| Lunas | Rp {{ number_format($summary['paid_amount'], 0, ',', '.') }} |
| Pending | Rp {{ number_format($summary['pending_amount'], 0, ',', '.') }} |
| Jatuh Tempo | Rp {{ number_format($summary['overdue_amount'], 0, ',', '.') }} |
| Total | Rp {{ number_format($summary['total_revenue'], 0, ',', '.') }} |
| Tipe Kamar | Jumlah Booking | Total Pendapatan | Rata-rata per Booking | Persentase |
|---|---|---|---|---|
| {{ $roomType->room_type }} | {{ $roomType->booking_count }} | Rp {{ number_format($roomType->total_revenue, 0, ',', '.') }} | Rp {{ number_format($roomType->avg_revenue, 0, ',', '.') }} | {{ number_format(($summary['total_room_revenue'] > 0 ? ($roomType->total_revenue / $summary['total_room_revenue']) * 100 : 0), 1) }}% |
| No | No. Invoice | Tanggal | Tamu | Check-in | Check-out | Kamar | Layanan | Diskon | Pajak | Total | Status |
|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $index + 1 }} | {{ $invoice->invoice_number }} | {{ \Carbon\Carbon::parse($invoice->invoice_date)->format('d/m/Y') }} | {{ $invoice->booking->guest->name ?? '-' }} | {{ $invoice->booking->check_in_date ? \Carbon\Carbon::parse($invoice->booking->check_in_date)->format('d/m/Y') : '-' }} | {{ $invoice->booking->check_out_date ? \Carbon\Carbon::parse($invoice->booking->check_out_date)->format('d/m/Y') : '-' }} | Rp {{ number_format($invoice->room_total, 0, ',', '.') }} | Rp {{ number_format($invoice->services_total, 0, ',', '.') }} | Rp {{ number_format($invoice->discount_amount, 0, ',', '.') }} | Rp {{ number_format($invoice->tax_amount, 0, ',', '.') }} | Rp {{ number_format($invoice->grand_total, 0, ',', '.') }} | @switch($invoice->status) @case('paid') Lunas @break @case('pending') Pending @break @case('cancelled') Dibatalkan @break @case('overdue') Jatuh Tempo @break @default {{ ucfirst($invoice->status) }} @endswitch |
| TOTAL: | Rp {{ number_format($invoices->sum('room_total'), 0, ',', '.') }} | Rp {{ number_format($invoices->sum('services_total'), 0, ',', '.') }} | Rp {{ number_format($invoices->sum('discount_amount'), 0, ',', '.') }} | Rp {{ number_format($invoices->sum('tax_amount'), 0, ',', '.') }} | Rp {{ number_format($invoices->sum('grand_total'), 0, ',', '.') }} | ||||||