@extends('layout.app') @section('content') @php($total = $rows->sum('bookings'))
@foreach([ 'Bookings made' => number_format($total), 'Cancellation rate' => ($total > 0 ? round($rows->sum('cancelled') / $total * 100, 1) : 0).' %', 'Booking value (LKR)' => number_format($rows->sum('value_lkr'), 2), 'Booking value (USD)' => number_format($rows->sum('value_usd'), 2), 'Returning guests' => number_format($rows->sum('returning_guests')), ] as $label => $value)

{{ $label }}

{{ $value }}

@endforeach

Bookings report

@include('reports._monthPicker', ['note' => 'Bookings made in '.\Carbon\Carbon::createFromFormat('Y-m', $month)->format('F Y').' (Sri Lanka time), whatever their stay dates. Value excludes cancelled and expired bookings; LKR and USD bookings are totalled separately. Returning guests are recognised by email, phone or name and address, with or without an account.'])
@forelse($rows as $row) @empty @endforelse
PropertyBookingsConfirmed / stayedCancelled No-showWebsite / hotelOnline / at hotel Value (LKR)Value (USD)Avg nightsBooked ahead (days)New / returning
{{ $row->property_name }} {{ $row->bookings }} {{ $row->confirmed }} {{ $row->cancelled }} ({{ $row->cancellation_rate }}%) {{ $row->no_show }} {{ $row->web }} / {{ $row->walk_in }} {{ $row->online_payment }} / {{ $row->pay_at_hotel }} {{ number_format($row->value_lkr, 2) }} {{ number_format($row->value_usd, 2) }} {{ $row->avg_nights }} {{ $row->avg_lead_days }} {{ $row->new_guests }} / {{ $row->returning_guests }}
No bookings were made in this month.
@stop