@extends('adminlte::page') @section('title', 'System Configuration') @section('content')
@csrf @method('PUT')

Configure System Settings

@foreach($categories as $categoryKey => $category)
@if($categoryKey === 'database')
Database Backup & Restore
Export Database

Create a backup of your entire database including all tables and data.

Export Database
Backup files are automatically deleted after download for security.
Restore Database

Restore your database from a previously exported backup file.

@csrf
Only .sql files are accepted
@error('backup_file')
{{ $message }}
@enderror
Warning: This action cannot be undone. Make sure you have a recent backup.
Backup Information
  • Regular backups are essential for data safety
  • Backup files contain all your database tables and data
  • Store backup files securely in multiple locations
  • Test restore functionality periodically
  • Backup before making major system changes
@else
@foreach($category['settings'] as $settingKey => $settingConfig)
@if($settingConfig['type'] === 'file')
@if($settings->get($categoryKey, collect())->where('key', $settingKey)->first())
Current: {{ $settings->get($categoryKey, collect())->where('key', $settingKey)->first()->value }}
@endif @elseif($settingConfig['type'] === 'select') @elseif($settingConfig['type'] === 'text') @else @endif
@endforeach
@endif
@endforeach
@stop @section('plugins.Datatables', true) @section('js') @stop