System Updates
{{-- ═══ Page Header ═══ --}}
Updates
@if($hasUpdate) @endif
{{-- Polling when running --}} @if($state === 'running' || $running)
@endif
{{-- ═══ Section 1: Version Info ═══ --}}
Versionsinformation
@if($state === 'running') Update läuft … @elseif($rc !== null && $rc !== 0) Fehlgeschlagen (rc={{ $rc }}) @elseif($hasUpdate) Update verfügbar @else Aktuell @endif
Installierte Version
{{ $displayCurrent ?? '—' }}
Verfügbare Version
{{ $displayLatest ?? '—' }}
@if(!$hasUpdate && $displayCurrent)
Du bist auf dem neuesten Stand.
@endif
{{-- ═══ Section 2: Status ═══ --}}
Update-Status
@if($state === 'running') {{-- Running state --}}
Update wird installiert …
Bitte nicht unterbrechen. Die Seite aktualisiert sich automatisch.
@elseif($rc !== null && $rc !== 0) {{-- Error state --}}
Update fehlgeschlagen (rc={{ $rc }})
Bitte das Log unten prüfen. Der Mailserver bleibt weiter in Betrieb.
@elseif($rc === 0) {{-- Success state --}}
Update erfolgreich abgeschlossen.
@else {{-- Idle state --}}
Kein Update aktiv. Klicke "Auf Updates prüfen" um die neueste Version zu ermitteln.
@endif {{-- Progress Bar --}} @if($state === 'running' || $progressPct > 0)
Fortschritt {{ $progressPct }}%
@endif
{{-- ═══ Section 3: 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