 <!-- Sidebar Menu -->  
      <nav class="mt-2">
        <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
  
          <!-- Add icons to the links using the .nav-icon class 
               with font-awesome or any other icon font library -->
  
          <li class="nav-item">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-tachometer-alt"></i>
              <p>
                Administración
                <i class="right fas fa-angle-left"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
              <li class="nav-item">
                <a href="<?php echo base_url('Usuarios/index'); ?>" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Usuarios</p>
                </a>
              </li>
            </ul>
          </li>
  
          <li class="nav-item menu-open">
              
            <a href="#" class="nav-link active">
              <i class="nav-icon far fa-plus-square"></i>
              <p>
                Servicios y UPAS
                <i class="fas fa-angle-left right"></i>
              </p>
            </a>
            
            <ul class="nav nav-treeview">
              <li class="nav-item">
                <a href="#" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>
                    Servicios
                    <i class="fas fa-angle-left right"></i>
                  </p>
                </a>
                <ul class="nav nav-treeview">
                  <li class="nav-item">
                    <a href="<?php echo base_url('red_agua_potable'); ?>" class="nav-link">
                      <i class="far fa-circle nav-icon"></i>
                      <p>Red de Agua Potable</p>
                    </a>
                  </li>
                  <li class="nav-item">
                    <a href="<?php echo base_url('red_alcantarillado'); ?>" class="nav-link">
                      <i class="far fa-circle nav-icon"></i>
                      <p>Red de Alcantarillado</p>
                    </a>
                  </li>
                  
                    <li class="nav-item">
                    <a href="<?php echo base_url('medidores'); ?>" class="nav-link">
                      <i class="far fa-circle nav-icon"></i>
                      <p>Medidores</p>
                    </a>
                  </li>
                 
                  <li class="nav-item">
                    <a href="<?php echo base_url('camaras'); ?>" class="nav-link">
                      <i class="far fa-circle nav-icon"></i>
                      <p>Camaras</p>
                    </a>
                  </li>
                  <li class="nav-item">
                    <a href="<?php echo base_url('valvulas'); ?>" class="nav-link">
                      <i class="far fa-circle nav-icon"></i>
                      <p>Vavulas</p>
                    </a>
                  </li>

                </ul>
              </li>
              <li class="nav-item">
                <a href="#" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>
                    UPAS
                    <i class="fas fa-angle-left right"></i>
                  </p>
                </a>
                <ul class="nav nav-treeview">
                  <li class="nav-item">
                    <a href="<?php echo base_url('predios'); ?>" class="nav-link">
                      <i class="far fa-circle nav-icon"></i>
                      <p>Predios</p>
                    </a>
                  </li>                    
                  <li class="nav-item">
                    <a href="<?php echo base_url('otbs'); ?>" class="nav-link">
                      <i class="far fa-circle nav-icon"></i>
                      <p>OTBS</p>
                    </a>
                  </li>                    

                  <li class="nav-item">
                    <a href="#" class="nav-link">
                      <i class="far fa-circle nav-icon"></i>
                      <p>Manzanas</p>
                    </a>
                  </li>
                  <li class="nav-item">
                    <a href="#" class="nav-link">
                      <i class="far fa-circle nav-icon"></i>
                      <p>Distritos</p>
                    </a>
                  </li>

                </ul>
              </li>              
            </ul>
          </li>

          <li class="nav-header">MISCELLANEOUS</li>
          <li class="nav-item">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-ellipsis-h"></i>
              <p>Tabbed IFrame Plugin</p>
            </a>
          </li>
          <li class="nav-item">
            <a href="https://jameuge.com" class="nav-link">
              <i class="nav-icon fas fa-circle"></i>
              <p>www.jameuge.com</p>
            </a>
          </li>
          <li class="nav-item">
            <a href="#" onclick="cerrarSesion()" class="nav-link">
              <i class="far fa-circle nav-icon text-danger"></i>
              <p>Salir</p>
            </a>
          </li>

        </ul>
      </nav>

<script type="text/javascript">
//import Swal from 'sweetalert2';
function cerrarSesion(){
	//use /var/www/html/sgcat1/assets/plugins/sweetalert2/sweetalert2.all.min.js;
	
    //alert('prueba');
	Swal.fire('Ejemplo basico de Sweet Alert 2');
    
	Swal.fire({
    	title: 'Quiere salir',
    	text: 'Fin de la sección',
    	icon: 'warning',
    	showCancelButton: true,
    	cancelButtonColor: '#d33',
        confirmButtonText: 'Si, Salir' 
    }).then((result) => {
    	if (result.isConfirmed) {
    		window.location.href = "<?php echo base_url('Login/cerrarSesion'); ?>";
        }
    })
    
    //alert('final javascript');
}
</script>