@extends('admin-layouts.master') @section('title', 'Laporan Pendapatan') @section('content')
| No | Nama | Tipe dan Nomor Kamar | Tgl Check In | Tgl Check Out | Lama Inap | Harga | Layanan | Subtotal | Diskon | Pajak | Total | Status | Aksi |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $index + 1 }} | {{ $guest->name ?? '-' }} | @if($room && $roomType) {{ $room->room_number }}- {{ $roomType->name }} @else - @endif | {{ $checkIn ? $checkIn->format('d M Y') : '-' }} | {{ $checkOut ? $checkOut->format('d M Y') : '-' }} | {{ $lamaInap }} | {{ number_format($hargaPerMalam, 0, ',', '.') }} | {{ number_format($invoice->services_total, 0, ',', '.') }} | {{ number_format($totalBiaya, 0, ',', '.') }} | {{ number_format($invoice->discount_amount, 0, ',', '.') }} | {{ number_format($invoice->tax_amount, 0, ',', '.') }} | {{ 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 | |
| Tidak ada data invoice untuk periode ini | |||||||||||||
| TOTAL: | {{ number_format($invoices->sum(function($invoice) { return $invoice->booking->bookingDetails->sum('room_price'); }), 0, ',', '.') }} | {{ number_format($invoices->sum('services_total'), 0, ',', '.') }} | {{ number_format($invoices->sum('room_total') + $invoices->sum('services_total'), 0, ',', '.') }} | {{ number_format($invoices->sum('discount_amount'), 0, ',', '.') }} | {{ number_format($invoices->sum('tax_amount'), 0, ',', '.') }} | {{ number_format($invoices->sum('grand_total'), 0, ',', '.') }} | |||||||