<?= $this->session->flashdata('pesan'); ?>
<div class="card">
    <div class="card-header d-flex justify-content-between align-items-center w-100">
        <h3 class="card-title mb-1" style="margin-top: 5px;">Halaman Tambah Kategori Pelanggaran</h3>
    </div>
    <div class="col-lg-6 mt-2 ml-2 mb-4">
        <form action="<?= base_url('Pelanggaran/tambah_aksi') ?>" method="POST">
            <div class="form-group">
                <label>Pelanggaran</label>
                <input type="text" name="pelanggaran" class="form-control" value="<?= set_value('pelanggaran') ?>" placeholder="Input Kategori Pelanggaran">
                <?= form_error('pelanggaran', '<div class="text-small text-danger">', '</div>'); ?>
            </div>
            <div class="form-group">
                <label>Sanksi</label>
                <input type="text" name="sanksi" class="form-control" value="<?= set_value('sanksi') ?>" placeholder="Input Sanksi">
                <?= form_error('sanksi', '<div class="text-small text-danger">', '</div>'); ?>
            </div>
            <a href="<?= base_url('pelanggaran') ?>" class="btn btn-danger btn-sm">
                <i class="fas fa-solid fa-angle-left"></i> Kembali
            </a>
            <button type="submit" class="btn btn-primary btn-sm"><i class="fas fa-save"></i> Simpan </button>
        </form>
    </div>
</div>