<?= $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 Kegiatan Santri</h3>
    </div>
    <div class="col-lg-6 mt-2 ml-2 mb-4">
        <form action="<?= base_url('kegiatansantri/tambah_aksi') ?>" method="POST">
            <div class="form-group">
                <label>Hari</label>
                <input type="text" name="hari" class="form-control" value="<?= set_value('hari'); ?>" placeholder="Input Hari">
                <?= form_error('hari', '<div class="text-small text-danger">', '</div>'); ?>
            </div>
            <div class="form-group">
                <label>Nama Kegiatan</label>
                <input type="text" name="nama_kegiatan" class="form-control" value="<?= set_value('nama_kegiatan'); ?>" placeholder="Input Nama Kegiatan">
                <?= form_error('nama_kegiatan', '<div class="text-small text-danger">', '</div>'); ?>
            </div>
            <div class="form-group">
                <label>Waktu</label>
                <input type="text" name="waktu" class="form-control" value="<?= set_value('waktu'); ?>" placeholder="Input Waktu">
                <?= form_error('waktu', '<div class="text-small text-danger">', '</div>'); ?>
            </div>
            <a href="<?= base_url('kegiatansantri') ?>" 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>