<nav class="main-header navbar navbar-expand navbar-white navbar-light" style="padding: 2px;">
<!-- BARRA DE NAVEGACION -->
<ul class="navbar-nav">
      <li class="nav-item">
        <a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fas fa-bars" ></i></a>
      </li>
</ul>


    <!-- Right navbar links -->
    <ul class="navbar-nav ml-auto" style=" align-items: center;">

    <li class="nav-item dropdown">
        <a class="nav-link" href="#" data-toggle="dropdown" aria-expanded="false">
          <i class="far fa-bell"></i>
          <span class="badge badge-warning navbar-badge">10</span>
        </a>
        <div class="dropdown-menu dropdown-menu-lg dropdown-menu-right" style="left: inherit; right: 0px;">
           <span class="dropdown-item dropdown-header"> 10 Productos </span>

          <?php

            // $item = null;
            // $valor = null;

            // $productos = ControladorProductos:: ctrMostrarAlmacenes($item, $valor);

            // foreach ($productos as $key => $value) {

            //   echo'<div class="dropdown-divider"></div>
           
            //   <a class="dropdown-item"><p style="font-size: 10px;color: red;"><b>'.$value['stockreal'].' UND     '.$value['descripcion'].'</b></p></a>';
          
            // }

           

           ?>

        </div>

      </li>
     
     
      <!-- PERFIL DE USUARIO -->
      <li class="dropdown user user-menu ">
        <a class="dropdown-toggle" data-toggle="dropdown" href="#">
          <?php 
           if ($_SESSION["foto"] != ""){
             echo '<img src="'.$_SESSION["foto"].'" class="user-image">';
           }else{

            echo '<img src="vistas/dist/img/usuarios/anonymous.png" class="user-image">';
           }
          
          ?>

          <?php

            $item = "id";
            $valor = $_SESSION["id_empleado"];

            $empleado = ControladorEmpleado:: ctrMostrarEmpleado($item, $valor);

              echo '<span class="hidden-xs">'.$empleado["nombre"].'</span>';

          ?>

          
        </a>
        <!-- DROPDOWN-->
        <ul class="dropdown-menu" style="width: 100%">
              <!-- User image -->
              <li class="user-header">

                <img src="<?php echo $_SESSION['foto']; ?>" class="img-circle" alt="User Image">

                <?php

                $item = "id";
                $valor = $_SESSION["id_empleado"];

                $empleado = ControladorEmpleado:: ctrMostrarEmpleado($item, $valor);

                  echo '<p>'.$empleado['nombre'].'</p>';

                ?>

              </li>
              <!-- Menu Footer-->
              <li class="user-footer">
                <div class="float-right">
                  <a href="salir" class="btn btn-default btn-flat">Salir</a>
                </div>
              </li>
            </ul>
      </li>

      


    </ul>
  </nav>
  <!-- /.navbar -->

  <!-- Main Sidebar Container -->
  <aside class="main-sidebar sidebar-light-primary elevation-4">
    <!-- Brand Logo -->
    <a href="inicio" class="brand-link">
      <img src="vistas/dist/img/plantilla/Logo1.png" alt="AdminLTE Logo" class="brand-image img-circle elevation-2"
           >
      <p class="brand-text font-weight-light" style="color: black;"><strong>Biofarma</strong></p>
    </a>
 
