<div class="modal fade" id="arisan_detail" tabindex="-1" role="dialog" aria-labelledby="arisan_detailTitle"
    aria-hidden="true">
    <div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="arisan_detailTitle">
                    Detail Data Arisan Motor!
                </h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body" id="detail_body">
                <?php echo form_open_multipart('arisan/data/kelompok_motor/crud'); ?>
                <input type="hidden" name="<?= $this->security->get_csrf_token_name(); ?>"
                    value="<?= $this->security->get_csrf_hash(); ?>" style="display: none">
                <div class="form-group">
                    <label>Nama Kelompok</label>
                    <input type="number" class="form-control" min="1" hidden id="regist_arisan" name="regist_arisan"
                        placeholder="Nama Kelompok Arisan" required>
                    <input type="text" class="form-control" id="nm_kelompok" name="nm_kelompok"
                        placeholder="Nama Kelompok Arisan" required>
                    <small>*Misal : Vario 160cc 2024</small>
                </div>
                <div class="form-group">
                    <label>Anggota Kelompok Arisan</label>
                    <input type="number" class="form-control" id="target_anggota" name="target_anggota"
                        placeholder="Target Anggota Kelompok Arisan" required>
                </div>
                <div class="form-group">
                    <label>Iuran per Bulan</label>
                    <input type="number" class="form-control" min="1" id="tagihan_iuran" name="tagihan_iuran"
                        placeholder="Iuran per Bulan" required>
                </div>
                <div class="form-group">
                    <label>Harga Standar</label>
                    <input type="number" class="form-control" min="1" id="hg_standar" name="hg_standar"
                        placeholder="Harga Modal Pembelian Motor/Barang" required>
                </div>
                <div class="form-group">
                    <label>Administrasi</label>
                    <input type="number" class="form-control" id="admin_arisan" name="admin_arisan"
                        placeholder="Besaran Fee Administrasi" required>
                </div>
                <div class="form-group">
                    <label>Dana Kehilangan</label>
                    <input type="number" class="form-control" min="1" id="dana_kehilangan" name="dana_kehilangan"
                        placeholder="Dana Kehilangan Wajib" required>
                </div>
                <div class="form-group">
                    <label>Tanggal Lelang</label>
                    <input type="number" class="form-control" id="tgl_undian" name="tgl_undian"
                        placeholder="Tanggal Lelang Bulanan">
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-outline-primary" data-dismiss="modal">
                    Close
                </button>
                <button type="submit" id="hapusDataArisan" name="hapusDataArisan" class="btn btn-danger">Hapus</button>
                <button type="submit" id="ubahDataArisan" name="ubahDataArisan" class="btn btn-primary">Ubah</button>
                <button type="submit" id="aktifDataArisan" name="aktifDataArisan" class="btn btn-success">Aktif</button>
            </div>
            <?php echo form_close(); ?>
        </div>
    </div>
</div>
<!-- Form Ajax Kategori Juri -->
<script type="text/javascript">
    $(document).on("click", "#detail_arisan", function() {
        var regist_arisan = $(this).data('regist_arisan');
        var nm_kelompok = $(this).data('nm_kelompok');
        var target_anggota = $(this).data('target_anggota');
        var tagihan_iuran = $(this).data('tagihan_iuran');
        var hg_standar = $(this).data('hg_standar');
        var admin_arisan = $(this).data('admin_arisan');
        var dana_kehilangan = $(this).data('dana_kehilangan');
        $(".modal-body#detail_body #regist_arisan").val(regist_arisan);
        $(".modal-body#detail_body #nm_kelompok").val(nm_kelompok);
        $(".modal-body#detail_body #target_anggota").val(target_anggota);
        $(".modal-body#detail_body #tagihan_iuran").val(tagihan_iuran);
        $(".modal-body#detail_body #hg_standar").val(hg_standar);
        $(".modal-body#detail_body #admin_arisan").val(admin_arisan);
        $(".modal-body#detail_body #dana_kehilangan").val(dana_kehilangan);
    })
</script>