@extends('layouts.print') @section('title', 'Ancillary Revenue — ' . \Carbon\Carbon::parse($from)->format('M j') . '–' . \Carbon\Carbon::parse($to)->format('M j, Y')) @section('content') @php $propName = \App\Models\Setting::get('property_name', config('app.name', 'Parkview Hotel')); $periodLabel = \Carbon\Carbon::parse($from)->format('M j') . ' – ' . \Carbon\Carbon::parse($to)->format('M j, Y'); @endphp
@include('reports.print._letterhead', [ 'reportTitle' => 'Ancillary Revenue', 'periodLabel' => $periodLabel, 'backUrl' => route('reports.ancillary', ['from' => $from, 'to' => $to]), ])
{{-- Summary --}}
@foreach([ ['Ancillary Revenue', '₱' . number_format($ancillaryTotal, 2), 'non-room folio charges'], ['Share of Total', number_format($ancillaryShare, 1) . '%', 'of room + ancillary'], ['Room Revenue', '₱' . number_format($roomRevenue, 2), 'check-ins in period'], ['Posted from POS', '₱' . number_format($fromPosTotal, 2), 'rest manual'], ] as [$label, $value, $sub])

{{ $label }}

{{ $value }}

{{ $sub }}

@endforeach
{{-- By category --}}

Revenue by Category

@if($byCategory->isEmpty())

No folio charges for this period.

@else @foreach($byCategory as $row) @endforeach
Category Charges From POS Manual Revenue Share
{{ $row['label'] }} {{ $row['count'] }} {{ $row['from_pos'] }} {{ $row['manual'] }} ₱{{ number_format($row['revenue'], 2) }} {{ $row['share'] }}%
Total Ancillary {{ $byCategory->sum('count') }} ₱{{ number_format($ancillaryTotal, 2) }} 100%
@endif
{{ $propName }} · Ancillary Revenue Printed {{ now()->format('M j, Y g:i A') }}
@endsection