  <header class="main-header">

    <!-- Logo -->

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

      <!-- mini logo for sidebar mini 50x50 pixels -->

      <span class="logo-mini"><b>G</b>IS</span>

      <!-- logo for regular state and mobile devices -->

      <span class="logo-lg"><b>GIS</b> BatuBara</span>

    </a>

    <!-- Header Navbar: style can be found in header.less -->

    <nav class="navbar navbar-static-top" style="background: url('assets/icons/headers.jpg') center center no-repeat;background-size: cover;">

      <!-- Sidebar toggle button-->

      <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">

        <span class="sr-only">Toggle navigation</span>

        <span class="icon-bar"></span>

        <span class="icon-bar"></span>

        <span class="icon-bar"></span>

      </a>



      <div class="navbar-custom-menu">

        <ul class="nav navbar-nav">

          <li class="dropdown user user-menu">

            <a href="#" class="dropdown-toggle" data-toggle="dropdown">

              <?php 

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

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

                }else{

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

                }

              ?>



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

              <span class="hidden-xs"><?=$session->get("nm_pengguna")?></span>

            </a>



            <ul class="dropdown-menu">

              <li class="user-footer">

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

                <div class="pull-right">

                  <a href="<?=url('logout')?>" class="btn btn-default btn-flat">Keluar</a>

                </div>

                <div class="pull-left">

                  <a href="<?=url('gantipass')?>" class="btn btn-default btn-flat">Ganti Password</a>

                </div>

                <?php endif ?>

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

                <div class="pull-right">

                  <a href="<?=url('login')?>" class="btn btn-default btn-flat">Administrator</a>

                </div>

                <?php endif ?>

              </li>

            </ul>

            



          </li>

        </ul>

      </div>

    </nav>

  </header>

