<li class="menu <?php echo $this->uri->segment(2) == 'anggota' ? 'active' : '' ?>">
    <a href="#kelola_anggota_koperasi" data-toggle="collapse"
        aria-expanded="<?php echo $this->uri->segment(2) == 'anggota' ? '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-users">
                <path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path>
                <circle cx="9" cy="7" r="4"></circle>
                <path d="M23 21v-2a4 4 0 0 0-3-3.87"></path>
                <path d="M16 3.13a4 4 0 0 1 0 7.75"></path>
            </svg>
            <span>Anggota</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) == 'anggota' ? 'recent-submenu mini-recent-submenu' : '' ?> list-unstyled <?php echo $this->uri->segment(2) == 'anggota' ? 'show' : '' ?>"
        id="kelola_anggota_koperasi" data-parent="#accordionExample">
        <li class="<?php echo $this->uri->segment(3) == 'pengurus' ? 'active' : '' ?>">
            <a href="<?= base_url('owner/anggota/pengurus') ?>"> Pengurus </a>
        </li>
        <li class="<?php echo $this->uri->segment(3) == 'karyawan' ? 'active' : '' ?>">
            <a href="<?= base_url('owner/anggota/karyawan') ?>"> Karyawan </a>
        </li>
        <li class="<?php echo $this->uri->segment(3) == 'koperasi' ? 'active' : '' ?>">
            <a href="<?= base_url('owner/anggota/koperasi') ?>"> Koperasi </a>
        </li>
    </ul>
</li>