<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie-edge">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-aFq/bzH65dt+w6FI2ooMVUpc+21e0SRygnTpmBvdBgSdnuTN7QbdgL+OapgHtvPp" crossorigin="anonymous">
    <title>DispatchHealth</title>
</head>

<body>
  <style>
  .nav-item, img{
    margin-left: 1.5rem;
    margin-right: 1rem;
    font-size: 24px;
  }

  .bi-person-fill{
    color: #252525;
    margin-right: 1em;
  }

  #importbtn{
    padding-top: 5px;
    position: absolute;
    right: 0;
    padding-right: 120px;
  }

  #usericon{
    position: absolute;
    right: 0;
  }

  @media(max-width: 991px){
    #importbtn, #usericon{
      display: none;
    }
  }
  </style>

  <nav class="navbar navbar-expand-lg bg-body-tertiary">
    <div class="container-fluid">
      <a class="navbar-brand" href="../inicio">
        <img src="https://www.echn.org/globalassets/echn/logos/dh_logo_stacked.png" alt="" width="130" height="40" class="d-inline-block align-text-top">
      </a>
      <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon"></span>
      </button>

      <% if (isLoggedIn){ %>
        <div class="collapse navbar-collapse" id="navbarNav">
        
          <ul class="navbar-nav">
            <li class="nav-item">
              <a class="nav-link" href="/inicio"><strong>Epics</strong></a>
            </li>
            <li class="nav-item">
              <a class="nav-link" href="/proyectos"><strong>Proyectos</strong></a>
            </li>
            <li class="nav-item">
              <a class="nav-link" href="/tickets"><strong>Tickets</strong></a>
            </li>
            <li class="nav-item" id="importbtn">
              <a class="btn btn-primary" href="../epics/import">Importar Datos</a>
            </li>
            <li class="nav-item" id="usericon">
              <div class="hstack gap-3">
                <a class="navbar-brand" href="/usuarios/account">
                  <svg xmlns="http://www.w3.org/2000/svg" width="52" height="52" fill="currentColor" class="bi bi-person-fill"
                    viewBox="0 0 16 16">
                    <path d="M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H3Zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z" />
                  </svg>
                </a>
              </div>
            </li>
          </ul>
          </div>
      <% } %>
  </nav>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js" integrity="sha384-w76AqPfDkMBDXo30jS1Sgez6pr3x5MlQ1ZAGC+nuZB+EYdgRZgiwxhTBTkF7CXvN" crossorigin="anonymous"></script>
</body>
</html>