<div class="sidebar-wrapper sidebar-theme">
    <nav id="sidebar">
        <div class="profile-info">
            <figure class="user-cover-image"></figure>
            <div class="user-info">
                <img src="<?= $data_login->gambar_profil ?>" alt="avatar">
                <h6 class=""><?= $data_login->username ?></h6>
                <p class=""><?= $data_login->role_level ?></p>
            </div>
        </div>
        <div class="shadow-bottom"></div>
        <ul class="list-unstyled menu-categories" id="accordionExample">
            <!-- Menu Beranda -->
            <?php $this->load->view('kabag_marketing/include/m_beranda'); ?>
            <!-- Data Arus Kas Arisan -->
            <!-- Pembatas Menu -->
            <li class="menu menu-heading">
                <div class="heading"><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-minus">
                        <line x1="5" y1="12" x2="19" y2="12"></line>
                    </svg><span>OPERASIONAL BISNIS</span></div>
            </li>
            <!-- Realisasi Kegiatan Koperasi -->
            <?php $this->load->view('kabag_marketing/include/m_realisasi'); ?>
            <?php $this->load->view('kabag_marketing/include/m_storting'); ?>
            <!-- Kelola Data Operasional Koperasi -->
            <?php $this->load->view('kabag_marketing/include/m_keloladata'); ?>
            <!-- Pembatas Menu -->
            <li class="menu menu-heading">
                <div class="heading"><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-minus">
                        <line x1="5" y1="12" x2="19" y2="12"></line>
                    </svg><span>USER INTERFACE</span></div>
            </li>
            <!-- Menu Gaji history -->
            <?php $this->load->view('kabag_marketing/include/m_saleryreport'); ?>
            <!-- Menu Profile -->
            <li class="menu <?php echo $this->uri->segment(2) == 'identitas' ? 'active' : '' ?>">
                <a href="<?= base_url('kabag_marketing/identitas/myprofile') ?>"
                    aria-expanded="<?php echo $this->uri->segment(2) == 'identitas' ? '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-user">
                            <path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path>
                            <circle cx="12" cy="7" r="4"></circle>
                        </svg>
                        <span>Identitas</span>
                    </div>
                </a>
            </li>
            <!-- Menu Dokumentasi -->
            <li class="menu <?php echo $this->uri->segment(3) == 'dokumentasi' ? 'active' : '' ?>">
                <a href="<?= base_url('arisan/dokumentasi') ?>"
                    aria-expanded="<?php echo $this->uri->segment(3) == 'dokumentasi' ? '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-book">
                            <path d="M4 19.5A2.5 2.5 0 0 1 6.5 17H20"></path>
                            <path d="M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"></path>
                        </svg>
                        <span>Documentation</span>
                    </div>
                </a>
            </li>
            <!-- Logout -->
            <li class="menu">
                <a href="<?= base_url('logout') ?>" aria-expanded="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-log-out">
                            <path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"></path>
                            <polyline points="16 17 21 12 16 7"></polyline>
                            <line x1="21" y1="12" x2="9" y2="12"></line>
                        </svg>
                        <span>Keluar</span>
                    </div>
                </a>
            </li>
        </ul>

    </nav>
</div>