
  <div id="sidebar" class="sidebar sidebar-fixed expandable sidebar-color sidebar-darkblue sidebar-top sidebar-backdrop" data-swipe="true" data-dismiss="true">
          <div class="sidebar-inner">
<div class="ace-scroll flex-grow-1" data-ace-scroll="{}">

              <div class="sidebar-section my-2">
                <div class="sidebar-section-item fadeable-left">

                  <div class="fadeinable sidebar-shortcuts-mini">
                    <span class="btn btn-outline-primary border-2 text-white radius-2"></span>
                    <span class="btn btn-outline-primary border-2 text-white radius-2"></span>
                    <span class="btn btn-outline-primary border-2 text-white radius-2"></span>
                    <span class="btn btn-outline-primary border-2 text-white radius-2"></span>
                  </div>

                  <div class="fadeable">
                    <div class="sub-arrow"></div>
                    <div>
                      <button class="btn px-25 py-2 text-95 btn-outline-primary border-2 text-white radius-2">
                        <i class="fa fa-signal"></i>
                      </button>

                      <button class="btn px-25 py-2 text-95 btn-outline-primary border-2 text-white radius-2">
                        <i class="fa fa-edit"></i>
                      </button>

                      <button class="btn px-25 py-2 text-95 btn-outline-primary border-2 text-white radius-2">
                        <i class="fa fa-users"></i>
                      </button>

                      <button class="btn px-25 py-2 text-95 btn-outline-primary border-2 text-white radius-2">
                        <i class="fa fa-cogs"></i>
                      </button>
                    </div>
                  </div>

                </div>


                <div class="sidebar-section-item">
                  <i class="fadeinable fa fa-search text-orange-l2 mr-n1"></i>

                  <div class="fadeable d-inline-flex align-items-center ml-3 ml-lg-0">
                    <i class="fa fa-search mr-n3 text-orange-l2"></i>
                    <input type="text" class="sidebar-search-input pl-4 pr-3 mr-n2" maxlength="60" placeholder="Search ..." aria-label="Search" />
                    <a href="#"><i class="fa fa-microphone text-white-tp3 ml-n1"></i></a>
                  </div>
                </div>
              </div>

              <ul class="nav flex-column has-active-border active-on-top active-on-right">


                <li class="nav-item-caption">
                  <span class="fadeable pl-3">MENU</span>
                  <span class="fadeinable mt-n2 text-125">&hellip;</span>
             
                </li>


                <li class="nav-item">

                  <a href="principal.php" class="nav-link">
                    <i class="nav-icon fa fa-tachometer-alt"></i>
                    <span class="nav-text fadeable">
               	  <span>Inicio</span>
                    </span>


                  </a>

                  <b class="sub-arrow"></b>

                </li>


            

<li class="nav-item">

                  <a href="#" class="nav-link dropdown-toggle collapsed">
                    <i class="nav-icon fa fa-desktop"></i>
                    <span class="nav-text fadeable">
               	  <span>Sorteo</span>
                    </span>

                    <b class="caret fa fa-angle-left rt-n90"></b>

             
                  </a>

                  <div class="hideable submenu collapse">
                    <ul class="submenu-inner">
<?php 
include "control/iniciarsesion.php";

$rol = strtolower($rol);

# MENU FISICA
if ($rol != "virtual"){
?>
<li class="nav-item">
    <a href="fisica.php" class="nav-link">
        <span class="nav-text">
            <span>Cargar billeteria fisica</span>
        </span>
    </a>
</li>
<?php 
}

# MENU VIRTUAL
if ($rol != "distribuidor"){
?>
<li class="nav-item">
    <a href="virtual.php" class="nav-link">
        <span class="nav-text">
            <span>Cargar billeteria Virtual</span>
        </span>
    </a>
</li>
<?php 
}




?>
<?php if($rol=='administrador'){?>
<li class="nav-item">
    <a href="sorteo.php" class="nav-link">
        <span class="nav-text">
            <span>Crea y Activar Sorteo</span>
        </span>
    </a>
</li>

<?php }?>
                        </a>

                        <div class=" submenu collapse">
                          <ul class="submenu-inner">

                            <li class="nav-item">

                              <a href="#" class="nav-link dropdown-toggle collapsed">
                                <i class="nav-icon fa fa-caret-right text-blue-l2 mr-2"></i>
                                <span class="nav-text">
               							  <span>Third Level Menu</span>
                                </span>

                                <b class="caret fa fa-angle-left rt-n90"></b>

                                <!-- or you can use custom icons. first add `d-style` to 'A' -->
                                <!--
               							 	<b class="caret d-n-collapsed fa fa-minus text-80"></b>
               							 	<b class="caret d-collapsed fa fa-plus text-80"></b>
               							 -->
                              </a>

                              <div class=" submenu collapse">
                                <ul class="submenu-inner">

                                  <li class="nav-item">

                                    <a href="#" class="nav-link dropdown-toggle collapsed">
                                      <i class="nav-icon fa fa-leaf text-success-l2 text-90 mr-2"></i>
                                      <span class="nav-text">
               										  <span>Fourth Level</span>
                                      </span>

                                      <b class="caret fa fa-angle-left rt-n90"></b>

                                 
                                    </a>

                                    <div class=" submenu collapse">
                                      <ul class="submenu-inner">

                                        <li class="nav-item">

                                          <a href="#" class="nav-link">
                                            <i class="nav-icon fa fa-stop text-warning-l1 text-80 mx-2"></i>
                                            <span class="nav-text">
               													  <span>5th Level</span>
                                            </span>


                                          </a>


                                        </li>


                                        <li class="nav-item">

                                          <a href="#" class="nav-link">
                                            <i class="nav-icon fa fa-stop text-warning-l1 text-80 mx-2"></i>
                                            <span class="nav-text">
               													  <span>5th Level</span>
                                            </span>


                                          </a>


                                        </li>

                                      </ul>
                                    </div>

                                    <b class="sub-arrow"></b>

                                  </li>

                                </ul>
                              </div>

                              <b class="sub-arrow"></b>

                            </li>

                          </ul>
                        </div>

                        <b class="sub-arrow"></b>

                      </li>

                    </ul>
                  </div>

                  <b class="sub-arrow"></b>

                </li>















         


                <li class="nav-item">

                  <a href="#" class="nav-link dropdown-toggle collapsed">
                    <i class="nav-icon fa fa-table"></i>
                    <span class="nav-text fadeable">
               	  <span>Confirmaci&oacute;n</span>
                    </span>

                    <b class="caret fa fa-angle-left rt-n90"></b>

               
                  </a>

                  <div class="hideable submenu collapse">
                    <ul class="submenu-inner">

                             <li class="nav-item">

                        <a href="ultima_confirmacion.php" class="nav-link">

                          <span class="nav-text">
               				  <span> Ultima confirmaci&oacute;n</span>
                          </span>


                        </a>


                      </li>
                       
                       
                       <li class="nav-item">

                        <a href="historial_confirmacion.php" class="nav-link">

                          <span class="nav-text">
               				  <span> Historial Confirmaciones</span>
                          </span>


                        </a>


                      </li>
                                         
                      
                      
                      
                      
                          <!--  <li class="nav-item">

                        <a href="envio.php" class="nav-link">

                          <span class="nav-text">
               				  <span> Enviar mensajes</span>
                          </span>


                        </a>


                      </li>-->
                      
                      
                      
                      
                      
                      
                     <!--  <li class="nav-item">

                        <a href="municipios.php" class="nav-link">

                          <span class="nav-text">
               				  <span> Municipios</span>
                          </span>


                        </a>


                      </li>-->

                    </ul>
                  </div>

                  <b class="sub-arrow"></b>

                </li>

  



<li class="nav-item">

                  <a href="#" class="nav-link dropdown-toggle collapsed">
                    <i class="nav-icon fa fa-cog"></i>
                    <span class="nav-text fadeable">
               	  <span>Facturas</span>
                    </span>

                    <b class="caret fa fa-angle-left rt-n90"></b>

             
                  </a>

                  <div class="hideable submenu collapse">
                    <ul class="submenu-inner">

<?php if($rol=='administrador'){?>
    <li class="nav-item">

                        <a href="carga.php" class="nav-link">

                          <span class="nav-text">
               				  <span>Cargar Facturas</span>
                          </span>


                        </a>


                      </li>
                      <?php }?>
    <li class="nav-item">

                        <a href="#" class="nav-link">

                          <span class="nav-text">
               				  <span>Ver Facturas</span>
                          </span>


                        </a>


                      </li>

    <li class="nav-item">

                        <a href="#" class="nav-link">

                          <span class="nav-text">
               				  <span>Ver Facturas todas</span>
                          </span>


                        </a>


                      </li>

                     </ul>
                  </div>

                  <b class="sub-arrow"></b>

                </li>







<?php if($rol=='administrador'){?>

 <li class="nav-item">

                  <a href="#" class="nav-link dropdown-toggle collapsed">
                    <i class="nav-icon  fa fa-users"></i>
                    <span class="nav-text fadeable">
               	  <span>Usuarios</span>
                    </span>

                    <b class="caret fa fa-angle-left rt-n90"></b>

             
                  </a>

                  <div class="hideable submenu collapse">
                    <ul class="submenu-inner">


    <li class="nav-item">

                        <a href="crear_usuario.php" class="nav-link">

                          <span class="nav-text">
               				  <span>Crear Usuario</span>
                          </span>


                        </a>


                      </li>
    <li class="nav-item">

                        <a href="ver_usuarios.php" class="nav-link">

                          <span class="nav-text">
               				  <span>Ver usuarios</span>
                          </span>


                        </a>


                      </li>



                     </ul>
                  </div>

                  <b class="sub-arrow"></b>

                </li>

<?php }?>
<?php if($rol=='administrador'){?>
 <li class="nav-item">

                  <a href="#" class="nav-link dropdown-toggle collapsed">
                    <i class="nav-icon  fa fa-edit w-4 text-105 text-white-tp1"></i>
                    <span class="nav-text fadeable">
               	  <span>Informes</span>
                    </span>

                    <b class="caret fa fa-angle-left rt-n90"></b>

            
                  </a>

                  <div class="hideable submenu collapse">
                    <ul class="submenu-inner">


    <li class="nav-item">

                        <a href="exportar.php" class="nav-link">

                          <span class="nav-text">
               				  <span>Exportar Usuarios</span>
                          </span>


                        </a>


                      </li>
                      
                       <li class="nav-item">

                        <a href="eliminar_datos.php" class="nav-link">

                          <span class="nav-text">
               				  <span>Eliminar Datos </span>
                          </span>


                        </a>


                      </li>
                      
                      
                      
  <li class="nav-item">

                        <a href="ver_datos_guardados.php" class="nav-link">

                          <span class="nav-text">
               				  <span>Usuarios Eliminados</span>
                          </span>


                        </a>


                      </li>
                      
                      
                      
                      
                      
                      
                      
    <li class="nav-item">

                        <a href="ver_usuarios.php" class="nav-link">

                          <span class="nav-text">
               				  <span>Ver usuarios</span>
                          </span>


                        </a>


                      </li>
                      
                      
                      
                      
                      
                          <!--<li class="nav-item">

                        <a href="acta_reficheo.php" class="nav-link">

                          <span class="nav-text">
               				  <span>Acta de Reficheo</span>
                          </span>


                        </a>


                      </li>-->



                     </ul>
                  </div>

                  <b class="sub-arrow"></b>

                </li>
<?php }?>


              </ul>

            </div><!-- .sidebar scroll -->




            

            

          </div>
        </div>
