@extends('layouts.regent') @section('title', 'Manage Data') @push('styles') @endpush @section('content')

Manage Data

Monitor and refresh your room monitoring data from Business Central API

⚠️ Important Information

Caution: Refreshing data will fetch the latest information from Business Central API. This process may take 2-5 minutes depending on data volume. Please do not close this page during the refresh process.

Total Records

{{ number_format($totalRecords) }}

OOO Records

{{ number_format($oooCount) }}

Months Loaded

@php $monthsWithData = collect($monthlyData)->filter(fn($m) => $m['has_data'])->count(); @endphp
{{ $monthsWithData }}/12

Refresh Data from Business Central

Click the button below to fetch the latest room monitoring data from Microsoft Dynamics 365 Business Central.
This will update all 12 monthly tables and OOO (Out of Order) data.

Monthly Data Details

@foreach(['January' => 'january', 'February' => 'february', 'March' => 'march', 'April' => 'april', 'May' => 'may', 'June' => 'june', 'July' => 'july', 'August' => 'august', 'September' => 'september', 'October' => 'october', 'November' => 'november', 'December' => 'december'] as $label => $month)
{{ $label }}
{{ $monthlyData[$month]['count'] > 0 ? number_format($monthlyData[$month]['count']) : 'No Data' }}
@endforeach

Data Source Information

Business Unit
RBC
Monthly Tables
12 Tables
Room Types
5 Categories
Data Source
BC API

Refreshing Data...

Please wait while we fetch data from Business Central API

This may take 2-5 minutes

@endsection @push('scripts') @endpush