<%- include('partials/header_dashboard') %>

<%- include('partials/dashboard_navigation') %>

<main class="col-md-9 ms-sm-auto col-lg-10 px-md-4">
  <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
    <h1 class="h2">Profile data</h1>
    <div class="btn-toolbar mb-2 mb-md-0">
      <div class="btn-group me-2">
        <a href="/dashboard" class="btn btn-sm btn-outline-secondary"><span data-feather="home" class="align-text-bottom"></span>
          Dashboard</a>
      </div>
    </div>
  </div>
  <% if(taskBoard != 0 && taskBoard != 4 && taskBoard != 5) {%>
  <h5>Candidate: <%= profileData.firstName %> <%= profileData.lastName %></h5>
  <h5>Position: <%= profileData.position %></h5>
  <h5>Department: <%= profileData.department %></h5>
  <%  if(taskBoard === 'hr_interview' || taskBoard === 'technical_interview' || taskBoard === 'paperwork' || taskBoard === 4) { %>

  <%- include('partials/progress_bar') %>


  <% } }%>
  <% if(taskBoard === 0) {%>
  <%- include('profile_new') %>
  <% }%>

  <% if(taskBoard === 'hr_interview' || taskBoard === 'technical_interview' || taskBoard === 'paperwork') {%>
  <%- include('partials/task_management') %>
  <% }%>

  <% if(taskBoard === 4) {%>
  <%- include('profile_edit') %>
  <% }%>

  <% if(taskBoard === 5) {%>
  <%- include('profile_overview') %>
  <% }%>

</main>

<!-- Footer -->

<%- include('partials/footer_dashboard') %>
