@php $historicalComparison = $this->historicalComparison; @endphp

Historical Data Comparison

@if($historicalPeriod === 'custom') @endif
@if($currentPeriod === 'custom') @endif
@if($historicalComparison && !isset($historicalComparison['error'])) @php $current = $historicalComparison['current']; $historical = $historicalComparison['historical']; $diff = $historicalComparison['differences']; @endphp
Metric
Historical ({{ $historical->DateTime->format('M d, Y H:i') }})
Current ({{ $current->DateTime->format('M d, Y H:i') }})
Change
Processor Utilization
{{ number_format($diff['cpu']['historical_percent'], 1) }}% {{ number_format($diff['cpu']['current_percent'], 1) }}% {{ $diff['cpu']['percent_change'] > 0 ? '+' : '' }}{{ number_format($diff['cpu']['percent_change'], 1) }}%
Memory Utilization
{{ number_format($diff['memory']['historical_percent'], 1) }}% {{ number_format($diff['memory']['current_percent'], 1) }}% {{ $diff['memory']['percent_change'] > 0 ? '+' : '' }}{{ number_format($diff['memory']['percent_change'], 1) }}%
Disk Read Rate
{{ $this->formatBytes($diff['disk_read']['historical_rate']) }}/s {{ $this->formatBytes($diff['disk_read']['current_rate']) }}/s {{ $diff['disk_read']['percent_change'] > 0 ? '+' : '' }}{{ number_format($diff['disk_read']['percent_change'], 1) }}%
Disk Write Rate
{{ $this->formatBytes($diff['disk_write']['historical_rate']) }}/s {{ $this->formatBytes($diff['disk_write']['current_rate']) }}/s {{ $diff['disk_write']['percent_change'] > 0 ? '+' : '' }}{{ number_format($diff['disk_write']['percent_change'], 1) }}%
Network Download Rate
{{ $this->formatBytes($diff['network_in']['historical_rate']) }}/s {{ $this->formatBytes($diff['network_in']['current_rate']) }}/s {{ $diff['network_in']['percent_change'] > 0 ? '+' : '' }}{{ number_format($diff['network_in']['percent_change'], 1) }}%
Network Upload Rate
{{ $this->formatBytes($diff['network_out']['historical_rate']) }}/s {{ $this->formatBytes($diff['network_out']['current_rate']) }}/s {{ $diff['network_out']['percent_change'] > 0 ? '+' : '' }}{{ number_format($diff['network_out']['percent_change'], 1) }}%
@elseif($historicalComparison && isset($historicalComparison['error']))

{{ $historicalComparison['message'] }}

@if(isset($historicalComparison['total_stats']))

Total statistics in database: {{ $historicalComparison['total_stats'] }} @if($historicalComparison['total_stats'] == 0) - Statistics are collected automatically every hour. You can also create manual statistics using the "Create Statistics" button above. @elseif($historicalComparison['total_stats'] < 2) - At least 2 statistics are needed for comparison. Wait for more data to be collected or create a manual statistic. @endif

@endif
@else

No comparison data available

Please select periods with available statistics data.

@endif