<li class="menu <?php echo $this->uri->segment(2) == 'pinjaman' ? 'active' : '' ?>">
    <a href="#kelola_data_pinjaman" data-toggle="collapse" aria-expanded="<?php echo $this->uri->segment(2) == 'pinjaman' ? '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-box">
                <path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z">
                </path>
                <polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline>
                <line x1="12" y1="22.08" x2="12" y2="12"></line>
            </svg>
            <span>Koperasi</span>
        </div>
        <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) == 'pinjaman' ? 'recent-submenu mini-recent-submenu' : '' ?> list-unstyled <?php echo $this->uri->segment(2) == 'pinjaman' ? 'show' : '' ?>" id="kelola_data_pinjaman" data-parent="#accordionExample">
        <li class="<?php echo $this->uri->segment(3) == 'realisasi' ? 'active' : '' ?>">
            <a href="<?= base_url('keuangan/pinjaman/realisasi') ?>"> Realisasi </a>
        </li>
        <li class="<?php echo $this->uri->segment(3) == 'aktif' ? 'active' : '' ?>">
            <a href="<?= base_url('keuangan/pinjaman/aktif') ?>"> Aktif </a>
        </li>
        <li class="<?php echo $this->uri->segment(3) == 'macet' ? 'active' : '' ?>">
            <a href="<?= base_url('keuangan/pinjaman/macet') ?>"> Macet </a>
        </li>
        <li class="<?php echo $this->uri->segment(3) == 'lunas' ? 'active' : '' ?>">
            <a href="<?= base_url('keuangan/pinjaman/lunas') ?>"> Lunas </a>
        </li>
    </ul>
</li>