@php $svcLabel = ['online' => __('dashboard.svc_online'), 'warning' => __('dashboard.svc_warning'), 'offline' => __('dashboard.svc_offline')]; // Build SVG polyline paths from the real CPU/MEM history series (cache-backed, polled). $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
| {{ __('dashboard.col_unit') }} | {{ __('dashboard.col_status') }} | {{ __('dashboard.col_state') }} | {{ __('dashboard.col_boot') }} |
|---|---|---|---|
|
{{ $svc['name'] }} {{ $svc['desc'] }} |
{{ $svc['sub'] }} | {{ $svc['enabled'] ? 'enabled' : 'disabled' }} | |
| {{ __('dashboard.no_service_data') }} | |||
{{ $e->actor }} · $e->is_error, 'text-ink' => ! $e->is_error])>{{ $e->action_label }}
{{ $e->target }}
{{ __('dashboard.no_events') }}
@endforelse