{{-- Tab-Navigation --}}
@php
$tabs = [
'general' => ['label' => 'Allgemein', 'icon' => '
'],
'domains' => ['label' => 'Domains & SSL','icon' => '
'],
'backup' => ['label' => 'Sicherung', 'icon' => '
'],
'notifications' => ['label' => 'Meldungen', 'icon' => '
'],
];
@endphp
@foreach($tabs as $key => $cfg)
{!! $cfg['icon'] !!}
{{ $cfg['label'] }}
@endforeach
{{-- ═══ Tab: Allgemein ═══ --}}
@if($tab === 'general')
Sprache
Deutsch
English
Français
Zeitzone
@foreach($timezones as $tz)
{{ $tz }}
@endforeach
Aktuelle Serverzeit: {{ now()->format('H:i:s') }}
PHP
{{ PHP_VERSION }}
Laravel
{{ app()->version() }}
Umgebung
{{ app()->environment() }}
Hostname
{{ gethostname() }}
Certbot
{{ trim(@shell_exec('certbot --version 2>&1') ?? '—') ?: '—' }}
@endif
{{-- ═══ Tab: Domains & SSL ═══ --}}
@if($tab === 'domains')
Änderungen hier wirken sich auf das gesamte Routing aus — UI, Webmail und Mailserver sind betroffen. Nur ändern wenn DNS bereits korrekt konfiguriert ist.
UI Domain
@error('ui_domain')
{{ $message }}
@enderror
Mailserver Domain
@error('mail_domain')
{{ $message }}
@enderror
Webmail Domain
@error('webmail_domain')
{{ $message }}
@enderror
@foreach(['ui','webmail','mail'] as $key)
@php
$c = $sslCerts[$key] ?? null;
$ok = $c && in_array($c['status'], ['ok','expiring']);
$domain = $c['domain'] ?? '';
@endphp
@if($ok)
@elseif($domain)
@else
@endif
{{ $domain ?: '—' }}
@endforeach
Zertifikate verwalten →
@endif
{{-- ═══ Tab: Sicherung ═══ --}}
@if($tab === 'backup')
Backup-Zeitplan
@if($backup_enabled)
Aktiv
@else
Deaktiviert
@endif
Verlauf
Automatisches Backup aktivieren
Was sichern
@if($backup_include_maildirs)
@endif
@if($backup_enabled)
Häufigkeit
@foreach(['hourly' => 'Stündlich', 'daily' => 'Täglich', 'weekly' => 'Wöchentlich', 'monthly' => 'Monatlich', 'custom' => 'Benutzerdefiniert'] as $val => $label)
{{ $label }}
@endforeach
@if($backup_preset !== 'hourly' && $backup_preset !== 'custom')
Uhrzeit
@if($backup_preset === 'weekly')
Wochentag
@foreach(['0'=>'Sonntag','1'=>'Montag','2'=>'Dienstag','3'=>'Mittwoch','4'=>'Donnerstag','5'=>'Freitag','6'=>'Samstag'] as $v => $d)
{{ $d }}
@endforeach
@elseif($backup_preset === 'monthly')
Tag des Monats
@for($d = 1; $d <= 28; $d++)
{{ $d }}.
@endfor
@endif
@endif
@if($backup_preset === 'custom')
@endif
@endif
{{-- Sidebar: Sicherung --}}
@if($backupMeta && $backupMeta->last_run_at)
@php
$statusColor = $backupMeta->last_status === 'ok' ? '#22c55e' : '#f87171';
$statusLabel = $backupMeta->last_status === 'ok' ? 'Erfolgreich' : 'Fehler';
$sizeKb = $backupMeta->last_size_bytes ? round($backupMeta->last_size_bytes / 1024) : null;
@endphp
Status
{{ $statusLabel }}
Zuletzt
{{ \Carbon\Carbon::parse($backupMeta->last_run_at)->format('d.m.Y H:i') }}
@if($sizeKb)
Größe
{{ $sizeKb < 1024 ? $sizeKb.' KB' : round($sizeKb/1024,1).' MB' }}
@endif
Aufbewahrung
{{ $backupMeta->retention_count }} Stück
@else
Noch kein Backup ausgeführt.
@endif
Backup-Verlauf →
@endif
{{-- ═══ Tab: Meldungen ═══ --}}
@if($tab === 'notifications')
@php
$sysmailFqdn = \App\Models\Setting::get('notify_from_address')
?: ('no-reply@' . config('mailpool.platform_system_zone','sysmail') . '.' . config('mailpool.platform_zone',''));
@endphp
Absenderadresse:
{{ $sysmailFqdn }}
{{-- Sidebar: Meldungen --}}
@foreach([
['Update verfügbar', 'Neue App-Version erkannt'],
['Update abgeschlossen', 'Nach erfolgreichem Update'],
['Backup-Fehler', 'Wenn ein Backup fehlschlägt'],
['SSL läuft ab', 'Zertifikat < 14 Tage gültig'],
] as [$title, $desc])
@endforeach
@endif