<div class="modal fade" id="ubahDetailADKoperasi" tabindex="-1" role="dialog" aria-labelledby="ubahDetailADKoperasiTitle" 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="ubahDetailADKoperasiTitle">
                    Anggaran Dasar Koperasi
                </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('keuangan/kas/anggaran_dasar/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>Keterangan Transaksi</label>
                    <textarea class="form-control" name="ket_transaksi" id="ket_transaksi" placeholder="Keterangan Transaksi Anggaran Dasar Koperasi" required></textarea>
                    <input type="number" class="form-control" value="99" id="produk_id" hidden name="produk_id" required>
                </div>
                <div class="form-group">
                    <label>Total Transaksi</label>
                    <input type="number" class="form-control" id="total_transaksi" name="total_transaksi" placeholder="Besaran Biaya Transaksi" required>
                </div>
                <div class="form-group">
                    <label>Jenis Transaksi</label>
                    <select class="form-control" id="jenis_transaksi" onchange="showDiv23(this)" name="jenis_transaksi" required>
                        <option value="PILIH">Pilih Jenis Transaksi</option>
                        <option value="MASUK">Transaksi Masuk</option>
                        <option value="KELUAR">Transaksi Keluar</option>
                    </select>
                </div>
                <div class="form-group" id="select_penggunaan_dana" style="display:none">
                    <label>Penggunaan Dana</label>
                    <select class="form-control" id="penggunaan_dana" name="penggunaan_dana">
                        <option value="KAS">Modal Koperasi ( Masuk Kas UMUM )</option>
                        <option value="MODAL">Ambil Modal Koperasi ( Penarikan Pengurus )</option>
                    </select>
                </div>
                <div class="form-group">
                    <label>Bukti Transaksi</label>
                    <input type="file" class="form-control" id="bukti_transaksi" name="bukti_transaksi" required>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-outline-primary" data-dismiss="modal">
                    Close
                </button>
                <button type="submit" id="simpanDetailTransaksi" name="simpanDetailTransaksi" class="btn btn-success">Simpan</button>
            </div>
            <?php echo form_close(); ?>
        </div>
    </div>
</div>
<script>
    function showDiv23(select) {
        if (select.value == 'PILIH') {
            $("#select_penggunaan_dana").hide();
        }
        if (select.value == 'KELUAR') {
            $("#select_penggunaan_dana").show();
        }
        if (select.value == 'MASUK') {
            $("#select_penggunaan_dana").hide();
        }
    }
</script>