@php $backups = $this->getBackups(); $isAdmin = auth()->user()?->hasRole('admin'); @endphp @if ($backups->isEmpty())

No backups yet

Click "Create Backup Now" to generate your first backup.

@else
@foreach ($backups as $backup) @endforeach
Filename Size Created By Created At Actions
{{ $backup['filename'] }} @unless ($backup['file_exists']) File missing @endunless {{ $backup['size_human'] }} {{ $backup['created_by'] }} {{ $backup['created_at']->format('d M Y, H:i') }}
{{-- Download (only if file exists) --}} @if ($backup['file_exists']) Download @endif {{-- Delete --}} Delete {{-- Restore (admin only, file must exist) --}} @if ($isAdmin && $backup['file_exists']) Restore @endif
@endif