@once @vite('resources/js/server-charts.js') @endonce {{ $this->usageForm }} @php($hasRealData = !empty($chartData) && !empty($chartData['labels'])) @if(! $hasRealData)

{{ __('No usage data yet') }}

{{ __('Usage snapshots are collected hourly. Data will appear after the first collection run.') }}

@else
{{ __('Latest Snapshot') }}

{{ __('Disk') }}

{{ $summary['disk'] ?? __('No data') }}

{{ __('Mail') }}

{{ $summary['mail'] ?? __('No data') }}

{{ __('Databases') }}

{{ $summary['database'] ?? __('No data') }}

{{ __('Bandwidth (last hour)') }}

{{ $summary['bandwidth'] ?? __('No data') }}

{{ __('Resource Usage (Last 30 Days)') }} {{ __('Historical snapshots collected hourly.') }}
@if($hasPerformanceData)
{{ __('CPU Usage (Last 30 Days)') }} {{ __('Average CPU percent per snapshot.') }}
{{ __('Limit') }}: {{ $cpuLimitPercent ? $cpuLimitPercent . '%' : __('Unlimited') }}
{{ __('Average') }}: {{ $cpuStats['avg'] ?? __('No data') }}
{{ __('Peak') }}: {{ $cpuStats['max'] ?? __('No data') }}
{{ __('Memory Usage (Last 30 Days)') }} {{ __('Resident memory per snapshot.') }}
{{ __('Limit') }}: {{ $memoryLimitGb ? number_format($memoryLimitGb, 2) . ' GB' : __('Unlimited') }}
{{ __('Average') }}: {{ $memoryStats['avg'] ?? __('No data') }}
{{ __('Peak') }}: {{ $memoryStats['max'] ?? __('No data') }}
{{ __('Disk IO (Last 30 Days)') }} {{ __('Read/write MB per snapshot.') }}
@else {{ __('CPU, Memory & Disk IO') }}

{{ __('No performance data yet') }}

{{ __('CPU, memory, and disk IO snapshots will appear after the next collection run.') }}

@endif
@endif