<nav class="navbar navbar-expand-lg navbar-dark bg-success">
  <div class="container">
    <a class="navbar-brand" href="/">
      <i class="fas fa-link"></i> Gestion de Produccion COFASA
    </a>
    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav"
      aria-expanded="false" aria-label="Toggle navigation">
      <span class="navbar-toggler-icon"></span>
    </button>
    <div class="collapse navbar-collapse" id="navbarNav">
      <ul class="navbar-nav ml-auto">
        {{#if user}}

        <li class="nav-item dropdown">
          <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown"
            aria-haspopup="true" aria-expanded="false">
               Configuración
          </a>
          <div class="dropdown-menu" aria-labelledby="navbarDropdown">
            <a class="dropdown-item" href="/links/crudactividades">Actividades</a>
            <div class="dropdown-divider"></div>
            <a class="dropdown-item" href="/links/crud-maquinas">Equipos</a>
            <div class="dropdown-divider"></div>
            <a class="dropdown-item" href="/links/crudareas">Areas</a>
            <div class="dropdown-divider"></div>
            <a class="dropdown-item" href="/links/mostrar-crudtipoproductos">Tipos de Productos</a>
            <div class="dropdown-divider"></div>
            <a class="dropdown-item" href="/links/mostrar-crudmateriaprima">Materia Prima</a>
            <div class="dropdown-divider"></div> 
            <a class="dropdown-item" href="/links/crudformulas">Formulas</a>
            <div class="dropdown-divider"></div>
            <a class="dropdown-item" href="/links/crud-trabajadores">Trabajadores</a>
            <div class="dropdown-divider"></div>                       
            <a class="dropdown-item" href="/links/mostrar-crudproductos">Productos</a>           

          </div>
        </li>

        <li class="nav-item dropdown">
          <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown"
            aria-haspopup="true" aria-expanded="false">
          Produccion
          </a>
          <div class="dropdown-menu" aria-labelledby="navbarDropdown">
         
            <a class="dropdown-item" href="/links/planificaciones-general">Programación de la Producción</a>
            <div class="dropdown-divider"></div>
            <a class="dropdown-item" href="#">Ejecucion de la Producción</a>
          </div>
        </li>

        <li class="nav-item dropdown">
          <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown"
            aria-haspopup="true" aria-expanded="false">
               Reportes
          </a>
          <div class="dropdown-menu" aria-labelledby="navbarDropdown">

          </div>
        </li>


        <li class="nav-item">
          <a class="nav-link" href="/profile">Profile</a>
        </li>
        <li class="nav-item">
          <a class="nav-link" href="/logout">Cerrar Sesion</a>
        </li>
        {{else}}
        <li class="nav-item">
          <a class="nav-link" href="/singin">Iniciar Session</a>  
        </li>
        <li class="nav-item">
          <a class="nav-link" href="/signup">Registrarse</a>
        </li>
        {{/if}}
      </ul>
    </div>
  </div>
</nav>