<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Impor Daftar UNOR</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body class="bg-light">
<div class="container mt-5">
    <div class="row justify-content-center">
        <div class="col-md-6">
            <div class="card">
                <div class="card-header bg-primary text-white">
                    <h4>Impor Daftar UNOR</h4>
                </div>
                <div class="card-body">
                    <?php if ($this->session->flashdata('error')): ?>
                        <div class="alert alert-danger"><?= $this->session->flashdata('error') ?></div>
                    <?php endif; ?>

                    <form action="<?= base_url('import_unor/process') ?>" method="post" enctype="multipart/form-data">
                        <div class="mb-3">
                            <label for="file_excel">Pilih file Excel (.xls / .xlsx)</label>
                            <input type="file" name="file_excel" class="form-control" accept=".xls,.xlsx" required>
                            <div class="form-text">File harus sesuai format <code>Referensi Unor.xlsx</code></div>
                        </div>
                        <button type="submit" class="btn btn-success">Impor Sekarang</button>
                        <a href="<?= base_url('unor') ?>" class="btn btn-secondary">Batal</a>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>