System Updates
{{-- Polling --}} @if($state === 'running' || $running)
@endif {{-- ═══ Page Header ═══ --}}
Updates
@if($hasUpdate) @endif
{{-- ═══ Version + Status (2-spaltig) ═══ --}}
{{-- Versionen --}}
Versionsinformation
@if($state === 'running') Update läuft … @elseif($rc !== null && $rc !== 0) Fehler (rc={{ $rc }}) @elseif($hasUpdate) Update verfügbar @else Aktuell @endif
Installierte Version
{{ $displayCurrent ?? '—' }}
Verfügbare Version
{{ $displayLatest ?? ($displayCurrent ?? '—') }}
@if(!$hasUpdate && $displayCurrent)
Du bist auf dem neuesten Stand.
@endif
{{-- Status + Fortschritt --}}
Update-Status
@if($state === 'running')
Update wird installiert …
Bitte nicht unterbrechen.
@elseif($rc !== null && $rc !== 0)
Fehlgeschlagen (rc={{ $rc }})
Bitte das Log prüfen.
@elseif($rc === 0)
Update erfolgreich abgeschlossen.
@else
Kein Update aktiv. Klicke "Auf Updates prüfen" um die neueste Version zu ermitteln.
@endif @if($state === 'running' || $progressPct > 0)
Fortschritt {{ $progressPct }}%
@endif
{{-- ═══ Log Viewer ═══ --}}
Update-Log
@if(count($logLines) === 0) Keine Log-Einträge vorhanden. @else @foreach($logLines as $line)@php $color = 'inherit'; if (str_contains($line, '[!]') || str_contains($line, 'error') || str_contains($line, 'Error') || str_contains($line, 'fehlgeschlagen')) { $color = '#f87171'; } elseif (str_contains($line, '[✓]') || str_contains($line, 'beendet') || str_contains($line, 'abgeschlossen')) { $color = 'rgba(34,197,94,.85)'; } elseif (str_contains($line, '[i]')) { $color = 'var(--mw-t3)'; } elseif (str_contains($line, '=====')) { $color = 'rgba(14,165,233,.8)'; } @endphp{{ $line }}@endforeach @endif
{{ count($logLines) }} Zeilen · /var/log/mailwolt-update.log