<?= $this->extend('layouts/main') ?>
<?= $this->section('content') ?>

<h4>Tambah Pengguna</h4>
<form action="<?= base_url('admin/users/save') ?>" method="post">
    <div class="mb-3">
        <label>Username</label>
        <input type="text" name="username" class="form-control" required>
    </div>

    <div class="mb-3">
        <label>Password</label>
        <input type="password" name="password" class="form-control" minlength="6" required>
    </div>
    <div class="mb-3">
        <label>Role</label>
        <select name="role" class="form-select" required>
            <option value="">-- Pilih Role --</option>
            <option value="admin">Admin</option>
            <option value="kasir">Kasir</option>
        </select>
    </div>
    <button class="btn btn-success">Simpan</button>
    <a href="<?= base_url('admin/users') ?>" class="btn btn-secondary">Batal</a>
</form>

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