@php
$statCpuCores = max(1, (int) ($status?->cpus ?? 1));
$statLiveCpuPct = round(max(0, ($status?->cpu ?? 0) * 100), 1);
$statMemMax = (int) ($status?->maxmem ?? 0);
$statMemUsed = (int) ($status?->mem ?? 0);
$statLiveMemPct = $statMemMax > 0 ? round(($statMemUsed / $statMemMax) * 100, 1) : 0;
$statSnapshotCount = $this->statistics->total();
$statTaskBufferCount = count($this->taskHistory ?? []);
$statLifecyclePreview = count($this->chartEvents ?? []);
$statGlanceCards = [
[
'label' => 'CPU pulse',
'value' => $statLiveCpuPct . '%',
'hint' => $statCpuCores . ' vCPU budget',
'icon' => 'x-ri-cpu-line',
'tone' => 'sky',
],
[
'label' => 'RAM pulse',
'value' => $statLiveMemPct . '%',
'hint' => $statMemMax > 0
? \Illuminate\Support\Number::fileSize(bytes: $statMemUsed) . ' of ' . \Illuminate\Support\Number::fileSize(bytes: $statMemMax)
: 'RAM cap unknown',
'icon' => 'x-ri-database-2-line',
'tone' => 'emerald',
],
[
'label' => 'Stored samples',
'value' => number_format($statSnapshotCount),
'hint' => 'Hourly automation + five manual pins',
'icon' => 'x-ri-stack-line',
'tone' => 'violet',
],
[
'label' => 'Signals loaded',
'value' => number_format($statTaskBufferCount) . ' jobs',
'hint' => $statLifecyclePreview . ' lifecycle beats mapped',
'icon' => 'x-ri-pulse-line',
'tone' => 'amber',
],
];
$toneRing = [
'sky' => 'ring-sky-500/30 bg-sky-500/[0.04]',
'emerald' => 'ring-emerald-500/30 bg-emerald-500/[0.04]',
'violet' => 'ring-violet-500/30 bg-violet-500/[0.04]',
'amber' => 'ring-amber-500/30 bg-amber-500/[0.04]',
];
@endphp
Live pulse tiles
Numbers mirror the Overview status ticker; charts underneath carry the longer story.
Point-in-time only—scroll for RRD and archives.
@foreach ($statGlanceCards as $card)
{{ $card['value'] }}
{{ $card['hint'] }}
@endforeach
@include('proxmox::partials.statistics.telemetry-inner')
@include('proxmox::partials.statistics.history-inner')
@include('proxmox::partials.statistics.tasks-inner')
@include('proxmox::partials.statistics.lifecycle-inner')
@include('proxmox::partials.statistics.comparison-inner')
@include('proxmox::partials.statistics.network-inner')
@include('proxmox::partials.statistics.modals-inner')
@include('proxmox::partials.statistics.scripts-inner')