@extends('layouts.hirbnd') @section('title', 'Room ' . $room . ' - ' . $roomType) @section('page-title', 'Room Matrix: ' . $room) @push('styles') @endpush @section('content')
{{ $roomType }} - Revenue Matrix
| Day/Month | @foreach(['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'] as $month){{ $month }} | @endforeach||
|---|---|---|---|
| {{ $day }} | @for($monthIdx = 0; $monthIdx < 12; $monthIdx++) @if($day <= $daysInMonth[$monthIdx]) @php $amount = $dailyRevenue[$day][$monthIdx] ?? 0; @endphp @if($amount > 0){{ number_format($amount, 0, ',', '.') }} | @else- | @endif @else- | @endif @endfor
| TOTAL | @foreach($monthlyTotals as $total){{ number_format($total, 0, ',', '.') }} | @endforeach||
| AVERAGE | @foreach($monthlyTotals as $idx => $total) @php $avg = $monthlyCounts[$idx] > 0 ? $total / $monthlyCounts[$idx] : 0; @endphp{{ number_format($avg, 0, ',', '.') }} | @endforeach