@can('system-backup')
@endcan
{{-- backups --}}
{{-- schedule --}}
@endcan
@can('system-reset')
{{-- clear system data --}}
Database backups
@if ($s['last_status'])
Last scheduled backup: {{ $s['last_status'] }}
@endif
@if (empty($files))
No backups yet — click "Back up now".
@else @endif Kept on the server: the newest {{ $s['keep'] }}. To restore one: unzip it and import the .sql into an empty database (phpMyAdmin → Import).Email a backup automatically
@unless ($mailReady)
The schedule needs the server's cron to run Laravel's scheduler every minute:
Set up the email account (SMTP) first in SMS & Email Reports — backups are sent with it.
@endunless
The schedule needs the server's cron to run Laravel's scheduler every minute:
* * * * * cd {{ base_path() }} && php artisan schedule:run >> /dev/null 2>&1
Clear system data
Removes the records entered while trying the system (demo data), so the hospital starts clean. Always kept: users, roles & permissions, settings, chart of accounts, lab tests, imaging & service lists, operations, rooms, stores, reports. Numbering (patient no., invoice no. …) starts again from 1. This can't be undone — keep "Make a backup first" ticked.