@extends('layouts.admin') @section('title', 'Resort Reports') @section('content')
@include('admin.resorts.booking-filters')

Financial totals use bookings with check-in in the selected range. Revenue excludes pending requests, rejected and cancelled bookings. Collections include payments on the selected bookings.

@foreach($totals as $key => $value)@if(($key !== 'supplier_cost' || $costAccess) && ($key !== 'gross_profit' || $profitAccess))
{{ ucwords(str_replace('_',' ',$key)) }}
{{ $value }}
@endif @endforeach
Occupancy

Confirmed, checked-in, checked-out and no-show room nights / (inventory overrides or defaults minus blocked room nights). Payment holds are excluded from sold nights. Stop-sell closes sales but does not remove physical rooms from the denominator. On-request resorts are excluded.

@foreach($occupancy as $row)@endforeach
ResortAvailable room nightsSold room nightsOccupancy
{{ $row['name'] }}{{ $row['capacity'] }}{{ $row['sold'] }}{{ $row['percent'] }}%
@if($costAccess)
Supplier Payable

Confirmed booking costs less settlements linked through the existing Vendor Payment form. Unlinked vendor payments are excluded.

@foreach($items->whereIn('status',['CONFIRMED','CHECKED_IN','CHECKED_OUT','NO_SHOW'])->whereNotNull('supplier_id')->groupBy('supplier_id') as $group) @php($settled = $group->sum(fn($b) => $b->supplierPayments->sum('amount'))) @endforeach
SupplierCost committedSettledPayable
{{ $group->first()->supplier?->name }}{{ number_format($group->sum('supplier_cost'),2) }}{{ number_format($settled,2) }}{{ number_format($group->sum('supplier_cost') - $settled,2) }}
@endif
Booking Report
@foreach($items as $item)@endforeach
BookingCustomerResortStayTotalPaidStatus
{{ $item->booking_no }}{{ $item->customer_details['name'] }}{{ $item->resort_name }}{{ $item->check_in }} → {{ $item->check_out }}{{ $item->grand_total }}{{ $item->paid }}{{ $item->status }}
@endsection