first(); $totalSizeBytes = (int) Backup::sum('size_bytes'); $failedCount = Backup::where('status', 'failed')->count(); $totalCount = Backup::count(); return [ 'backups' => Backup::query()->with('site')->orderByDesc('completed_at')->paginate(10), 'lastBackupAt' => $last?->completed_at, 'totalSize' => $totalSizeBytes, 'totalSizeGb' => round($totalSizeBytes / 1024 / 1024 / 1024, 1), 'recoveryPoints' => $totalCount, 'failedCount' => $failedCount, 'storageQuotaGb' => 500, 'storageUsedPct' => min(100, (int) round(($totalSizeBytes / 1024 / 1024 / 1024) / 500 * 100)), 'totalSites' => Site::count(), ]; } }; ?>
| Site | Typ | Größe | Wann | Status | |
|---|---|---|---|---|---|
|
{{ mb_substr($b->site->domain ?? '?', 0, 1) }}
|
{{ ucfirst($b->type) }} | {{ $b->size_mb }} MB | {{ $b->completed_at?->diffForHumans() ?? '—' }} | @if ($b->status === 'ok') ok @elseif ($b->status === 'failed') failed @else {{ $b->status }} @endif |
|
| Noch keine Backups. | |||||