@extends('layouts.dvx')
@section('title', 'Dashboard · Mailwolt')
@section('breadcrumb-parent', 'Dashboard')
@section('breadcrumb', 'Übersicht')
@section('content')
{{-- Hero Banner --}}
@php $cpuClass = ($cpu ?? 0) > 80 ? 'mw-bar-high' : (($cpu ?? 0) > 50 ? 'mw-bar-mid' : 'mw-bar-low'); @endphp
{{ $cpu ?? 0 }}%
{{ $cpuCores ?? '—' }} Cores · {{ $cpuMhz ?? '—' }} GHz
@php $ramClass = ($ramPercent ?? 0) > 80 ? 'mw-bar-high' : (($ramPercent ?? 0) > 50 ? 'mw-bar-mid' : 'mw-bar-low'); @endphp
{{ $ramPercent ?? 0 }}%
{{ $ramUsed ?? '—' }} GB / {{ $ramTotal ?? '—' }} GB
@php
$loadVal = floatval($load1 ?? 0);
$loadMax = max(1, $cpuCores ?? 4);
$loadPct = min(100, round($loadVal / $loadMax * 100));
$loadClass = $loadPct > 80 ? 'mw-bar-high' : ($loadPct > 50 ? 'mw-bar-mid' : 'mw-bar-low');
@endphp
{{ $load1 ?? '0.00' }}
{{ $load5 ?? '—' }} · {{ $load15 ?? '—' }} (1/5/15m)
{{ $uptimeDays ?? 0 }}d {{ $uptimeHours ?? 0 }}h
Stabil · kein Neustart
{{-- Dienste & Schutz --}}
{{ $servicesActive ?? 0 }}/{{ $servicesTotal ?? 0 }} Dienste aktiv
Updates
{{ config('app.version', 'vdev') }}
aktuell
System ist auf dem neuesten Stand.
Backup
Letztes: {{ $lastBackup ?? '—' }}
unbekannt
Größe: {{ $backupSize ?? '—' }} · Dauer: {{ $backupDuration ?? '—' }}
{{ $alertCount ?? 0 }} offen
{{ ($alertCount ?? 0) === 0 ? 'Keine Warnungen.' : ($alertCount . ' aktive Warnungen.') }}
{{-- Infrastruktur --}}
Dienste & Ports
@foreach($services ?? [] as $svc)
@if($loop->index < 4)
{{ $svc['name'] }} {{ $svc['type'] }}
{{ $svc['online'] ? 'Online' : 'Offline' }}
@endif
@endforeach
@foreach($services ?? [] as $svc)
@if($loop->index >= 4)
{{ $svc['name'] }} {{ $svc['type'] }}
{{ $svc['online'] ? 'Online' : 'Offline' }}
@endif
@endforeach
@foreach([25, 465, 587, 110, 143, 993, 995, 80, 443] as $port)
:{{ $port }}
@endforeach
Storage
Belegt
{{ $diskUsedGb ?? '—' }} GB
Frei
{{ $diskFreeGb ?? '—' }} GB
Gesamt
{{ $diskTotalGb ?? '—' }} GB
Mail & Sicherheit
{{ $bounceCount ?? 0 }}
Bounces
{{ $spamCount ?? 0 }}
Spam
@endsection