{{-- Backup history — Phase 29. --}} {{-- MERGE FIX 2026-11-13 (coordinator): this view used the x-app-layout component, but no AppLayout component or class exists anywhere, so the page could not render. Converted to the layouts.app pattern every other view uses; the header slot content is now a page header inside the content. --}} @extends('layouts.app') @section('title', __('Backups')) @section('content')

{{ __('Backups') }}

@can('backup.create')
@csrf
@endcan
@if (session('success'))
{{ session('success') }}
@endif
{{ __('Backups run automatically every day at 02:00 (Asia/Dhaka). Files are stored privately and integrity-checked after creation. Restore requires extra confirmation and is audit-logged.') }}
{{ __('Backup History') }}
@forelse ($backups as $backup) @empty @endforelse
{{ __('Filename') }} {{ __('Type') }} {{ __('Size') }} {{ __('Status') }} {{ __('Verified') }} {{ __('Created By') }} {{ __('Created At') }} {{ __('Actions') }}
{{ $backup->filename }} {{ $backup->type }} @php $s = (float) $backup->size; $u = ['B','KB','MB','GB']; $i = 0; while ($s >= 1024 && $i < 3) { $s /= 1024; $i++; } echo round($s, 2).' '.$u[$i]; @endphp {{ $backup->status }} {{ $backup->verified_at ? $backup->verified_at->format('d M Y, h:i A') : '—' }} {{ $backup->creator?->name ?? 'System' }} {{ $backup->created_at->format('d M Y, h:i A') }} @can('backup.download') {{ __('Download') }} @endcan @can('backup.restore') {{ __('Restore') }} @endcan @can('backup.delete')
@csrf @method('DELETE')
@endcan
{{ __('No backups yet.') }}
@endsection