@extends('layouts.hirbc') @section('title', 'Manage Data') @section('page-title', 'Manage Data') @push('styles') @endpush @section('content')
Important Information

Data refresh process may take 2-5 minutes depending on the amount of data. Please do not close this page during the process.

Total Records
{{ number_format($stats['total_records'] ?? 0) }}
OOO Records
{{ $stats['ooo_records'] ?? 0 }}
Months Loaded
{{ $stats['months_loaded'] ?? 0 }}/12

Refresh Data from Business Central

Click the button below to fetch and update all data from Business Central API

@foreach(['january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december'] as $month) @php $monthData = $stats['monthly_data'][$month] ?? ['count' => 0, 'has_data' => false]; @endphp
{{ ucfirst($month) }}
@if($monthData['has_data']) @else @endif
@endforeach

Data Source Information

Business Unit: HIRBC
Total Tables: 13 (12 Monthly + 1 OOO)
Room Categories: 2 (Standard & Suite)
Total Rooms: 139 rooms
API Source: Microsoft Dynamics 365 Business Central

Refreshing Data...

Please wait while we fetch data from Business Central

@endsection @push('scripts') @endpush