<?php
error_reporting(0);
$Nombre1 = $_COOKIE["Nombre1"];
$Apellido1 = $_COOKIE["Apellido1"];
$Organizacion = $_COOKIE["Organizacion"];
?>
<nav class="main-header navbar navbar-expand navbar-white navbar-light">
  <ul class="navbar-nav">
    <li class="nav-item">
      <a class="nav-link" id="btnSideBar" data-widget="pushmenu" href="#" role="button">
        <i class="fa fa-bars"></i>
      </a>
    </li>
  </ul>
  <ul class="navbar-nav ml-auto">
    <li class="nav-item">
      <a class="nav-link" data-widget="fullscreen" role="button">
        <i class="fa fa-expand-arrows-alt"></i>
      </a>
    </li>
  </ul>
</nav>
<aside class="main-sidebar sidebar-dark-primary elevation-4">
  <div class="sidebar">
    <div class="user-panel mt-3 pb-3 mb-3 d-flex">
      <div class="image">
        <img src="dist/img/Menu.png" alt="User Image">
      </div>
      <div class="info">
        <a class="d-block" style="font-weight: bold"><?php echo $Organizacion; ?></a>
        <a class="d-block"><?php echo $Nombre1." ".$Apellido1. "|".$Organizacion; ?></a>
      </div>
    </div>
    <nav class="mt-2">
      <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
        <li class="nav-item">
          <a href="cotizaciones.php" class="nav-link">
            <i class="nav-icon fa fa-home"></i>
            <p>
              Cotizaciones
            </p>
          </a>
        </li>
        <li class="nav-item">
          <a href="pedidos.php" class="nav-link">
            <i class="nav-icon fa fa-check"></i>
            <p>
              Pedidos
            </p>
          </a>
        </li>
        <li class="nav-item">
          <a href="cancelados.php" class="nav-link">
            <i class="nav-icon fa fa-times"></i>
            <p>
              Canceladas
            </p>
          </a>
        </li>
        <?php
        if($Nombre1=="Rene" && $Apellido1=="Gallegos" && $Organizacion=="Mypsa")
        {
          ?>
            <li class="nav-item">
              <a href="bitacora.php" class="nav-link">
                <i class="nav-icon fa fa-th-list"></i>
                <p>
                  Bitacora
                </p>
              </a>
            </li>
            <!--
            <li class="nav-item">
              <a href="cupones.php" class="nav-link">
                <i class="nav-icon fa fa-tags"></i>
                <p>
                  Cupones(Dcto)
                </p>
              </a>
            </li>
        -->
        <?php
        }
        ?>
        <li class="nav-item">
          <a href="logout.php" class="nav-link">
            <i class="nav-icon fa fa-sign-out"></i>
            <p>
              Cerrar sesión
            </p>
          </a>
        </li>
      </ul>
    </nav>
  </div>
</aside>
