<div class="row layout-spacing" style="padding-bottom: 10px;">
    <div class="col-lg-12">
        <blockquote class="blockquote media-object">
            <div class="btn-group mr-2 sm" style="float: right;">
                <button class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown"
                    aria-haspopup="true" aria-expanded="false">
                    Pilihan <svg 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-chevron-down">
                        <polyline points="6 9 12 15 18 9"></polyline>
                    </svg>
                </button>
                <div class="dropdown-menu">
                    <a target="_blank"
                        href="<?= base_url('keuangan/identitas/anggota/' . $this->encrypt->encode($rincian_kontrak['anggota_id'])) ?>"
                        class="dropdown-item">Identitas</a>
                    <a target="_blank"
                        href="<?= base_url('assets/doc_kontrak/' . date('Y', strtotime($doc['tgl_realisasi'])) . '/' . date('m', strtotime($doc['tgl_realisasi'])) . '/' . $doc['doc_kontrak']) ?>"
                        class="dropdown-item">Kontrak</a>
                    <?php if ($rincian_kontrak['jaminan'] == 'Y') : ?>
                        <a href="javascript:void(0);" class="dropdown-item" data-toggle="modal"
                            data-target="#satuMarketing">Jaminan</a>
                    <?php endif; ?>
                </div>
            </div>
            <div class="media">
                <div class="media-body align-self-center">
                    <p class="d-inline">
                        Nomor Kontrak Pinjaman :<br>
                        <b><?= $rincian_kontrak['id'] ?> - <?php if ($rincian_kontrak['status_kontrak'] == 'AKTIF') : ?>
                                <span class="shadow-none badge badge-primary">AKTIF</span>
                            <?php elseif ($rincian_kontrak['status_kontrak'] == 'LUNAS_LANCAR') : ?>
                                <span class="shadow-none badge badge-success">LUNAS LANCAR</span>
                            <?php elseif ($rincian_kontrak['status_kontrak'] == 'MACET') : ?>
                                <span class="shadow-none badge badge-danger">MACET</span>
                            <?php elseif ($rincian_kontrak['status_kontrak'] == 'LUNAS_MACET') : ?>
                                <span class="shadow-none badge badge-warning">LUNAS MACET</span>
                            <?php endif; ?>
                    </p><br>
                    <p><?= $identitas['nm_anggota'] ?> - <?= $identitas['nik'] ?></p>
                </div>
            </div>
        </blockquote>
    </div>
</div>