<div class="modal fade" id="kpi_detail" tabindex="-1" role="dialog" aria-labelledby="kpi_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="kpi_detailTitle">
                    Detail KPI Marketing
                </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('manager/sistem/aturan_pinjaman/crud'); ?>
                <input type="hidden" name="<?= $this->security->get_csrf_token_name(); ?>"
                    value="<?= $this->security->get_csrf_hash(); ?>" style="display: none">
                <label for="">Target Individu Realisasi</label>
                <div class="form-row mb-4">
                    <div class="col-4">
                        <label for="">Kabupaten / Kota</label>
                        <select class="form-control" id="kota_kabupaten" name="kota_kabupaten">
                            <option value="1">LAKI-LAKI</option>
                            <option value="2">PEREMPUAN</option>
                        </select>
                    </div>
                    <div class="col-4">
                        <label for="">Kecamatan</label>
                        <select class="form-control" id="kecamatan_baru" name="kecamatan_baru">
                            <option value="1">LAKI-LAKI</option>
                            <option value="2">PEREMPUAN</option>
                        </select>
                    </div>
                    <div class="col-4">
                        <label for="">Desa / Kelurahan</label>
                        <select class="form-control" id="dk_ds" name="dk_ds">
                            <option value="1">LAKI-LAKI</option>
                            <option value="2">PEREMPUAN</option>
                        </select>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-outline-primary" data-dismiss="modal">
                    Close
                </button>
            </div>
            <?php echo form_close(); ?>
        </div>
    </div>
</div>
<!-- Form Ajax Kategori Juri -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script type="text/javascript">
$(document).on("click", "#detail_kpi", function() {
    var aturan_id = $(this).data('aturan_id');
    var produk_id = $(this).data('produk_id');
    var administrasi = $(this).data('administrasi');
    var rk = $(this).data('rk');
    var jasa = $(this).data('jasa');
    var simpanan = $(this).data('simpanan');
    var tempo = $(this).data('tempo');
    $(".modal-body#detail_body #aturan_id").val(aturan_id);
    $(".modal-body#detail_body #produk_id").val(produk_id);
    $(".modal-body#detail_body #administrasi").val(administrasi);
    $(".modal-body#detail_body #rk").val(rk);
    $(".modal-body#detail_body #jasa").val(jasa);
    $(".modal-body#detail_body #simpanan").val(simpanan);
    $(".modal-body#detail_body #tempo").val(tempo);
})
</script>