@php $svcLabel = ['online' => 'aktiv', 'warning' => 'degradiert', 'offline' => 'gestoppt']; // dual-series chart paths (CPU + MEM) — static seed; live wiring via Reverb is a follow-up $chart = function (array $s) { $w = 300; $h = 100; $pad = 6; $n = count($s); $pts = []; foreach ($s as $i => $v) { $x = $n > 1 ? round($i / ($n - 1) * $w, 2) : 0; $y = round($h - $pad - ($v / 100) * ($h - 2 * $pad), 2); $pts[] = "$x,$y"; } $line = implode(' ', $pts); return ['line' => $line, 'area' => "0,$h ".$line." $w,$h"]; }; $cpuP = $chart($cpuSeries); $memP = $chart($memSeries); @endphp
{{-- Header --}}

{{ $active?->name ?? '—' }}

Übersicht

{{ $active?->ip ?? '—' }}
{{-- KPI tiles with sparklines (active server) --}}
{{-- Big dual-series chart --}} CPU MEM Live
{{-- Y axis --}}
100 75 50 25 0
-15 Min-10-5jetzt
{{-- systemd table + audit --}}
@forelse ($services as $svc) @empty @endforelse
Unit Status Zustand

{{ $svc['name'] }}

{{ $svc['desc'] }}

{{ $svcLabel[$svc['status']] }} {{ $svc['sub'] }}
Keine Dienstdaten — Server nicht verbunden.
@forelse ($events as $e)

{{ $e->actor }} · {{ $e->action }}

{{ $e->target }}

{{ $e->created_at->diffForHumans(null, true) }}
@empty

Keine Ereignisse.

@endforelse