@extends('layout.app') @section('content') @php($fmt = fn ($v) => number_format($v, 2)) @foreach($totals as $currency => $total)
@foreach([ "Platform commission ($currency)" => $total->commission, "Gross bookings paid ($currency)" => $total->gross, "Collected online ($currency)" => $total->online, "Collected at hotels ($currency)" => $total->hotel, ] as $label => $value)

{{ $label }}

{{ $fmt($value) }}

@endforeach
@endforeach

Monthly income by hotel

LKR payments are totalled in LKR and USD payments in USD. The two currencies are never converted or combined.

@include('reports._monthPicker')
@forelse($rows as $row) @empty @endforelse @if($rows->isNotEmpty()) @foreach($totals as $currency => $total) @endforeach @endif
Hotel Owner Currency Bookings Collected online Collected at hotel Refunds Gross (net) Commission Settlement
{{ $row->property_name }} {{ $row->owner_name }} {{ $row->currency }} {{ $row->bookings }} {{ $fmt($row->online) }} {{ $fmt($row->hotel) }} {{ $row->refunds > 0 ? "− ".$fmt($row->refunds) : "–" }} {{ $fmt($row->gross) }} {{ $fmt($row->commission) }} @if($row->settlement >= 0) Pay hotel {{ $row->currency }} {{ $fmt($row->settlement) }} @else Hotel owes {{ $row->currency }} {{ $fmt(-$row->settlement) }} @endif
No payments in this month.
Total {{ $currency }} {{ $currency }} {{ $total->bookings }} {{ $fmt($total->online) }} {{ $fmt($total->hotel) }} {{ $total->refunds > 0 ? "− ".$fmt($total->refunds) : "–" }} {{ $fmt($total->gross) }} {{ $fmt($total->commission) }} {{ $fmt($total->settlement) }}

Settlement: online payments are collected by the platform, which pays the hotel the amount less commission; payments taken at the hotel leave the hotel owing the commission.

@stop