<?= $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 Waktu Pembayaran</h3>
    </div>
    <div class="col-lg-6 mt-2 ml-2 mb-4">
        <form action="<?= base_url('InformasiSPP/tambah_aksi') ?>" method="POST">
            <div class="form-group">
                <label>Bulan</label>
                <select class="custom-select" id="inputGroupSelect02" name="bulan">
                    <option selected>Pilih Bulan</option>
                    <option value="1" <?= set_select('bulan', '1'); ?>>Januari</option>
                    <option value="2" <?= set_select('bulan', '2'); ?>>Februari</option>
                    <option value="3" <?= set_select('bulan', '3'); ?>>Maret</option>
                    <option value="4" <?= set_select('bulan', '4'); ?>>April</option>
                    <option value="5" <?= set_select('bulan', '5'); ?>>Mei</option>
                    <option value="6" <?= set_select('bulan', '6'); ?>>Juni</option>
                    <option value="7" <?= set_select('bulan', '7'); ?>>Juli</option>
                    <option value="8" <?= set_select('bulan', '8'); ?>>Agustus</option>
                    <option value="9" <?= set_select('bulan', '9'); ?>>September</option>
                    <option value="10" <?= set_select('bulan', '10'); ?>>Oktober</option>
                    <option value="11" <?= set_select('bulan', '11'); ?>>November</option>
                    <option value="12" <?= set_select('bulan', '12'); ?>>Desember</option>
                </select>
                <?= form_error('bulan', '<div class="text-small text-danger">', '</div>'); ?>
            </div>
            <div class="form-group">
                <label>Tahun</label>
                <input type="text" name="tahun" class="form-control" value="<?= set_value('tahun') ?>" placeholder="Input Tahun">
                <?= form_error('tahun', '<div class="text-small text-danger">', '</div>'); ?>
            </div>
            <div class="form-group">
                <label>Jumlah Pembayaran</label>
                <input type="text" name="jumlah_pembayaran" class="form-control" value="<?= set_value('jumlah_pembayaran') ?>" placeholder="Input Jumlah Pembayaran">
                <?= form_error('jumlah_pembayaran', '<div class="text-small text-danger">', '</div>'); ?>
            </div>
            <div class="form-group">
                <label>Jatuh Tempo</label>
                <input type="date" name="jatuh_tempo" class="form-control" value="<?= set_value('jatuh_tempo') ?>" placeholder="Pilih Tanggal Jatuh Tempo">
                <?= form_error('jatuh_tempo', '<div class="text-small text-danger">', '</div>'); ?>
            </div>
            <a href="<?= base_url('InformasiSPP') ?>" 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>