@extends('layouts.hirbc') @section('title', 'Room ' . $room . ' Matrix') @section('page-title', 'Room ' . $room) @push('styles') @endpush @section('content') Back to {{ $categoryName }}
@foreach(['january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december'] as $index => $month) @endforeach
@foreach(['january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december'] as $index => $month)
@php $data = $monthlyData[$month] ?? collect([]); $totalRevenue = $data->sum('Amount_1'); $recordCount = $data->count(); @endphp
{{ $recordCount }}
Total Records
Rp {{ number_format($totalRevenue, 0, ',', '.') }}
Total Revenue
{{ ucfirst($month) }}
Current Month

{{ ucfirst($month) }} Data

{{ $recordCount }}
Records
@if($recordCount > 0) @foreach($data as $index => $record) @endforeach
No Date Room Market Code TRX Code Amount Description
{{ $index + 1 }} {{ \Carbon\Carbon::parse($record->Posting_Date)->format('d M Y') }} {{ $record->Room }} {{ $record->Market_Code ?? '-' }} {{ $record->TRX_Code ?? '-' }} Rp {{ number_format($record->Amount_1, 0, ',', '.') }} {{ $record->Description ?? '-' }}
@else

No data available for {{ ucfirst($month) }}

@endif
@endforeach @endsection @push('scripts') @endpush