<li class="menu <?php echo $this->uri->segment(2) == 'kegiatan' ? 'active' : '' ?>">
    <a href="#realisasi_aktifitas_koeprasi" data-toggle="collapse" aria-expanded="<?php echo $this->uri->segment(2) == 'kegiatan' ? 'true' : 'false' ?>" class="dropdown-toggle">
        <div class="">
            <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-zap">
                <polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"></polygon>
            </svg>
            <span>Pinjaman</span>
        </div>
        <?php if (($notif['verif_pengajuan']['verif_pengajuan']) > 0) : ?>
            <span class="badge badge-danger counter" style="position: static;"><?= ($notif['verif_pengajuan']['verif_pengajuan']) + ($notif['verif_kasir']['verif_kasir']) ?></span>
        <?php endif; ?>
        <div>
            <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-right">
                <polyline points="9 18 15 12 9 6"></polyline>
            </svg>
        </div>
    </a>
    <ul class="collapse submenu <?php echo $this->uri->segment(2) == 'kegiatan' ? 'recent-submenu mini-recent-submenu' : '' ?> list-unstyled <?php echo $this->uri->segment(2) == 'kegiatan' ? 'show' : '' ?>" id="realisasi_aktifitas_koeprasi" data-parent="#accordionExample">
        <li class="<?php echo $this->uri->segment(3) == 'permintaan_pinjaman' ? 'active' : '' ?>">
            <a href="<?= base_url('kabag_marketing/kegiatan/permintaan_pinjaman') ?>"> Permintaan
                <?php if ($notif['verif_kasir']['verif_kasir'] > 0) : ?><span class="badge badge-danger counter" style="position: static;"><?= $notif['verif_kasir']['verif_kasir'] ?></span><?php endif; ?></a>
        </li>
        <li class="<?php echo $this->uri->segment(3) == 'pengajuan_pinjaman' ? 'active' : '' ?>">
            <a href="<?= base_url('kabag_marketing/kegiatan/pengajuan_pinjaman') ?>"> Pengajuan
                <?php if ($notif['verif_pengajuan']['verif_pengajuan'] > 0) : ?><span class="badge badge-danger counter" style="position: static;"><?= $notif['verif_pengajuan']['verif_pengajuan'] ?></span><?php endif; ?></a>
        </li>
        <li class="<?php echo $this->uri->segment(3) == 'realisasi_pinjaman' ? 'active' : '' ?>">
            <a href="<?= base_url('kabag_marketing/kegiatan/realisasi_pinjaman') ?>"> Realisasi </a>
        </li>
        <li class="<?php echo $this->uri->segment(3) == 'pinjaman_aktif' ? 'active' : '' ?>">
            <a href="<?= base_url('kabag_marketing/kegiatan/pinjaman_aktif') ?>"> Aktif </a>
        </li>
        <li class="<?php echo $this->uri->segment(3) == 'pinjaman_macet' ? 'active' : '' ?>">
            <a href="<?= base_url('kabag_marketing/kegiatan/pinjaman_macet') ?>"> Macet </a>
        </li>
        <li class="<?php echo $this->uri->segment(3) == 'pinjaman_lunas' ? 'active' : '' ?>">
            <a href="<?= base_url('kabag_marketing/kegiatan/pinjaman_lunas') ?>"> Lunas </a>
        </li>
    </ul>
</li>