diff --git a/resources/views/livewire/ui/security/ssl-certificates-table.blade.php b/resources/views/livewire/ui/security/ssl-certificates-table.blade.php index f3fcfbf..eabdce2 100644 --- a/resources/views/livewire/ui/security/ssl-certificates-table.blade.php +++ b/resources/views/livewire/ui/security/ssl-certificates-table.blade.php @@ -27,116 +27,9 @@ - {{-- Zweispaltig: links Einrichten, rechts Tabelle --}}
- {{-- ═══ Linke Spalte: Einrichten ═══ --}} -
-
-
-
-
- Let's Encrypt einrichten -
-
-
- - {{-- Domain-Status --}} - @php - $domainMap = [ - 'ui' => ['label' => 'UI', 'domain' => $uiDomain], - 'webmail' => ['label' => 'Webmail', 'domain' => $webmailDomain], - 'mail' => ['label' => 'Mailserver', 'domain' => $mailDomain], - ]; - @endphp -
- @foreach($domainMap as $key => $info) - @php - $d = $info['domain']; - $certOk = $d && (file_exists("/etc/letsencrypt/renewal/{$d}.conf") || is_dir("/etc/letsencrypt/live/{$d}")); - @endphp -
- @if(!$d) - - @elseif($certOk) - - @else - - @endif -
- {{ $info['label'] }} - @if($d) - {{ $d }} - @endif -
- - {{ !$d ? '—' : ($certOk ? 'Vorhanden' : 'Fehlt') }} - -
- @endforeach -
- - {{-- Fortschritt --}} - @if($sslProvisioning || $sslDone) -
-
- {{ $sslProvisioning ? 'Zertifikate werden eingerichtet…' : 'Einrichtung abgeschlossen' }} -
- @foreach(['ui' => 'UI', 'webmail' => 'Webmail', 'mail' => 'Mailserver'] as $key => $label) - @php $st = $sslProgress[$key] ?? 'pending'; @endphp -
- @if($st === 'done') - - @elseif($st === 'error' || $st === 'nodns') - - @elseif($st === 'running') - - @else - - @endif - - {{ $label }} - @if($st === 'nodns') — kein DNS - @elseif($st === 'error') — fehlgeschlagen - @elseif($st === 'running') — läuft… - @endif - -
- @endforeach -
- @endif - - {{-- Button --}} - @if(!$uiDomain || !$webmailDomain || !$mailDomain) -
- Bitte erst alle Domains unter - Einstellungen - speichern. -
- @else - - @endif - -
-
-
-
- - {{-- ═══ Rechte Spalte: Ausgestellte Zertifikate ═══ --}} + {{-- ═══ Links (breit): Ausgestellte Zertifikate ═══ --}}
@@ -157,7 +50,7 @@
Noch keine Zertifikate
-
Links auf "Einrichten" klicken
+
Rechts auf "Einrichten" klicken
@else
@@ -227,5 +120,97 @@
+ {{-- ═══ Rechts (schmal): Let's Encrypt einrichten ═══ --}} +
+
+
+
+
+ Let's Encrypt einrichten +
+
+
+ + {{-- Nur Schloss + Domain --}} + @php + $domainMap = [ + ['domain' => $uiDomain], + ['domain' => $webmailDomain], + ['domain' => $mailDomain], + ]; + @endphp +
+ @foreach($domainMap as $info) + @php + $d = $info['domain']; + $certOk = $d && (file_exists("/etc/letsencrypt/renewal/{$d}.conf") || is_dir("/etc/letsencrypt/live/{$d}")); + @endphp +
+ @if($certOk) + + @elseif($d) + + @else + + @endif + {{ $d ?: '—' }} +
+ @endforeach +
+ + {{-- Fortschritt --}} + @if($sslProvisioning || $sslDone) +
+
+ {{ $sslProvisioning ? 'Läuft…' : 'Abgeschlossen' }} +
+ @foreach(['ui' => 'UI', 'webmail' => 'Webmail', 'mail' => 'Mailserver'] as $key => $label) + @php $st = $sslProgress[$key] ?? 'pending'; @endphp +
+ @if($st === 'done') + + @elseif($st === 'error' || $st === 'nodns') + + @elseif($st === 'running') + + @else + + @endif + + {{ $label }}@if($st==='nodns') – kein DNS@elseif($st==='error') – Fehler@endif + +
+ @endforeach +
+ @endif + + {{-- Button --}} + @if(!$uiDomain || !$webmailDomain || !$mailDomain) +

+ Erst alle Domains unter Einstellungen speichern. +

+ @else + + @endif + +
+
+
+
+
diff --git a/resources/views/livewire/ui/system/settings-form.blade.php b/resources/views/livewire/ui/system/settings-form.blade.php index 7ad64f9..75e930d 100644 --- a/resources/views/livewire/ui/system/settings-form.blade.php +++ b/resources/views/livewire/ui/system/settings-form.blade.php @@ -294,46 +294,28 @@
SSL-Zertifikate
-
- - - -
-
- @php $certLabels = ['ui' => 'UI', 'webmail' => 'Webmail', 'mail' => 'Mailserver']; @endphp +
@foreach(['ui','webmail','mail'] as $key) - @php $c = $sslCerts[$key] ?? null; @endphp -
- @if(!$c || $c['status'] === 'nodomain') - - @elseif($c['status'] === 'ok') - - @elseif($c['status'] === 'expiring') - + @php + $c = $sslCerts[$key] ?? null; + $ok = $c && in_array($c['status'], ['ok','expiring']); + $domain = $c['domain'] ?? ''; + @endphp +
+ @if($ok) + + @elseif($domain) + @else - - @endif -
- {{ $certLabels[$key] }} - {{ $c['domain'] ?? '—' }} -
- @if(!$c || $c['status'] === 'nodomain') - Keine Domain - @elseif($c['status'] === 'missing') - Fehlt - @elseif($c['status'] === 'expired') - Abgelaufen - @elseif($c['status'] === 'expiring') - Läuft ab in {{ $c['days'] }} Tagen - @elseif($c['status'] === 'ok') - Gültig bis {{ $c['expiry'] }} + @endif + {{ $domain ?: '—' }}
@endforeach - - - Zertifikate einrichten / erneuern → + + + Zertifikate verwalten →