<li class="menu <?php echo $this->uri->segment(2) == 'koperasi' ? 'active' : '' ?>">
    <a href="#kelola_operasional_koperasi" data-toggle="collapse"
        aria-expanded="<?php echo $this->uri->segment(2) == 'koperasi' ? '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-server">
                <rect x="2" y="2" width="20" height="8" rx="2" ry="2"></rect>
                <rect x="2" y="14" width="20" height="8" rx="2" ry="2"></rect>
                <line x1="6" y1="6" x2="6.01" y2="6"></line>
                <line x1="6" y1="18" x2="6.01" y2="18"></line>
            </svg>
            <span>Koperasi</span>
        </div>
        <?php if (($notif['notif_realisasi']['notif_realisasi']) + ($notif['angs_mingguan']['angs_mingguan'] + $notif['angs_2mingguan']['angs_2mingguan'] + $notif['angs_bulanan']['angs_bulanan'] + $notif['angs_musiman']['angs_musiman'] + $notif['angs_abulanan']['angs_abulanan'] + $notif['angs_kbulanan']['angs_kbulanan']) > 0) : ?>
        <span class="badge badge-danger counter"
            style="position: static;"><?= ($notif['notif_realisasi']['notif_realisasi']) + ($notif['angs_mingguan']['angs_mingguan'] + $notif['angs_2mingguan']['angs_2mingguan'] + $notif['angs_bulanan']['angs_bulanan'] + $notif['angs_musiman']['angs_musiman'] + $notif['angs_abulanan']['angs_abulanan'] + $notif['angs_kbulanan']['angs_kbulanan']) ?></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) == 'koperasi' ? 'recent-submenu mini-recent-submenu' : '' ?> list-unstyled <?php echo $this->uri->segment(2) == 'koperasi' ? 'show' : '' ?>"
        id="kelola_operasional_koperasi" data-parent="#accordionExample">
        <li class="<?php echo $this->uri->segment(3) == 'daftar_pengajuan' ? 'active' : '' ?>">
            <a href="<?= base_url('kasir/koperasi/daftar_pengajuan') ?>"> Pengajuan </a>
        </li>
        <li class="<?php echo $this->uri->segment(3) == 'pencairan_pinjaman' ? 'active' : '' ?>">
            <a href="<?= base_url('kasir/koperasi/pencairan_pinjaman') ?>"> Realisasi
                <?php if ($notif['notif_realisasi']['notif_realisasi'] > 0) : ?>
                <span class="badge badge-danger counter"
                    style="position: static;"><?= ($notif['notif_realisasi']['notif_realisasi']) ?></span>
                <?php endif; ?></a>
        </li>
        <li class="<?php echo $this->uri->segment(3) == 'pembayaran_pinjaman' ? 'active' : '' ?>">
            <a href="<?= base_url('kasir/koperasi/pembayaran_pinjaman') ?>"> Storting
                <?php if ($notif['angs_mingguan']['angs_mingguan'] + $notif['angs_2mingguan']['angs_2mingguan'] + $notif['angs_bulanan']['angs_bulanan'] + $notif['angs_musiman']['angs_musiman'] + $notif['angs_abulanan']['angs_abulanan'] + $notif['angs_kbulanan']['angs_kbulanan'] > 0) : ?>
                <span class="badge badge-danger counter"
                    style="position: static;"><?= ($notif['angs_mingguan']['angs_mingguan'] + $notif['angs_2mingguan']['angs_2mingguan'] + $notif['angs_bulanan']['angs_bulanan'] + $notif['angs_musiman']['angs_musiman'] + $notif['angs_abulanan']['angs_abulanan'] + $notif['angs_kbulanan']['angs_kbulanan']) ?></span>
                <?php endif; ?></a>
        </li>
        <li class="<?php echo $this->uri->segment(3) == 'daftar_pinjaman' ? 'active' : '' ?>">
            <a href="<?= base_url('kasir/koperasi/daftar_pinjaman') ?>"> Pinjaman Aktif </a>
        </li>
        <li class="<?php echo $this->uri->segment(3) == 'daftar_pinjaman_macet' ? 'active' : '' ?>">
            <a href="<?= base_url('kasir/koperasi/daftar_pinjaman_macet') ?>"> Pinjaman Macet </a>
        </li>
    </ul>
</li>