<?php $__env->startSection('title','Database Backup'); ?>
<?php $__env->startSection('content'); ?>
<div class="page-head"><div><h1>Database backup</h1><p>Create recoverable database snapshots and retain a checksum-backed history.</p></div><form method="POST" action="<?php echo e(route('backups.store')); ?>"><?php echo csrf_field(); ?><button class="btn btn-primary btn-dense" onclick="this.disabled=true;this.form.submit()"><i class="bi bi-database-down me-1"></i>Create backup</button></form></div>
<div class="alert alert-warning border-0 small"><i class="bi bi-shield-exclamation me-1"></i>Application backups should also be copied to encrypted off-site storage. Files and uploaded documents require a separate filesystem backup.</div>
<div class="card-erp"><div class="table-responsive"><table class="table table-dense"><thead><tr><th>Created</th><th>Filename</th><th>Size</th><th>Checksum</th><th>Status</th><th>Created by</th><th></th></tr></thead><tbody><?php $__empty_1 = true; $__currentLoopData = $backups; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $b): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?><tr><td><?php echo e($b->created_at->format('d M Y H:i')); ?></td><td class="fw-bold"><?php echo e($b->filename); ?></td><td><?php echo e(number_format($b->size/1024,1)); ?> KB</td><td><code><?php echo e(substr($b->checksum,0,18)); ?>…</code></td><td><span class="badge status-<?php echo e($b->status==='completed'?'finalized':'cancelled'); ?>"><?php echo e(strtoupper($b->status)); ?></span></td><td><?php echo e($b->createdBy?->name); ?></td><td class="text-end"><a class="btn btn-light border btn-dense" href="<?php echo e(route('backups.download',$b)); ?>"><i class="bi bi-download"></i>Download</a></td></tr><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?><tr><td colspan="7" class="text-center text-muted py-5">No backups created yet.</td></tr><?php endif; ?></tbody></table></div><?php if($backups->hasPages()): ?><div class="card-erp-body border-top"><?php echo e($backups->links()); ?></div><?php endif; ?></div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\xampp\htdocs\saudi\resources\views\settings\backups.blade.php ENDPATH**/ ?>