@extends('layout.app') @section('content') @php($fmt = fn ($v) => number_format($v, 2)) @php($available = $rows->sum('available_nights')) @php($sold = $rows->sum('sold_nights'))
@foreach([ 'Occupancy' => ($available > 0 ? round(min(100, $sold / $available * 100), 1) : 0).' %', 'Room-nights sold' => number_format($sold), 'Room revenue (LKR)' => $fmt($rows->sum('revenue_lkr')), 'Room revenue (USD)' => $fmt($rows->sum('revenue_usd')), ] as $label => $value)

{{ $label }}

{{ $value }}

@endforeach

Occupancy report

@include('reports._monthPicker', ['note' => 'Available room-nights count only dates open in the rates calendar (total rooms less closed rooms). Revenue is from confirmed and stayed bookings for nights in '.\Carbon\Carbon::createFromFormat('Y-m', $month)->format('F Y').', before promotion discounts. LKR bookings are shown in LKR and USD bookings in USD; they are not converted or combined.'])
@forelse($rows as $row) @empty @endforelse
PropertyRoom typeRoomsAvailable SoldOccupancy LKR bookingsUSD bookings
RevenueADRRevPAR RevenueADRRevPAR
{{ $row->property_name }} {{ $row->room_type }} {{ $row->rooms }} {{ number_format($row->available_nights) }} {{ number_format($row->sold_nights) }} {{ $row->occupancy }} % {{ $fmt($row->revenue_lkr) }} {{ $fmt($row->adr_lkr) }} {{ $fmt($row->revpar_lkr) }} {{ $fmt($row->revenue_usd) }} {{ $fmt($row->adr_usd) }} {{ $fmt($row->revpar_usd) }}
No rooms set up.

ADR = average room rate per room-night sold in that currency. RevPAR = room revenue in that currency per available room-night.

@stop