21 lines
1.3 KiB
PHP
21 lines
1.3 KiB
PHP
<div wire:key="storage-{{ md5($target ?? '/') }}" class="glass-card p-4 rounded-2xl border border-white/10 bg-white/5">
|
||
<div class="flex items-center justify-between mb-2">
|
||
<div class="inline-flex items-center gap-2 bg-white/5 border border-white/10 px-2.5 py-1 rounded-full">
|
||
<i class="ph ph-archive-box text-white/70 text-[13px]"></i>
|
||
<span class="text-[11px] uppercase text-white/70">Backups</span>
|
||
</div>
|
||
<button wire:click="runNow" class="px-2 py-1 text-xs rounded-lg border border-white/10 bg-white/5 hover:border-white/20">Jetzt sichern</button>
|
||
</div>
|
||
<div class="space-y-1 text-sm">
|
||
<div class="text-white/70">Letztes Backup: <span class="text-white/90">{{ $lastAt ?? '–' }}</span></div>
|
||
<div class="text-white/70">Größe: <span class="text-white/90">{{ $lastSize ?? '–' }}</span></div>
|
||
<div class="text-white/70">Dauer: <span class="text-white/90">{{ $lastDuration ?? '–' }}</span></div>
|
||
<div>
|
||
<span class="px-2 py-0.5 rounded-full border text-xs
|
||
{{ $ok ? 'text-emerald-300 border-emerald-400/30 bg-emerald-500/10' : 'text-rose-300 border-rose-400/30 bg-rose-500/10' }}">
|
||
{{ $ok === null ? 'unbekannt' : ($ok ? 'erfolgreich' : 'fehlgeschlagen') }}
|
||
</span>
|
||
</div>
|
||
</div>
|
||
</div>
|