@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
@if($recordCount > 0)
| No |
Date |
Room |
Market Code |
TRX Code |
Amount |
Description |
@foreach($data as $index => $record)
| {{ $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 ?? '-' }} |
@endforeach
@else
No data available for {{ ucfirst($month) }}
@endif
@endforeach
@endsection
@push('scripts')
@endpush