@extends('admin-layouts.master') @section('title', 'Detail Laporan Pendapatan') @section('content')

Detail Laporan Pendapatan

Periode: {{ $summary['period'] }}
Kembali Print PDF

Rp {{ number_format($summary['total_revenue'], 0, ',', '.') }}

Total Pendapatan

{{ $summary['total_invoices'] }}

Total Invoice

Rp {{ number_format($summary['average_invoice_value'], 0, ',', '.') }}

Rata-rata per Invoice

Rp {{ number_format($summary['total_tax'], 0, ',', '.') }}

Total Pajak

Breakdown Pendapatan

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, ',', '.') }}

Status Pembayaran

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, ',', '.') }}
@if($revenueByRoomType->count() > 0)

Pendapatan per Tipe Kamar

@foreach($revenueByRoomType as $roomType) @endforeach
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) }}%
@endif @if($dailyRevenue->count() > 0)

Trend Pendapatan Harian

@endif @if($revenueByRoomType->count() > 0)

Distribusi Pendapatan per Tipe Kamar

Perbandingan Pendapatan

@endif

Detail Invoice

@foreach($invoices as $index => $invoice) @endforeach
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, ',', '.') }}
@push('scripts') @endpush @push('styles') @endpush @endsection