<?= $this->extend('layouts/app') ?>

<?= $this->section('content') ?>

<div class="d-flex justify-content-between mb-3">

    <h3>Restore Database</h3>

</div>

<div class="card">

    <div class="card-body">

        <form method="post"
              action="<?= base_url('superadmin/restore/process') ?>"
              enctype="multipart/form-data">

            <div class="mb-3">

                <label class="form-label">

                    File Backup (.sql)

                </label>

                <input
                    type="file"
                    name="database"
                    accept=".sql"
                    class="form-control"
                    required>

            </div>

            <button class="btn btn-success">

                Restore Database

            </button>

        </form>

    </div>

</div>

<div class="alert alert-warning mt-4">

<b>Perhatian :</b>

<ul class="mb-0">

<li>Restore akan menimpa data yang ada.</li>

<li>Pastikan melakukan backup terlebih dahulu.</li>

<li>Hanya file berekstensi <b>.sql</b> yang diperbolehkan.</li>

</ul>

</div>

<?= $this->endSection() ?>