{{ __('Backup') }}

@include('account.backup._nav') @if(session('status'))
{{ session('status') }}
@endif {{-- Summary stat cards --}}

Total Records

{{ $stats['byType']->sum() }}

@foreach(['invoice','client','product','order','global_config'] as $t) @if(($stats['byType'][$t] ?? 0) > 0)

{{ ucfirst(str_replace('_',' ',$t)) }}: {{ $stats['byType'][$t] }}

@endif @endforeach

Last Backup

@if($stats['lastRevision'])

{{ \Carbon\Carbon::createFromTimestamp($stats['lastRevision']->backed_up_at)->diffForHumans() }}

{{ ucfirst($stats['lastRevision']->record->entity_type ?? '—') }} · rev {{ $stats['lastRevision']->revision }}

@else

No backups yet

@endif

Pending Operations

{{ $stats['pendingOps'] }}

Failed Operations

{{ $stats['failedOps'] }}

@if($stats['failedOps'] > 0) View failed ops @endif
{{-- Pro Connector status bar --}}
@if(!empty($user->plugin_pending_domain)) Pro Connector connected — {{ $user->plugin_pending_domain }} @else Pro Connector not connected. Install and authenticate the WP Pro Connector plugin to enable backup. @endif
{{-- Recent activity --}}

Recent Backup Activity

@if($recentActivity->isEmpty())

No backup activity yet.

@else @foreach($recentActivity as $rev) @endforeach
Entity Triggered By Revision Backed Up
@include('account.backup._entity_badge', ['type' => $rev->record->entity_type ?? '—']) {{ $rev->triggered_by ?? '—' }} {{ $rev->revision }} {{ $rev->backed_up_at ? \Carbon\Carbon::createFromTimestamp($rev->backed_up_at)->diffForHumans() : '—' }}
@endif
{{-- Settings card --}}

Restore Settings

Control how fast restore jobs are sent to your WordPress site. Lower concurrency reduces load on your server; use the delay field if your host rate-limits incoming requests.

@csrf @method('PATCH')
@error('backup_restore_concurrency')

{{ $message }}

@enderror
@error('backup_restore_delay_ms')

{{ $message }}

@enderror