<div class="container-fluid">
  <h1 class="h3 mb-4 text-gray-800">Tambah User Baru</h1>

  <div class="card shadow mb-4">
    <div class="card-body">
      <form action="<?= base_url('admin/user_add'); ?>" method="post">

        <div class="form-group">
          <label>Nama Lengkap <span class="text-danger">*</span></label>
          <input type="text" name="name" class="form-control" required placeholder="Masukkan nama lengkap">
        </div>

        <div class="form-group">
          <label>Email <span class="text-danger">*</span></label>
          <input type="email" name="email" class="form-control" required placeholder="Masukkan email aktif">
        </div>

        <div class="form-group">
          <label>Password <span class="text-danger">*</span></label>
          <input type="password" name="password" class="form-control" required placeholder="Minimal 4 karakter">
        </div>

        <div class="form-group">
          <label>Role <span class="text-danger">*</span></label>
          <select name="role" class="form-control" required>
            <option value="">-- Pilih Role --</option>
            <option value="user">User / Petugas</option>
            <option value="admin">Admin</option>
            <option value="inspector">Inspector</option>
          </select>
        </div>

        <div class="text-right">
          <a href="<?= base_url('admin/users'); ?>" class="btn btn-secondary">Batal</a>
          <button type="submit" class="btn btn-success">Simpan</button>
        </div>

      </form>
    </div>
  </div>
</div>
