<body class="hold-transition sidebar-mini">
<div class="wrapper">
  <!-- Navbar -->
  <nav class="main-header navbar navbar-expand navbar-white navbar-light">
    <!-- Left navbar links -->
    <ul class="navbar-nav">
      <li class="nav-item">
        <a class="nav-link" data-widget="pushmenu" href="#"><i class="fas fa-bars"></i></a>
      </li>
      <li class="nav-item d-none d-sm-inline-block">
        <a href="<?php echo base_url() ?>dashboard" class="nav-link">Home</a>
      </li>
      <li class="nav-item d-none d-sm-inline-block">
        <a href="<?php echo base_url() ?>contacto" class="nav-link">Contacto</a>
      </li>
    </ul>

    <!-- SEARCH FORM -->
    <form class="form-inline ml-3">
      <div class="input-group input-group-sm">
        <input class="form-control form-control-navbar" type="search" placeholder="Search" aria-label="Search">
        <div class="input-group-append">
          <button class="btn btn-navbar" type="submit">
            <i class="fas fa-search"></i>
          </button>
        </div>
      </div>
    </form>

    <!-- Right navbar links -->
    <ul class="navbar-nav ml-auto">
      <!-- Messages Dropdown Menu -->
      <li class="nav-item dropdown">
        <a class="nav-link" data-toggle="dropdown" href="#">
          <i class="fas fa-user"></i>
          
        </a>
        <div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
        <?php
        if (($this->session->userdata('rol')) == SUPERADMIN)  {
        ?>
        <a href="<?=site_url('usuario')?>" class="dropdown-item">
            <!-- Message Start -->
            <div class="media">
             
              <div class="media-body">
                <h3 class="dropdown-item-title">
                  Gestión de Usuarios
                  <span class="float-right text-sm text-muted"><i class="fa fa-users"></i></span>
                </h3>
            
              </div>
            </div>
            <!-- Message End -->
          </a>
        <?php
        }
        ?>
          <div class="dropdown-divider"></div>
          <a href="<?=site_url('usuario/change_password')?>" class="dropdown-item">
            <!-- Message Start -->
            <div class="media">
             
              <div class="media-body">
                <h3 class="dropdown-item-title">
                  Cambiar Contraseña
                  <span class="float-right text-sm text-muted"><i class="fa fa-lock"></i></span>
                </h3>
            
              </div>
            </div>
            <!-- Message End -->
          </a>
          <div class="dropdown-divider"></div>
          <a href="<?=site_url('usuarios_online')?>" class="dropdown-item">
            <!-- Message Start -->
            <div class="media">
             
              <div class="media-body">
                <h3 class="dropdown-item-title">
                  Usuarios Online
                  <span class="float-right text-sm text-muted"><i class="fa fa-user-clock"></i></span>
                </h3>
            
              </div>
            </div>
            <!-- Message End -->
          </a>
          <div class="dropdown-divider"></div>
              <h3 class="dropdown-item-title">
                  <a href="<?=site_url('login/logout')?>"" class="dropdown-item dropdown-footer"> Salir
                  <span class="float-right text-sm text-danger"><i class="fas fa-sign-out-alt"></i></span>
                  </a>
              </h3>
          
        </div>
      </li>
      
    </ul>
  </nav>
  <!-- /.navbar -->