<div class="modal fade" id="pinjamanAktif" tabindex="-1" role="dialog" aria-labelledby="pinjamanAktifTitle"
    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="pinjamanAktifTitle">
                    Pinjaman Aktif
                </h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">
                <?php echo form_open_multipart('marketing/kegiatan/pengajuan_pinjaman/crud'); ?>
                <table id="style-11" class="table style-11  table-hover">
                    <thead>
                        <tr>
                            <th class="text-center">Identitas</th>
                            <th class="text-center">Pinjaman</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php foreach ($pinjaman_aktif as $Data_pengajuan) : ?>
                            <tr>
                                <td class="text-left">
                                    NIK : <?= $Data_pengajuan->nik ?><br>
                                    Nama : <?= $Data_pengajuan->nm_anggota ?><br>
                                    TTL : <?= $Data_pengajuan->tempat_lahir ?>,
                                    <?= date('d', strtotime($Data_pengajuan->tgl_lahir)) . ' ' . $this->mycustom->bulanIndo(date('m', strtotime($Data_pengajuan->tgl_lahir))) . ' ' .  date('Y', strtotime($Data_pengajuan->tgl_lahir))  ?><br>
                                    No HP : <?= $Data_pengajuan->no_hp ?>
                                </td>
                                <td class="text-left">
                                    Kontrak : <?= $Data_pengajuan->kontrak_id ?><br>
                                    Pinjaman : Rp <?= number_format($Data_pengajuan->pokok_pinjaman, 0, ',', '.') ?>,- <br>
                                    Tempo :
                                    <?php if ($Data_pengajuan->aturan_id == 2) :
                                        echo '8X - Dua Mingguan';
                                    else :
                                        echo '12X - Mingguan';
                                    endif ?>
                                    <br>
                                    Angsuran : Rp <?= number_format($Data_pengajuan->bsr_angsuran, 0, ',', '.') ?>,- <br>
                                    Pengajuan :
                                    <?= date('d', strtotime($Data_pengajuan->tgl_pengajuan)) . ' ' . $this->mycustom->bulanIndo(date('m', strtotime($Data_pengajuan->tgl_pengajuan))) . ' ' .  date('Y', strtotime($Data_pengajuan->tgl_pengajuan))  ?>
                                </td>
                            </tr>
                        <?php endforeach; ?>
                    </tbody>
                </table>
            </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>