
        <aside id="layout-menu" class="layout-menu menu-vertical menu bg-menu-theme">
          <div class="app-brand demo">
            <a href="javascript:void(0)" class="app-brand-link">
              <div class="w-100 d-flex align-items-end">
                <img src="assets/images/eve.jpeg" style="width: 190px; margin-right: 7px;">
                <!-- <h3 class="card-title p-0 m-0" style="font-weight: 700; font-size: 30px;">
                  <span style="color: #b31a4a;">Re</span>
                  <span style="color: #285a98; margin-left: -8px;">Teech</span>
                </h3> -->
              </div>
            </a>

            <a href="javascript:void(0);" class="layout-menu-toggle menu-link text-large ms-auto d-block d-xl-none">
              <i class="bx bx-chevron-left bx-sm align-middle"></i>
            </a>
          </div>

          <div class="menu-inner-shadow"></div>

          <ul class="menu-inner py-3">
            

            <li class="menu-header small text-uppercase">
              <span class="menu-header-text">Main</span>
            </li>


            <?php if(getAccessMenu(1,"access_read", session()->get('id'))): ?>
            <li class="menu-item active menu-item-dashboard">
              <a href="<?= base_url() ?>" class="menu-link">
                <i class="menu-icon tf-icons bx bx-home-circle"></i>
                <div data-i18n="Analytics">Dashboard</div>
              </a>
            </li>
            <?php endif; ?>


            <?php if(getAccessMenu(12,"access_read", session()->get('id'))): ?>
            <li class="menu-item active menu-item">
              <a href="<?= base_url() ?>#sale" class="menu-link">
                <i class="menu-icon tf-icons bx bx-cart"></i>
                <div data-i18n="Analytics">Penjualan</div>
              </a>
            </li>
            <?php endif; ?>


            <?php if(getAccessMenu(11,"access_read", session()->get('id'))): ?>
            <li class="menu-item active menu-item">
              <a href="<?= base_url() ?>" class="menu-link">
                <i class="menu-icon tf-icons bx bx-coin-stack"></i>
                <div data-i18n="Analytics">Pembelian</div>
              </a>
            </li>
            <?php endif; ?>


            <?php if(getAccessMenu(2,"access_read", session()->get('id'))||getAccessMenu(3,"access_read", session()->get('id'))||getAccessMenu(4,"access_read", session()->get('id'))): ?>
            <li class="menu-item">
              <a href="javascript:void(0);" class="menu-link menu-toggle">
                <i class="menu-icon tf-icons bx bx-detail"></i>
                <div data-i18n="Form Elements">Laporan Penjualan</div>
              </a>
              <ul class="menu-sub">

                <?php if(getAccessMenu(2,"access_read", session()->get('id'))): ?>
                <li class="menu-item">
                  <a href="forms-basic-inputs.html" class="menu-link">
                    <div data-i18n="Basic Inputs">Minguan</div>
                  </a>
                </li>
                <?php endif; ?>

                <?php if(getAccessMenu(3,"access_read", session()->get('id'))): ?>
                <li class="menu-item">
                  <a href="forms-input-groups.html" class="menu-link">
                    <div data-i18n="Input groups">Bulanan</div>
                  </a>
                </li>
                <?php endif; ?>


                <?php if(getAccessMenu(4,"access_read", session()->get('id'))): ?>
                <li class="menu-item">
                  <a href="forms-input-groups.html" class="menu-link">
                    <div data-i18n="Input groups">Tahunan</div>
                  </a>
                </li>
              <?php endif; ?>

              </ul>
            </li>
            <?php endif; ?>



            <?php if(getAccessMenu(14,"access_read", session()->get('id'))||getAccessMenu(15,"access_read", session()->get('id'))||getAccessMenu(16,"access_read", session()->get('id'))): ?>
            <li class="menu-item">
              <a href="javascript:void(0);" class="menu-link menu-toggle">
                <i class="menu-icon tf-icons bx bx-detail"></i>
                <div data-i18n="Form Elements">Laporan Pembelian</div>
              </a>
              <ul class="menu-sub">

                <?php if(getAccessMenu(14,"access_read", session()->get('id'))): ?>
                <li class="menu-item">
                  <a href="forms-basic-inputs.html" class="menu-link">
                    <div data-i18n="Basic Inputs">Minguan</div>
                  </a>
                </li>
                <?php endif; ?>

                <?php if(getAccessMenu(15,"access_read", session()->get('id'))): ?>
                <li class="menu-item">
                  <a href="forms-input-groups.html" class="menu-link">
                    <div data-i18n="Input groups">Bulanan</div>
                  </a>
                </li>
                <?php endif; ?>


                <?php if(getAccessMenu(16,"access_read", session()->get('id'))): ?>
                <li class="menu-item">
                  <a href="forms-input-groups.html" class="menu-link">
                    <div data-i18n="Input groups">Tahunan</div>
                  </a>
                </li>
              <?php endif; ?>

              </ul>
            </li>
            <?php endif; ?>



            <li class="menu-header small text-uppercase">
              <span class="menu-header-text">Master Data</span>
            </li>



            <?php if(getAccessMenu(5,"access_read", session()->get('id'))): ?>
            <li class="menu-item menu-item-good">
              <a href="<?= base_url() ?>#good" class="menu-link">
                <i class="menu-icon tf-icons bx bx-package"></i>
                <div data-i18n="Analytics">Produk</div>
              </a>
            </li> 
            <?php endif; ?>



            <?php if(getAccessMenu(6,"access_read", session()->get('id'))): ?>
            <li class="menu-item menu-item-category">
              <a href="<?= base_url() ?>#category" class="menu-link">
                <i class="menu-icon tf-icons bx bx-category"></i>
                <div data-i18n="Analytics">Kategori</div>
              </a>
            </li> 
            <?php endif; ?>



            <?php if(getAccessMenu(7,"access_read", session()->get('id'))): ?>
            <li class="menu-item menu-item-unit">
              <a href="<?= base_url() ?>#unit" class="menu-link">
                <i class="menu-icon tf-icons bx bx-minus-front"></i>
                <div data-i18n="Analytics">Satuan</div>
              </a>
            </li> 
            <?php endif; ?>



            <?php if(getAccessMenu(10,"access_read", session()->get('id'))): ?>
            <!-- <li class="menu-item menu-item-history">
              <a href="<?= base_url() ?>#history" class="menu-link">
                <i class="menu-icon tf-icons bx bx-user"></i>
                <div data-i18n="Analytics">Pelanggan</div>
              </a>
            </li>  -->
            <?php endif; ?>

            <li class="menu-header small text-uppercase">
              <span class="menu-header-text">Lainya</span>
            </li>



            <?php if(getAccessMenu(8,"access_read", session()->get('id'))): ?>
            <li class="menu-item ">
              <a href="javascript:void(0)" class="menu-link">
                <i class="menu-icon tf-icons bx bx-group"></i>
                <div data-i18n="Analytics">Pengguna</div>
              </a>
            </li>
            <?php endif; ?>


            <?php if(getAccessMenu(9,"access_read", session()->get('id'))): ?>
            <li class="menu-item ">
              <a href="javascript:void(0)" class="menu-link">
                <i class="menu-icon tf-icons bx bx-id-card"></i>
                <div data-i18n="Analytics">Role</div>
              </a>
            </li>
            <?php endif; ?>


            <?php if(getAccessMenu(0,"access_read", session()->get('id'))): ?>
            <li class="menu-item ">
              <a href="javascript:void(0)" class="menu-link">
                <i class="menu-icon tf-icons bx bx-cog"></i>
                <div data-i18n="Analytics">Setting</div>
              </a>
            </li>
            <?php endif; ?>



            <?php if(getAccessMenu(13,"access_read", session()->get('id'))): ?>
            <li class="menu-item menu-item-history">
              <a href="<?= base_url() ?>#history" class="menu-link">
                <i class="menu-icon tf-icons bx bx-history"></i>
                <div data-i18n="Analytics">Aktivitas</div>
              </a>
            </li> 
            <?php endif; ?>

            <li class="menu-item ">
              <a href="<?= base_url() ?>auth/logout" class="menu-link btn-logout">
                <i class="menu-icon tf-icons bx bx-log-out"></i>
                <div data-i18n="Analytics">Logout</div>
              </a>
            </li>

          </ul>
        </aside>
        <!-- / Menu -->