<li class="menu <?php echo $this->uri->segment(2) == 'data' ? 'active' : '' ?>">
    <a href="#kelola_data_arisan" data-toggle="collapse"
        aria-expanded="<?php echo $this->uri->segment(2) == 'data' ? '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>Kelola Data</span>
        </div>
        <?php if ($jml_pengajuan > 0) :
        ?><span class="badge badge-danger counter" style="position: static;"><?= $jml_pengajuan ?></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) == 'data' ? 'recent-submenu mini-recent-submenu' : '' ?> list-unstyled <?php echo $this->uri->segment(2) == 'data' ? 'show' : '' ?>"
        id="kelola_data_arisan" data-parent="#accordionExample">
        <li class="<?php echo $this->uri->segment(3) == 'pengajuan' ? 'active' : '' ?>">
            <a href="<?= base_url('arisan/data/pengajuan') ?>"> Pengajuan <?php if ($jml_pengajuan > 0) :
                                                                            ?><span class="badge badge-danger counter"
                    style="position: static;"><?= $jml_pengajuan ?></span><?php
                                                                                                                                                                            endif; ?></a>

        </li>
        <li class="<?php echo $this->uri->segment(3) == 'kelompok_heboh' ? 'active' : '' ?>">
            <a href="<?= base_url('arisan/data/kelompok_heboh') ?>"> Arisan Heboh </a>
        </li>
        <li class="<?php echo $this->uri->segment(3) == 'kelompok_motor' ? 'active' : '' ?>">
            <a href="<?= base_url('arisan/data/kelompok_motor') ?>"> Arisan Motor </a>
        </li>
        <li class="<?php echo $this->uri->segment(3) == 'anggota_arisan' ? 'active' : '' ?>">
            <a href="<?= base_url('arisan/data/anggota_arisan') ?>"> Data Anggota </a>
        </li>
        <li class="<?php echo $this->uri->segment(3) == 'anggota_keluarga' ? 'active' : '' ?>">
            <a href="<?= base_url('arisan/data/anggota_keluarga') ?>"> Data Keluarga </a>
        </li>
        <!-- <li class="<?php echo $this->uri->segment(3) == 'referral_arisan' ? 'active' : '' ?>">
            <a href="<?= base_url('arisan/data/referral_arisan') ?>"> Data Referral </a>
        </li> -->
    </ul>
</li>