 
<?php 
session_start();
require_once ("../../config/Cado.php");
	
$user =  $_SESSION['usuario_nombre'];
$con_user = strlen($user);

if($con_user>20){
	$nomuser =  substr($user,0,20); 
	$nomuser = $nomuser.'...'; 
}else{
	$nomuser = $user;
}
 
 ?>
 
 <!-- Main Sidebar Container -->
  <aside class="main-sidebar sidebar-dark-default elevation-4">
    <!-- Brand Logo -->
    <a href="?app=base" class="brand-link">
      <img src="../../admin/dist/img/AdminLTELogo.png" alt="AdminLTE Logo" class="brand-image img-circle elevation-3"
           style="opacity: .8">
      <span class="brand-text font-weight-light text-white">INFOSISPE</span>
    </a>

    <!-- Sidebar -->
    <div class="sidebar">
      <!-- Sidebar user panel (optional) -->
      <div class="user-panel mt-3 pb-3 mb-3 d-flex">
        <div class="image">
          <img src="../../imagenes/logo_<?php echo $numero;?>.png" class="img-circle elevation-2" alt="User Image">
        </div>
        <div class="info">
          <a href="javascript:void(0);" class="d-block text-white"><?php echo $nomuser; ?></a>
        </div>
      </div>

      <!-- 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="?app=base" class="nav-link bg-danger">
              <i class="nav-icon fas fa-tachometer-alt"></i>
              <p>
                PRINCIPAL
              </p>
            </a>
          </li>
		  
		   <?php if ($_SESSION['usuariogrupo_id']=='6'){
			   
		   }else if ($_SESSION['usuariogrupo_id']=='2'){
			   
		   }else if ($_SESSION['usuariogrupo_id']=='3'){
			   
		   }else if ($_SESSION['usuariogrupo_id']=='4'){ 
		   
		   }else{
		?>
  
		   <li class="nav-item">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-cogs"></i>
              <p>
                MANTENIMIENTO
                <i class="right fas fa-angle-left"></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>
                    General
                    <i class="right fas fa-angle-left"></i>
                  </p>
                </a>
                <ul class="nav nav-treeview">
                  <li class="nav-item">
                    <a href="?app=empresa" class="nav-link">
                      <i class="far fa-dot-circle nav-icon text-primary"></i>
                      <p>Empresa</p>
                    </a>
                  </li>
                  <li class="nav-item">
                    <a href="?app=modulo" class="nav-link">
                      <i class="far fa-dot-circle nav-icon text-primary"></i>
                      <p>Modulo</p>
                    </a>
                  </li>
                  <li class="nav-item">
                    <a href="?app=impresora" class="nav-link">
                      <i class="far fa-dot-circle nav-icon text-green"></i>
                      <p>Impresora</p>
                    </a>
                  </li>
				  <li class="nav-item">
                    <a href="?app=documento" class="nav-link">
                      <i class="far fa-dot-circle nav-icon text-green"></i>
                      <p>Tipo documento</p>
                    </a>
                  </li>
				  <li class="nav-item">
                    <a href="?app=talonario" class="nav-link">
                      <i class="far fa-dot-circle nav-icon text-red"></i>
                      <p>Talonario</p>
                    </a>
                  </li>
                </ul>
              </li>
              
			   <li class="nav-item has-treeview">
                <a href="#" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>
                    Sucursal
                    <i class="right fas fa-angle-left"></i>
                  </p>
                </a>
                <ul class="nav nav-treeview">
                  <li class="nav-item">
                    <a href="?app=puntoventa" class="nav-link">
                      <i class="far fa-dot-circle nav-icon text-yellow"></i>
                      <p>Punto Venta</p>
                    </a>
                  </li>
                  <li class="nav-item">
                    <a href="?app=piso" class="nav-link">
                      <i class="far fa-dot-circle nav-icon text-primary"></i>
                      <p>Piso</p>
                    </a>
                  </li>
                  <li class="nav-item">
                    <a href="?app=almacen" class="nav-link">
                      <i class="far fa-dot-circle nav-icon text-red"></i>
                      <p>Almacen</p>
                    </a>
                  </li>		 
                </ul>
              </li>
			  	     
			   <li class="nav-item has-treeview">
                <a href="#" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>
                    Caja
                    <i class="right fas fa-angle-left"></i>
                  </p>
                </a>
                <ul class="nav nav-treeview">
                  <li class="nav-item">
                    <a href="?app=tipocambio" class="nav-link">
                      <i class="far fa-dot-circle nav-icon text-info"></i>
                      <p>Tipo Cambio</p>
                    </a>
                  </li>
                  <li class="nav-item">
                    <a href="?app=caja" class="nav-link">
                      <i class="far fa-dot-circle nav-icon text-info"></i>
                      <p>Caja</p>
                    </a>
                  </li>
                  <li class="nav-item">
                    <a href="?app=moneda" class="nav-link">
                      <i class="far fa-dot-circle nav-icon text-red"></i>
                      <p>Moneda</p>
                    </a>
                  </li>	
				  
				  <li class="nav-item">
                    <a href="?app=cuentatipo" class="nav-link">
                      <i class="far fa-dot-circle nav-icon text-red"></i>
                      <p>Tipo Cuenta</p>
                    </a>
                  </li>	
					<li class="nav-item">
                    <a href="?app=cuentas" class="nav-link">
                      <i class="far fa-dot-circle nav-icon text-success"></i>
                      <p>Cuenta</p>
                    </a>
                  </li>	

				 <li class="nav-item">
                    <a href="?app=banco" class="nav-link">
                      <i class="far fa-dot-circle nav-icon text-success"></i>
                      <p>Banco</p>
                    </a>
                  </li>	
				  
                </ul>
              </li>
			
			  
			  <li class="nav-item">
                <a href="?app=empresa" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Empresa</p>
                </a>
              </li>
			  
			  <li class="nav-item">
                <a href="?app=usuario" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Usuarios</p>
                </a>
              </li>
			  
			  
			   <li class="nav-item">
                <a href="?app=historial" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Historial</p>
                </a>
              </li>
			  
			   <li class="nav-item">
                <a href="?app=configuracion" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Configuracion</p>
                </a>
              </li>
			  
            </ul>
          </li>
		   
		<?php 
		}
	?>
	
	
	
	 <?php if ($_SESSION['usuariogrupo_id']=='6'){
			   
		   }else if ($_SESSION['usuariogrupo_id']=='3'){
			   
		   }else if ($_SESSION['usuariogrupo_id']=='4'){ 
		   
		   }else{
		?>
          <li class="nav-item has-treeview">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-edit"></i>
              <p>
                MANT. INTERNO
                <i class="right fas fa-angle-left"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
              <li class="nav-item">
                <a href="?app=producto" class="nav-link">
                  <i class="fa fa-square nav-icon text-success"></i>
                  <p>Articulo</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="?app=articulotipo" class="nav-link">          
				  <i class="fas fa-dolly nav-icon text-success"></i>				  
                  <p>Tipos Articulo</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="?app=categoria" class="nav-link">
                  <i class="fa fa-cube nav-icon text-success"></i>
                  <p>Categoria</p>
                </a>
              </li>
			   <li class="nav-item">
                <a href="?app=marca" class="nav-link">
                  <i class="fas fa-circle nav-icon text-success"></i>
                  <p>Marca</p>
                </a>
              </li>
			   <li class="nav-item">
                <a href="?app=unidad" class="nav-link">
				  <i class="fas fa-balance-scale-right nav-icon text-success"></i>
                  <p>Unidad Medida</p>
                </a>
              </li>
			   <!--
			   <li class="nav-item">
                <a href="?app=familia" class="nav-link">
                  <i class="fa fa-th-list nav-icon text-success"></i>
                  <p>Familia</p>
                </a>
              </li>
			  -->
			  
			  <li class="nav-item">
                    <a href="?app=tipocambio" class="nav-link">
                      <i class="far fa-dot-circle nav-icon text-info"></i>
                      <p>Tipo Cambio</p>
                    </a>
                  </li>
				  
            </ul>
          </li>
		  
		  <?php 
		}
	?>
		  
		   <?php if ($_SESSION['usuariogrupo_id']=='6'){
			 ?>
			
			 <li class="nav-item">
            <a href="?app=cliente" class="nav-link">
               <i class="nav-icon fas fa-users"></i>
              <p>
                Clientes
				<span class="right badge badge-danger">New</span>
              </p>
            </a>
          </li>
		  
			<?php   
		   }else if ($_SESSION['usuariogrupo_id']=='3'){
			   
		   }else if ($_SESSION['usuariogrupo_id']=='4'){ 
		   
		   }else{
		?>
 		  
		   <li class="nav-item">
            <a href="?app=cliente" class="nav-link">
               <i class="nav-icon fas fa-address-book"></i>
              <p>
                Clientes
				<span class="right badge badge-info">New</span>
              </p>
            </a>
          </li>
		  
	<?php 
		}
	?>
	
	
	 <?php if ($_SESSION['usuariogrupo_id']=='6'){
			   
		   }else if ($_SESSION['usuariogrupo_id']=='3'){
			   
		   }else if ($_SESSION['usuariogrupo_id']=='4'){ 
		   
		   }else{
		?>
		  
		   <li class="nav-item">
            <a href="?app=proveedor" class="nav-link">
               <i class="nav-icon fas fa-handshake "></i>
              <p>
                Proveedores
				<span class="right badge badge-warning">New</span>
              </p>
            </a>
          </li>
		  
		<?php 
		}
	?>
	
	
	 <?php if ($_SESSION['usuariogrupo_id']=='6'){
			   
		   }else if ($_SESSION['usuariogrupo_id']=='3'){
			   
		   }else if ($_SESSION['usuariogrupo_id']=='4'){ 
		   
		   }else{
		?>
		   
		   <li class="nav-item">
            <a href="?app=venta" class="nav-link bg-success">
               <i class="nav-icon fas fa-shopping-cart"></i>
              <p>
                Ventas
				<span class="right badge badge-success">New</span>
              </p>
            </a>
          </li>
		  
		 <?php 
		}
	?>
	 
		  
		   <?php if ($_SESSION['usuariogrupo_id']=='6'){
			   
		   }else if ($_SESSION['usuariogrupo_id']=='3'){
			   
		   }else if ($_SESSION['usuariogrupo_id']=='4'){ 
		   
		   }else{
		?>
		  		  
		    <li class="nav-item">
            <a href="?app=compra" class="nav-link">
               <i class="nav-icon fas fa-cart-plus"></i>
              <p>
                Compras
				<span class="right badge badge-danger">New</span>
              </p>
            </a>
          </li>
		  
		 <?php 
		}
	?>
	
	
	
	
	
	
	
	
	  <?php if ($_SESSION['usuariogrupo_id']=='6'){
			  ?>
			  
			  
			   <li class="nav-header">OPERACIONES</li>
          
		   <li class="nav-item">
            <a href="?app=cotizacion" class="nav-link">
              <i class="nav-icon far fa-dot-circle"></i>
              <p>
                Modulo de Cotizaciones
              </p>
            </a>
          </li>
		  
          <li class="nav-item">
            <a href="?app=venta" class="nav-link">
              <i class="nav-icon far fa-dot-circle text-orange"></i>
              <p>
                Modulo de Ventas
              </p>
            </a>
          </li>
		  
		   <li class="nav-item">
            <a href="?app=devolucioncliente" class="nav-link">
              <i class="nav-icon far fa-dot-circle"></i>
              <p>
                Devoluciones - Clientes
              </p>
            </a>
          </li>
		  
		  <li class="nav-item">
            <a href="?app=canjeproveedor" class="nav-link">
              <i class="nav-icon far fa-dot-circle"></i>
              <p>
                Canje Letras - Proveedor
              </p>
            </a>
          </li>
		  
		   <li class="nav-item">
            <a href="?app=notacredito" class="nav-link">
              <i class="nav-icon far fa-dot-circle"></i>
              <p>
                Nota de credito
              </p>
            </a>
          </li>
		  
		  <li class="nav-item">
            <a href="?app=notadebito" class="nav-link">
              <i class="nav-icon far fa-dot-circle"></i>
              <p>
                Nota de debito
              </p>
            </a>
          </li> 
		  
		  <li class="nav-item">
            <a href="?app=guiaremision" class="nav-link">
              <i class="nav-icon far fa-dot-circle text-red"></i>
              <p>
                Guia Remision
              </p>
            </a>
          </li>
			  
		<?php 
		   }else if ($_SESSION['usuariogrupo_id']=='2'){
			  ?>

 <li class="nav-header">OPERACIONES</li>
         
		 
		  <li class="nav-item">
            <a href="?app=cotizacion" class="nav-link">
              <i class="nav-icon far fa-dot-circle"></i>
              <p>
                Modulo de Cotizaciones
              </p>
            </a>
          </li>
		  
          <li class="nav-item">
            <a href="?app=venta" class="nav-link">
              <i class="nav-icon far fa-dot-circle text-orange"></i>
              <p>
                Modulo de Ventas
              </p>
            </a>
          </li>
        <li class="nav-item">
            <a href="?app=cuentacobrar" class="nav-link">
              <i class="nav-icon far fa-dot-circle"></i>
              <p>
                Cuentas por Cobrar
              </p>
            </a>
          </li>
		
		  <li class="nav-item">
            <a href="?app=compra" class="nav-link">
              <i class="nav-icon far fa-dot-circle text-orange"></i>
              <p>
                Modulo de Compras
              </p>
            </a>
          </li>
		  <li class="nav-item">
            <a href="?app=cuentapagar" class="nav-link">
              <i class="nav-icon far fa-dot-circle"></i>
              <p>
                Cuentas por Pagar
              </p>
            </a>
          </li>
		 
		  <li class="nav-item">
            <a href="?app=devolucioncliente" class="nav-link">
              <i class="nav-icon far fa-dot-circle"></i>
              <p>
                Devoluciones - Clientes
              </p>
            </a>
          </li>
		  
		  <li class="nav-item">
            <a href="?app=canjeproveedor" class="nav-link">
              <i class="nav-icon far fa-dot-circle"></i>
              <p>
                Canje Letras - Proveedor
              </p>
            </a>
          </li>
		  
		  <li class="nav-item">
            <a href="?app=notacredito" class="nav-link">
              <i class="nav-icon far fa-dot-circle"></i>
              <p>
                Nota de credito
              </p>
            </a>
          </li>
		  
		  <li class="nav-item">
            <a href="?app=notadebito" class="nav-link">
              <i class="nav-icon far fa-dot-circle"></i>
              <p>
                Nota de debito
              </p>
            </a>
          </li> 
		  
		  <li class="nav-item">
            <a href="?app=guiaremision" class="nav-link">
              <i class="nav-icon far fa-dot-circle text-red"></i>
              <p>
                Guia Remision
              </p>
            </a>
          </li>


			<?php 			  
			
		   }else if ($_SESSION['usuariogrupo_id']=='3'){
			   
		   }else if ($_SESSION['usuariogrupo_id']=='4'){ 
		   
		   }else{
		?>
		  <li class="nav-header">OPERACIONES</li>
          
		  <li class="nav-item">
            <a href="?app=ordentrabajo" class="nav-link">
              <i class="nav-icon far fa-dot-circle"></i>
              <p>
                Orden de trabajo
              </p>
            </a>
          </li>
		  
		  
		  <li class="nav-item">
            <a href="?app=cotizacion" class="nav-link">
              <i class="nav-icon far fa-dot-circle"></i>
              <p>
                Modulo de Cotizaciones
              </p>
            </a>
          </li>
          <li class="nav-item">
            <a href="?app=venta" class="nav-link">
              <i class="nav-icon far fa-dot-circle text-orange"></i>
              <p>
                Modulo de Ventas
              </p>
            </a>
          </li>
        <li class="nav-item">
            <a href="?app=cuentacobrar" class="nav-link">
              <i class="nav-icon far fa-dot-circle"></i>
              <p>
                Cuentas por Cobrar
              </p>
            </a>
          </li>
		  <li class="nav-item">
            <a href="?app=devolucioncliente" class="nav-link">
              <i class="nav-icon far fa-dot-circle"></i>
              <p>
                Devoluciones - Clientes
              </p>
            </a>
          </li>
		  <li class="nav-item">
            <a href="?app=compra" class="nav-link">
              <i class="nav-icon far fa-dot-circle text-orange"></i>
              <p>
                Modulo de Compras
              </p>
            </a>
          </li>
		  <li class="nav-item">
            <a href="?app=cuentapagar" class="nav-link">
              <i class="nav-icon far fa-dot-circle"></i>
              <p>
                Cuentas por Pagar
              </p>
            </a>
          </li>
		  <li class="nav-item">
            <a href="?app=canjeproveedor" class="nav-link">
              <i class="nav-icon far fa-dot-circle"></i>
              <p>
                Canje Letras - Proveedor
              </p>
            </a>
          </li>
		  <li class="nav-item">
            <a href="?app=devolucionproveedor" class="nav-link">
              <i class="nav-icon far fa-dot-circle"></i>
              <p>
                Devoluciones - Proveedor
              </p>
            </a>
          </li>
		  <li class="nav-item">
            <a href="?app=notacredito" class="nav-link">
              <i class="nav-icon far fa-dot-circle"></i>
              <p>
                Nota de credito
              </p>
            </a>
          </li>
		  
		  <li class="nav-item">
            <a href="?app=notacreditopago" class="nav-link">
              <i class="nav-icon far fa-dot-circle"></i>
              <p>
                Nota de credito - Forma pago
              </p>
            </a>
          </li>
		  
		  <li class="nav-item">
            <a href="?app=notadebito" class="nav-link">
              <i class="nav-icon far fa-dot-circle"></i>
              <p>
                Nota de debito
              </p>
            </a>
          </li> 
		  
		  <li class="nav-item">
            <a href="?app=guiaremision" class="nav-link">
              <i class="nav-icon far fa-dot-circle text-red"></i>
              <p>
                Guia Remision
              </p>
            </a>
          </li>
		  
		  <li class="nav-item">
            <a href="?app=comunicacionbaja" class="nav-link">
              <i class="nav-icon far fa-dot-circle text-success"></i>
              <p>
                Comunicacion de baja
              </p>
            </a>
          </li>

 <?php 
		}
	?>


  <?php if ($_SESSION['usuariogrupo_id']=='6'){
			   
		   }else if ($_SESSION['usuariogrupo_id']=='3'){
			   
		   }else if ($_SESSION['usuariogrupo_id']=='4'){ 
		   
		   }else{
		?>
		<li class="nav-header"></li>
	
	
          <li class="nav-item has-treeview">
            <a href="#" class="nav-link">
			  <i class="nav-icon fas fa-box-open"></i>
              <p>
                ALMACEN
                <i class="right fas fa-angle-left"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
              <li class="nav-item">
                <a href="?app=traspaso" class="nav-link">
                  <i class="fas fa-circle nav-icon text-orange"></i>
                  <p>Traspaso</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="?app=notalmacen" class="nav-link">          
				  <i class="fas fa-circle nav-icon text-orange"></i>				  
                  <p>Nota de almacen</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="?app=preciogestion" class="nav-link">
                  <i class="fas fa-circle nav-icon text-red"></i>
                  <p>Gestión de Precios</p>
                </a>
              </li>
			   <li class="nav-item">
                <a href="?app=gestionxstock" class="nav-link">
                  <i class="fas fa-circle nav-icon text-red"></i>
                  <p>Gestión de datos x stock</p>
                </a>
              </li>
			   <li class="nav-item">
                <a href="?app=inventarioinicial" class="nav-link">
				  <i class="fas fa-circle nav-icon text-success"></i>
                  <p>Inventario Inicial</p>
                </a>
              </li>
			   <li class="nav-item">
                <a href="?app=kardex" class="nav-link">
                  <i class="fas fa-circle nav-icon text-success"></i>
                  <p>Kárdex de Productos</p>
                </a>
              </li>
            </ul>
          </li>  
		  <?php 
		}
	?> 
		  
		  
		  
		    <?php if ($_SESSION['usuariogrupo_id']=='6'){
			   ?>
			   
			     <li class="nav-item has-treeview">
            <a href="#" class="nav-link">
			  <i class="nav-icon fas fa-box"></i>
              <p>
                CAJA
                <i class="right fas fa-angle-left"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
              <li class="nav-item">
                <a href="?app=flujocaja" class="nav-link">    
				  <i class="fas fa-star-half nav-icon text-success"></i>
                  <p>Consulta de caja</p>
                </a>
              </li>
             
            </ul>
          </li>
			   
			   <?php 
		   }else if ($_SESSION['usuariogrupo_id']=='3'){
			   
		   }else if ($_SESSION['usuariogrupo_id']=='4'){ 
		   
		   }else{
		?>
		  <li class="nav-item has-treeview">
            <a href="#" class="nav-link">
			  <i class="nav-icon fas fa-box"></i>
              <p>
                CAJA
                <i class="right fas fa-angle-left"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
              <li class="nav-item">
                <a href="?app=flujocaja" class="nav-link">    
				  <i class="fas fa-star-half nav-icon text-success"></i>
                  <p>Consulta de caja</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="?app=ingreso" class="nav-link">          
				  <i class="fas fa-arrow-right nav-icon text-orange"></i>				  
                  <p>Ingresos</p>
                </a>
              </li>
              <li class="nav-item">
                <a href="?app=egreso" class="nav-link">
                  <i class="fas fa-arrow-left nav-icon text-red"></i>
                  <p>Egresos</p>
                </a>
              </li>
			   <li class="nav-item">
                <a href="?app=transferencia" class="nav-link">
				  <i class="fas fa-stream nav-icon text-primary"></i>
                  <p>Transferencia</p>
                </a>
              </li>
            </ul>
          </li>

 <?php 
		}
	?>
	
	

  <?php if ($_SESSION['usuariogrupo_id']=='6'){
			  ?>

			 <li class="nav-item has-treeview">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-clipboard"></i>
              <p>
                CONSULTAS
                <i class="right fas fa-angle-left"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
              

			  
			  <li class="nav-item has-treeview">
                <a href="#" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>
                    Ventas
                    <i class="right fas fa-angle-left"></i>
                  </p>
                </a>
                <ul class="nav nav-treeview">
                  <li class="nav-item">
                    <a href="?app=ventaconsolidadasfecha_cst" class="nav-link">
                      <i class="far fa-dot-circle nav-icon text-primary"></i>
                      <p>Ventas por fecha</p>
                    </a>
                  </li>				  
                </ul>
              </li>

			  
            </ul>
          </li>
	
	
<?php			  
			   
		   }else if ($_SESSION['usuariogrupo_id']=='3'){
			   
		   }else if ($_SESSION['usuariogrupo_id']=='4'){ 
		   ?>
		   
		    <li class="nav-item has-treeview">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-clipboard"></i>
              <p>
                CONSULTAS
                <i class="right fas fa-angle-left"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
                
			    <li class="nav-item has-treeview">
                <a href="#" class="nav-link">
                  <i class="far fa-circle nav-icon text-danger"></i>
                  <p>
                    Contables
                    <i class="right fas fa-angle-left"></i>
                  </p>
                </a>
                <ul class="nav nav-treeview">
                  <li class="nav-item">
                    <a href="?app=contableconsolidado_cst" class="nav-link">
                      <i class="far fa-dot-circle nav-icon text-primary"></i>
                      <p>Contable General</p>
                    </a>
                  </li>      
                </ul>
              </li>
			  
	
			  
            </ul>
          </li>


		   <?php 
		   }else{
		?>
 <li class="nav-item has-treeview">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-clipboard"></i>
              <p>
                CONSULTAS
                <i class="right fas fa-angle-left"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
              
              <li class="nav-item has-treeview">
                <a href="#" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>
                    Productos
                    <i class="right fas fa-angle-left"></i>
                  </p>
                </a>
                <ul class="nav nav-treeview">
                  <li class="nav-item">
                    <a href="?app=productogeneral_cst" class="nav-link">
                      <i class="far fa-dot-circle nav-icon text-success"></i>
                      <p>Reporte General</p>
                    </a>
                  </li>      
                </ul>
              </li>
              
			  <!--
			  <li class="nav-item has-treeview">
                <a href="#" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>
                    Caja
                    <i class="right fas fa-angle-left"></i>
                  </p>
                </a>
                <ul class="nav nav-treeview">
                  <li class="nav-item">
                    <a href="?app=cajageneral_cst" class="nav-link">
                      <i class="far fa-dot-circle nav-icon text-primary"></i>
                      <p>Consulta General</p>
                    </a>
                  </li>      
                </ul>
              </li>
			 --> 
			  
			    <li class="nav-item has-treeview">
                <a href="#" class="nav-link">
                  <i class="far fa-circle nav-icon text-danger"></i>
                  <p>
                    Contables
                    <i class="right fas fa-angle-left"></i>
                  </p>
                </a>
                <ul class="nav nav-treeview">
                  <li class="nav-item">
                    <a href="?app=contableconsolidado_cst" class="nav-link">
                      <i class="far fa-dot-circle nav-icon text-primary"></i>
                      <p>Contable General</p>
                    </a>
                  </li>      
                </ul>
              </li>
			  
			 <li class="nav-item has-treeview">
                <a href="#" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>
                    Ventas
                    <i class="right fas fa-angle-left"></i>
                  </p>
                </a>
                <ul class="nav nav-treeview">
                  <li class="nav-item">
                    <a href="?app=ventaconsolidadasfecha_cst" class="nav-link">
                      <i class="far fa-dot-circle nav-icon text-primary"></i>
                      <p>Ventas por fecha</p>
                    </a>
                  </li>				  
                </ul>
              </li>
			  
			  
			   <li class="nav-item has-treeview">
                <a href="#" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>
                    Notas de credito
                    <i class="right fas fa-angle-left"></i>
                  </p>
                </a>
                <ul class="nav nav-treeview">
                  <li class="nav-item">
                    <a href="?app=notacreditoconsolidadasfecha_cst" class="nav-link">
                      <i class="far fa-dot-circle nav-icon text-primary"></i>
                      <p>Notas de credito por fecha</p>
                    </a>
                  </li>				  
                </ul>
              </li>
			  
			  
			  
			  <li class="nav-item has-treeview">
                <a href="#" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>
                    Compras
                    <i class="right fas fa-angle-left"></i>
                  </p>
                </a>
                <ul class="nav nav-treeview">
                  <li class="nav-item">
                    <a href="?app=compraconsolidadasfecha_cst" class="nav-link">
                      <i class="far fa-dot-circle nav-icon text-primary"></i>
                      <p>Compras por fecha</p>
                    </a>
                  </li>				  
                </ul>
              </li>
			  
			  
			  <li class="nav-item">
                <a href="?app=consulta_cst" class="nav-link">
                  <i class="far  fa-circle nav-icon text-orange"></i>
                  <p>Consulta</p>
                </a>
              </li>
			  
            </ul>
          </li>
		
		 <?php 
		}
	?>
		
		
          <li class="nav-header"></li>
          <li class="nav-header"></li>
          <li class="nav-header"></li>
          <li class="nav-header"></li>
          <li class="nav-header"></li>
          <li class="nav-header"></li>
          
          
     
		  
        </ul>
      </nav>
      <!-- /.sidebar-menu -->
    </div>
    <!-- /.sidebar -->
  </aside>
