<li class="menu <?php echo $this->uri->segment(2) == 'database' ? 'active' : '' ?>">
    <a href="#database" data-toggle="collapse"
        aria-expanded="<?php echo $this->uri->segment(2) == 'database' ? '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-database">
                <ellipse cx="12" cy="5" rx="9" ry="3"></ellipse>
                <path d="M21 12c0 1.66-4 3-9 3s-9-1.34-9-3"></path>
                <path d="M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"></path>
            </svg>
            <span>Database</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) == 'database' ? 'recent-submenu mini-recent-submenu' : '' ?> list-unstyled <?php echo $this->uri->segment(2) == 'database' ? 'show' : '' ?>"
        id="database" data-parent="#accordionExample">
        <li>
            <a href="#sistem_table" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle"> Sistem <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> </a>
            <ul class="collapse <?php echo $this->uri->segment(3) == 'sistem' ? 'recent-submenu mini-recent-submenu' : '' ?> list-unstyled <?php echo $this->uri->segment(3) == 'sistem' ? 'show' : '' ?> sub-submenu"
                id="sistem_table" data-parent="#sistem_table">
                <li class="<?php echo $this->uri->segment(4) == 'role_level' ? 'active' : '' ?>">
                    <a href="<?= base_url('owner/database/sistem/role_level') ?>"> Role / Level </a>
                </li>
                <li class="<?php echo $this->uri->segment(4) == 'alamat' ? 'active' : '' ?>">
                    <a href="<?= base_url('owner/database/sistem/alamat') ?>"> Alamat </a>
                </li>
                <li class="<?php echo $this->uri->segment(4) == 'whatsapp' ? 'active' : '' ?>">
                    <a href="<?= base_url('owner/database/sistem/whatsapp') ?>"> WhatsApp </a>
                </li>
                <li class="<?php echo $this->uri->segment(4) == 'email' ? 'active' : '' ?>">
                    <a href="<?= base_url('owner/database/sistem/email') ?>"> Email </a>
                </li>
                <li class="<?php echo $this->uri->segment(4) == 'login' ? 'active' : '' ?>">
                    <a href="<?= base_url('owner/database/sistem/login') ?>"> Login </a>
                </li>
                <li class="<?php echo $this->uri->segment(4) == 'identitas' ? 'active' : '' ?>">
                    <a href="<?= base_url('owner/database/sistem/identitas') ?>"> Identitas </a>
                </li>
                <li class="<?php echo $this->uri->segment(4) == 'export_data' ? 'active' : '' ?>">
                    <a href="<?= base_url('owner/database/sistem/export_data') ?>"> Export Data </a>
                </li>
            </ul>
        </li>
        <li>
            <a href="#pernotaan" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle"> Nota <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> </a>
            <ul class="collapse <?php echo $this->uri->segment(3) == 'nota' ? 'recent-submenu mini-recent-submenu' : '' ?> list-unstyled <?php echo $this->uri->segment(3) == 'nota' ? 'show' : '' ?> sub-submenu"
                id="pernotaan" data-parent="#pernotaan">
                <li class="<?php echo $this->uri->segment(4) == 'utama' ? 'active' : '' ?>">
                    <a href="<?= base_url('owner/database/nota/utama') ?>"> Nota Utama </a>
                </li>
                <li class="<?php echo $this->uri->segment(4) == 'detail_koperasi' ? 'active' : '' ?>">
                    <a href="<?= base_url('owner/database/nota/detail_koperasi') ?>"> Detail Koperasi </a>
                </li>
                <li class="<?php echo $this->uri->segment(4) == 'detail_arisan' ? 'active' : '' ?>">
                    <a href="<?= base_url('owner/database/nota/detail_arisan') ?>"> Detail Arisan </a>
                </li>
                <li class="<?php echo $this->uri->segment(4) == 'simpanan_koperasi' ? 'active' : '' ?>">
                    <a href="<?= base_url('owner/database/nota/simpanan_koperasi') ?>"> Simpanan Koperasi </a>
                </li>
                <li class="<?php echo $this->uri->segment(4) == 'file_nota' ? 'active' : '' ?>">
                    <a href="<?= base_url('owner/database/nota/file_nota') ?>"> File Nota </a>
                </li>
            </ul>
        </li>
        <li>
            <a href="#perkoperasian" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle"> Koperasi <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> </a>
            <ul class="collapse <?php echo $this->uri->segment(3) == 'koperasi' ? 'recent-submenu mini-recent-submenu' : '' ?> list-unstyled <?php echo $this->uri->segment(3) == 'koperasi' ? 'show' : '' ?> sub-submenu"
                id="perkoperasian" data-parent="#perkoperasian">
                <li class="<?php echo $this->uri->segment(4) == 'anggota' ? 'active' : '' ?>">
                    <a href="<?= base_url('owner/database/koperasi/anggota') ?>"> Anggota </a>
                </li>
                <li class="<?php echo $this->uri->segment(4) == 'kontrak' ? 'active' : '' ?>">
                    <a href="<?= base_url('owner/database/koperasi/kontrak') ?>"> Kontrak </a>
                </li>
                <li class="<?php echo $this->uri->segment(4) == 'progress' ? 'active' : '' ?>">
                    <a href="<?= base_url('owner/database/koperasi/progress') ?>"> Progress </a>
                </li>
                <li class="<?php echo $this->uri->segment(4) == 'jaminan' ? 'active' : '' ?>">
                    <a href="<?= base_url('owner/database/koperasi/jaminan') ?>"> Jaminan </a>
                </li>
                <li class="<?php echo $this->uri->segment(4) == 'angsuran' ? 'active' : '' ?>">
                    <a href="<?= base_url('owner/database/koperasi/angsuran') ?>"> Angsuran </a>
                </li>
            </ul>
        </li>
        <li>
            <a href="#perkpian" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle"> Nilai KPI <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> </a>
            <ul class="collapse <?php echo $this->uri->segment(3) == 'kpi' ? 'recent-submenu mini-recent-submenu' : '' ?> list-unstyled <?php echo $this->uri->segment(3) == 'kpi' ? 'show' : '' ?> sub-submenu"
                id="perkpian" data-parent="#perkpian">
                <li class="<?php echo $this->uri->segment(4) == 'komponen' ? 'active' : '' ?>">
                    <a href="<?= base_url('owner/database/kpi/komponen') ?>"> Komponen </a>
                </li>
                <li class="<?php echo $this->uri->segment(4) == 'faktor' ? 'active' : '' ?>">
                    <a href="<?= base_url('owner/database/kpi/faktor') ?>"> Faktor </a>
                </li>
                <li class="<?php echo $this->uri->segment(4) == 'target' ? 'active' : '' ?>">
                    <a href="<?= base_url('owner/database/kpi/target') ?>"> Target </a>
                </li>
            </ul>
        </li>
    </ul>
</li>