@extends('crm.layouts.app') @section('title', 'Data Backup & Recovery') @section('content')

Data Backup & Recovery

Protect your business data with automated backups and recovery tools

Database Size

Loading...

Total Backups

{{ count($backups) }}

Last Backup

Loading...

Storage Used

{{ round($storage['usage_percentage'], 1) }}%

Quick Actions

Backup History

@forelse($backups as $backup) @empty @endforelse
Backup Name Type Size Created Actions
{{ $backup['name'] }}
{{ ucfirst(str_replace('_', ' ', $backup['type'])) }} {{ $this->formatBytes($backup['size']) }} {{ \Carbon\Carbon::createFromTimestamp($backup['created_at'])->format('M j, Y g:i A') }}

No backups found

Create your first backup to get started

@push('scripts') @endpush @endsection @php // Guarded so re-rendering this view in the same process (tests, or any // double render) doesn't fatal with "Cannot redeclare formatBytes()". if (! function_exists('formatBytes')) { function formatBytes($bytes, $precision = 2) { $units = array('B', 'KB', 'MB', 'GB', 'TB'); for ($i = 0; $bytes > 1024 && $i < count($units) - 1; $i++) { $bytes /= 1024; } return round($bytes, $precision) . ' ' . $units[$i]; } } @endphp