
<!DOCTYPE html>
<html lang="en">
  <head>
    <%- include('./partials/_head') %>
    <title>OnlineAMS</title>
  </head>
  
<body style="background-color: #555;">
  <nav class="navbar navbar-expand-sm navbar-dark green darken-4">
    <a class="navbar-brand" href="#"><strong>OAMS</strong></a>
      <a class="text-light" href="#"><strong>ONLINE ATTACHMENT MANAGEMENT SYSTEM</strong></a>
    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent-6"
      aria-controls="navbarSupportedContent-6" aria-expanded="false" aria-label="Toggle navigation">
      <span class="navbar-toggler-icon"></span>
    </button>
    
    <div class="collapse navbar-collapse" id="navbarSupportedContent-6">
      <ul class="navbar-nav ml-auto">
        <li class="nav-item dropdown">
          <a class="nav-link dropdown-toggle" id="navbarDropdownMenuLink-6" data-toggle="dropdown" aria-haspopup="false"
            aria-expanded="false"><%= user.first_name %> <%= user.last_name%></a>
          <div class="dropdown-menu dropdown-secondary" aria-labelledby="navbarDropdownMenuLink-6">
            <a class="dropdown-item" data-toggle="modal" href="#askmodal">
              <% if(user.is2faEnabled){ %>
              Disable 2-Factor Authentication
              <% }else{ %>
              Enable 2-Factor Authentication
              <% } %>
            </a>
            <a class="dropdown-item" href="/dashboard/logout">Logout</a> 
          </div>
        </li>
        <li class="nav-item">
          <a class="nav-link" href="#">JKUAT</a>
        </li>
      </ul>
    </div>
  </nav>
  </div>
  <div class="menu active">
    <ul>
        <li><a class="item text-light" href="/">Home</a></li>
        <li><a class="item" href="/dashboard/e-logbook">E-Logbook</a></li>
        <li><a class="item" href="/dashboard/dForm">Submit</a></li>
    </ul>
    </div>
  <section class="container-fluid board active">
    <header class="container transparent header1">
      <em class="icon"></em>
    </header>

    <main style="text-align:center;">
      <aside class="col">
          <h6>Download the attachment letter below. For any queries concering your letter please alias with your supervisor for help.</h6>
          <embed src="<%= link%>#toolbar=0&navpanes=0" type="application/pdf" width="auto" height="399px" /><br>
          <a href="<%= link%>" class="btn btn-light btn-sm" download>download your letter</a>
      </aside>
    </main>
  </section>

  
  
<footer>
 <%- include('2-F-A') %>
 <%- include('./partials/_foot') %>
</footer>
</html>