

  <!-- Left side column. contains the sidebar -->

  <aside class="main-sidebar">

    <!-- sidebar: style can be found in sidebar.less -->

    <section class="sidebar">

      <!-- Sidebar user panel -->

      <div class="user-panel">

        <div class="pull-left image">

          <?php 

            if ($session->get('level')=='User'){

              $img = assets().'icons/visitor.png';

            }else{

              $img = assets().'icons/admin.png';

            }

          ?>

          <img src="<?=$img?>" class="img-circle" alt="User Image">

        </div>

        <div class="pull-left info">

          <p><?=$session->get("nm_pengguna")?> [<?=$session->get("level")?>]</p>

          <a href="#"><i class="fa fa-circle text-success"></i> Online</a>

        </div>

      </div>

      <!-- search form -->

      <form action="#" method="get" class="sidebar-form">

        <div class="input-group">

          <input type="text" name="q" class="form-control" placeholder="Search...">

          <span class="input-group-btn">

                <button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i>

                </button>

              </span>

        </div>

      </form>

      <!-- /.search form -->

      <!-- sidebar menu: : style can be found in sidebar.less -->

      <ul class="sidebar-menu" data-widget="tree">

        <li class="header">MAIN NAVIGATION</li>

        <li>

          <a href="<?=url('beranda')?>">

            <i class="fa fa-dashboard"></i> <span>Beranda</span>

          </a>

        </li>

        

        <li class="treeview">

          <a href="#">

            <i class="fa fa-folder"></i>

            <span>Master Data</span>

            <span class="pull-right-container">

              <i class="fa fa-angle-left pull-right"></i>

            </span>

          </a>

          <ul class="treeview-menu">

            <?php if ($session->get('level')=='Admin'): ?>

            <li><a href="<?=url('koordinat')?>"><i class="fa fa-circle-o"></i> Titik Koordinat</a></li>

            <?php endif ?>

            <li><a href="<?=url('kecamatan')?>"><i class="fa fa-circle-o"></i> Data Kecamatan</a></li>

            <li><a href="<?=url('desa')?>"><i class="fa fa-circle-o"></i> Data Kelurahan/Desa</a></li>

            <li><a href="<?=url('alsintan')?>"><i class="fa fa-circle-o"></i> Data Alsintan</a></li>

            <li><a href="<?=url('irigasi')?>"><i class="fa fa-circle-o"></i> Data Irigasi</a></li>

            <li><a href="<?=url('jutani')?>"><i class="fa fa-circle-o"></i> Jalan Usaha Tani</a></li>

            <li><a href="<?=url('sawah')?>"><i class="fa fa-circle-o"></i> Data Sawah</a></li>

          </ul>

        </li>



        <li class="treeview">

          <a href="#">

            <i class="fa fa-map"></i>

            <span>Peta</span>

            <span class="pull-right-container">

              <i class="fa fa-angle-left pull-right"></i>

            </span>

          </a>

          <ul class="treeview-menu">

            <li><a href="<?=url('leaflet-standar')?>"><i class="fa fa-circle-o"></i>Cari Peta</a></li>

            <li><a href="<?=url('batas-kabupaten')?>"><i class="fa fa-circle-o"></i>Batas Kabupaten</a></li>



            <?php if ($session->get('level')!='User'): ?>

            <li><a href="<?=url('batas-kecamatan')?>"><i class="fa fa-circle-o"></i>Batas Kecamatan</a></li>

            <li><a href="<?=url('batas-desa')?>"><i class="fa fa-circle-o"></i>Batas Desa</a></li>

            <?php endif ?>

            <li><a href="<?=url('leaflet-point')?>"><i class="fa fa-circle-o"></i>Point Alsintan</a></li>

            <li><a href="<?=url('batas-irigasi')?>"><i class="fa fa-circle-o"></i>Batas irigasi</a></li>

            <li><a href="<?=url('batas-sawah')?>"><i class="fa fa-circle-o"></i>Batas Sawah</a></li>

            <li><a href="<?=url('batas-jut')?>"><i class="fa fa-circle-o"></i>Jalan Usaha Tani</a></li>

            <li><a href="<?=url('jalan-kabupaten')?>"><i class="fa fa-circle-o"></i>Jalan Kabupaten</a></li>

            <li><a href="<?=url('peta-seluruh')?>"><i class="fa fa-circle-o"></i>Peta Keseluruhan</a></li>

            



          </ul>

        </li>

        <?php if ($session->get('level')!='User'): ?>

        <li>

          <a href="<?=url('logout')?>" onclick="return confirm('Anda yakin mau logout ?');">

            <i class="fa fa-sign-out"></i> <span>Keluar</span>

          </a>

        </li>

        <?php endif ?>        

      </ul>

    </section>

    <!-- /.sidebar -->

  </aside>

