
        <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 ps-">
                <div class="d-flex align-items-center ms-n3">
                  <div style="padding-bottom: 20px;">
                    <img src="assets/images/ic-ldu-only.png" style="width: 100px; margin-top: 20px;">
                  </div>
                  <div class="ms-2">
                    <p class="mt-0 mb-1" style="font-size: 18px; font-weight: 700; color: #0249ac;">LDU Digital</p>
                    <p class="my-0" style="font-size: 16px; font-weight: 500; color: #f89619;">Network</p>
                  </div>
                </div>
              </div>
            </a>

            <a id="hide_sidebar" 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>


            <li class="menu-item 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 if(
              getAccessMenu(5,"is_create", session()->get('role_id'))   ||
              getAccessMenu(5,"is_read", session()->get('role_id'))  
            ): ?>
            <li class="menu-item menu-item-payment">
              <a href="javascript:void(0);" class="menu-link menu-toggle">
                <i class="menu-icon tf-icons bx bx-dollar-circle"></i>
                <div data-i18n="Form Elements">Pembayaran</div>
              </a>
              <ul class="menu-sub">

                <?php if(
                  getAccessMenu(5,"is_read", session()->get('role_id'))  
                ): ?>
                <li class="menu-item menu-item-payment-history">
                  <a href="<?= base_url() ?>#payment/payment-history" class="menu-link">
                    <div data-i18n="Input groups">History Pembayaran</div>
                  </a>
                </li>
                <?php endif; ?>

                <?php if(
                  getAccessMenu(5,"is_create", session()->get('role_id')) 
                ): ?>
                <li class="menu-item menu-item-village">
                  <a href="<?= base_url() ?>payment/add" class="menu-link">
                    <div data-i18n="Input groups">Tambah Pembayaran</div>
                  </a>
                </li>
              <?php endif; ?>

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


            <?php if(getAccessMenu(8,"is_read", session()->get('role_id'))): ?>
            <li class="menu-item menu-item-out">
              <a href="<?= base_url() ?>#out" class="menu-link">
                <i class="menu-icon tf-icons bx bx-receipt"></i>
                <div data-i18n="Analytics">Pengeluaran</div>
              </a>
            </li>
            <?php endif; ?>


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



            <?php if(getAccessMenu(4,"is_read", session()->get('role_id'))): ?>
            <li class="menu-item menu-item-customer">
              <a href="<?= base_url() ?>#customer" class="menu-link">
                <i class="menu-icon tf-icons bx bx-user-pin"></i>
                <div data-i18n="Analytics">Pelanggan</div>
              </a>
            </li> 
            <?php endif; ?>



            <?php if(getAccessMenu(3,"is_read", session()->get('role_id'))): ?>
            <li class="menu-item menu-item-package">
              <a href="<?= base_url() ?>#package" class="menu-link">
                <i class="menu-icon tf-icons bx bx-category"></i>
                <div data-i18n="Analytics">Paket Internet</div>
              </a>
            </li> 
            <?php endif; ?>





            <?php if( getAccessMenu(2,"is_read", session()->get('role_id')) ): ?>
            <li class="menu-item menu-item-area">
              <a href="javascript:void(0);" class="menu-link menu-toggle">
                <i class="menu-icon tf-icons bx bx-map"></i>
                <div data-i18n="Form Elements">Daerah</div>
              </a>
              <ul class="menu-sub">

                <li class="menu-item menu-item-subdistrict">
                  <a href="<?= base_url() ?>#area/subdistrict" class="menu-link">
                    <div data-i18n="Input groups">Kecamatan</div>
                  </a>
                </li>

                <li class="menu-item menu-item-village">
                  <a href="<?= base_url() ?>#area/village" class="menu-link">
                    <div data-i18n="Input groups">Desa</div>
                  </a>
                </li>

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




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



            <?php if(getAccessMenu(8,"is_read", session()->get('role_id'))): ?>
            <li class="menu-item menu-item-user">
              <a href="<?= base_url() ?>#user" 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(session()->get('role_id')==1): ?>
            <li class="menu-item menu-item-role">
              <a href="<?= base_url() ?>#role" class="menu-link ">
                <i class="menu-icon tf-icons bx bx-id-card"></i>
                <div data-i18n="Analytics">Role</div>
              </a>
            </li>
            <?php endif; ?>


            <li class="menu-item menu-item-setting">
              <a href="javascript:void(0);" class="menu-link menu-toggle">
                <i class="menu-icon tf-icons bx bx-cog"></i>
                <div data-i18n="Form Elements">Pengaturan</div>
              </a>
              <ul class="menu-sub">

              <?php if(getAccessMenu(0,"is_read", session()->get('role_id'))): ?>
                <!-- <li class="menu-item menu-item-manage">
                  <a href="<?= base_url() ?>#setting/manage" class="menu-link">
                    <div data-i18n="Input groups">Kelola Akses</div>
                  </a>
                </li> -->
              <?php endif; ?>

                <li class="menu-item menu-item-info">
                  <a href="<?= base_url() ?>#setting/info" class="menu-link">
                    <div data-i18n="Input groups">Informasi & Bantuan</div>
                  </a>
                </li>
              </ul>
            </li>



            <?php if(getAccessMenu(0,"is_read", session()->get('role_id'))): ?>
            <!-- <li class="menu-item menu-item-history">
              <a href="javascript:void(0)" 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 -->