<div class="modal fade" id="jadwal_detail" tabindex="-1" role="dialog" aria-labelledby="jadwal_detailTitle" aria-hidden="true">
    <div class="modal-dialog modal-dialog-centered" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="jadwal_detailTitle">Ubah Jadwal Undian Arisan</h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-x">
                        <line x1="18" y1="6" x2="6" y2="18"></line>
                        <line x1="6" y1="6" x2="18" y2="18"></line>
                    </svg>
                </button>
            </div>
            <div class="modal-body" id="detail_body">
                <?php echo form_open_multipart('arisan/aktifitas/jadwal/crud'); ?>
                <input type="hidden" name="<?= $this->security->get_csrf_token_name(); ?>" value="<?= $this->security->get_csrf_hash(); ?>" style="display: none">
                <center>
                    <p class="modal-text">Silahkan pilih tanggal undian arisan!
                    </p>
                    <input type="date" class="form-control" id="tgl_undian" name="tgl_undian" required>
                    <input type="date" class="form-control" hidden id="tgl_undian_lama" name="tgl_undian_lama" required>
                    <input type="text" class="form-control" hidden id="kode_regist" name="kode_regist" required>
                    <input type="text" class="form-control" hidden id="undian_ke" name="undian_ke" required>
                    <input type="text" class="form-control" hidden id="status_undian" name="status_undian" required>
                </center>
                <small>*Contoh : 23 Febuari 2024 = 02/23/2024</small>
            </div>
            <div class="modal-footer">
                <button class="btn" data-dismiss="modal"><i class="flaticon-cancel-12"></i> Batal</button>
                <button type="submit" id="ubahJadwalArisan" name="ubahJadwalArisan" class="btn btn-primary">Simpan</button>
            </div>
            <?php echo form_close(); ?>
        </div>
    </div>
</div>
<!-- Form Ajax Kategori Juri -->
<script type="text/javascript">
    $(document).on("click", "#detail_jadwal", function() {
        var kode_regist = $(this).data('kode_regist');
        var tgl_undian = $(this).data('tgl_undian');
        var undian_ke = $(this).data('undian_ke');
        var status_undian = $(this).data('status_undian');
        $(".modal-body#detail_body #kode_regist").val(kode_regist);
        $(".modal-body#detail_body #tgl_undian").val(tgl_undian);
        $(".modal-body#detail_body #tgl_undian_lama").val(tgl_undian);
        $(".modal-body#detail_body #undian_ke").val(undian_ke);
        $(".modal-body#detail_body #status_undian").val(status_undian);
    })
</script>