@extends('layouts.print') @section('title', 'Revenue Report — ' . \Carbon\Carbon::parse($from)->format('M j') . '–' . \Carbon\Carbon::parse($to)->format('M j, Y')) @section('content') @php $periodLabel = \Carbon\Carbon::parse($from)->format('M j') . ' – ' . \Carbon\Carbon::parse($to)->format('M j, Y'); $propName = \App\Models\Setting::get('property_name', config('app.name', 'Parkview Hotel')); $pmTotal = (float) $byPaymentMethod->sum('total'); @endphp
@include('reports.print._letterhead', [ 'reportTitle' => 'Revenue Report', 'periodLabel' => $periodLabel, 'backUrl' => route('reports.revenue', ['from' => $from, 'to' => $to]), ])
{{-- Summary --}}

Summary · reservations checked in during period

@foreach([ ['Total Revenue', '₱' . number_format($totalRevenue, 2), 'booked room revenue'], ['Reservations', number_format($totalCount), 'checked in'], ['Avg / Booking', $totalCount > 0 ? '₱' . number_format($totalRevenue / $totalCount, 2) : '—', 'per reservation'], ['Total Collected', '₱' . number_format($totalPaid, 2), 'payments on record'], ] as [$label, $value, $sub])

{{ $label }}

{{ $value }}

{{ $sub }}

@endforeach
{{-- By room type --}}

By Room Type

@if($byRoomType->isEmpty())

No data for this period.

@else @foreach($byRoomType as $type => $row) @endforeach
Room Type Bookings Avg Nights ADR Revenue Share
{{ $type }} {{ $row['count'] }} {{ $row['avg_nights'] }} ₱{{ number_format($row['adr'], 2) }} ₱{{ number_format($row['revenue'], 2) }} {{ $row['share'] }}%
Total {{ $byRoomType->sum('count') }} ₱{{ number_format($totalRevenue, 2) }} 100%
@endif
{{-- By booking source --}}

By Booking Source

@if($bySource->isEmpty())

No data for this period.

@else @foreach($bySource as $source => $row) @endforeach
Source Bookings Avg Stay Revenue Share
{{ $source }} {{ $row['count'] }} {{ $row['avg_nights'] }}n ₱{{ number_format($row['revenue'], 2) }} {{ $row['share'] }}%
@endif
{{-- By rate plan --}}

By Rate Plan

@if($byRatePlan->isEmpty())

No data for this period.

@else @foreach($byRatePlan as $row) @endforeach
Code Rate Plan Bookings Revenue Share
{{ $row['code'] }} {{ $row['name'] }} {{ $row['count'] }} ₱{{ number_format($row['revenue'], 2) }} {{ $row['share'] }}%
@endif
{{-- By payment method --}}

Payment Methods · collected for these reservations

@if($byPaymentMethod->isEmpty())

No payment records for this period.

@else @foreach($byPaymentMethod as $pm) @endforeach
Method Transactions Amount Share
{{ $pm->method }} {{ $pm->cnt }} ₱{{ number_format($pm->total, 2) }} {{ $pmTotal > 0 ? round($pm->total / $pmTotal * 100, 1) : 0 }}%
Total {{ $byPaymentMethod->sum('cnt') }} ₱{{ number_format($pmTotal, 2) }} 100%
@endif
{{-- Footer --}}
{{ $propName }} · Revenue Report Printed {{ now()->format('M j, Y g:i A') }}
@endsection