<aside class="main-sidebar sidebar-dark-primary elevation-4">
  <!-- Brand Logo -->
  <a href="../../index3.html" class="brand-link">
    <img src="<?= base_url() ?>assets/dist/img/AdminLTELogo.png" class="brand-image img-circle elevation-3" style="opacity: .8">
    <span class="brand-text font-weight-light">DESA SROYO</span>
  </a>

  <!-- Sidebar -->
  <div class="sidebar">
    <!-- Sidebar user panel (optional) -->
    <!-- Sidebar Menu -->
    <nav class="mt-2">
      <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
        <li class="nav-item menu-open">
          <a href="<?= base_url() ?>tambah_ruta" class="nav-link">TAMBAH RUTA</a>
        </li>
        <?php if ($pengguna['role_id'] != 1) : ?>
          <li class="nav-item menu-open">
            <a href="<?= base_url() ?>dashboard" class="nav-link ">
              <i class="nav-icon fas fa-tachometer-alt"></i>
              <p>
                Dashboard
              </p>
            </a>
          </li>
        <?php endif ?>
        <li class="nav-item menu-open">
          <a href="#" class="nav-link ">
            <i class="nav-icon fab fa-houzz"></i>
            <p>
              Kelola Rumah Tangga
              <i class="right fas fa-angle-left"></i>
            </p>
          </a>
          <ul class="nav nav-treeview">
            <li class="nav-item">
              <a href="<?= base_url() ?>kelola_ruta_kk" class="nav-link ">
                <i class="fas fa-house-user nav-icon"></i>
                <p>Kartu Keluarga</p>
              </a>
            </li>
            <li class="nav-item">
              <a href="<?= base_url() ?>kelola_ruta_agt" class="nav-link">
                <i class="fas fa-id-card-alt nav-icon"></i>
                <p>Anggota Rumah Tangga</p>
              </a>
            </li>
          </ul>
        </li>
        <li class="nav-item menu-open">
          <a href="<?= base_url() ?>kelola_pengguna" class="nav-link ">
            <i class="nav-icon fas fa-user-cog"></i>
            <p>
              Kelola Pengguna
            </p>
          </a>
        </li>
      </ul>
    </nav>
    <!-- /.sidebar-menu -->
  </div>
  <!-- /.sidebar -->
</aside>

<!-- Content Wrapper. Contains page content -->