@extends('layouts.admin') @section('title', 'Backups — ' . $user->name) @section('page-title', 'Backups') @section('content')
{{-- Back + user header --}}
Back to Backups

{{ $user->name }}

{{ $user->email }}

{{-- Stats --}}

Total

{{ number_format($stats['total']) }}

Completed

{{ number_format($stats['completed']) }}

Failed

{{ number_format($stats['failed']) }}

Total Size

{{ number_format($stats['total_size'] / 1048576, 2) }} MB

{{-- Filters --}}
@if(request()->hasAny(['status', 'type'])) Clear @endif
{{-- Backups table --}}
@forelse($backups as $backup) @empty @endforelse
File Type Size Status Error Completed
{{ $backup->file_name ?: 'Untitled backup' }}
{{ $backup->device_id ?: '—' }}
{{ $backup->type ?: 'DB' }} {{ number_format(($backup->file_size_bytes ?? 0) / 1048576, 2) }} MB {{ ucfirst($backup->status) }} {{ $backup->error_message ?? '—' }} {{ $backup->completed_at?->format('d M Y H:i') ?? 'Pending' }}
No backups found for this user.
{{ $backups->links() }}
@endsection