{% assign current_date = "now" | date: "%Y-%m-%d" %}
{% assign due_date = "August 17, 2023" | date: "%Y-%m-%d" %}

{% if current_date < due_date %}
  {% if training_session.id == 'ef7e1fd4-f079-4812-818b-639d871b9ce3' or training_session.id == '1d0507b5-1acf-44db-91bf-f75433a4daef' or training_session.id == '2f208441-c668-42dd-beae-704ad9066d8f'%}
    <script>
      window.location.href = "198662a3-fc1b-4d10-89f8-e6907589d8eb"
    </script>
  {% endif %}
{% endif %}

{% include "header" %}
<main class="np-main np-training-session np-max-width np-page-container">
  <div class="np-hidden-mobile" id="training-session-desktop">
    {% include "training_session_desktop_view" %}
  </div>
  <div class="np-hidden-desktop" id="training-session-mobile">
    {% include "training_session_mobile_view" %}
  </div>
</main>
{% include "footer" %}

<script>
  window.addEventListener("DOMContentLoaded", function() {
  trainingSessions = document.querySelectorAll(".np-training-session-tile")

  trainingSessions.forEach((item) => {
    if (item.href == "https://academy.front.com/app/training_sessions/ef7e1fd4-f079-4812-818b-639d871b9ce3" ||
        item.href == "https://academy.front.com/app/training_sessions/1d0507b5-1acf-44db-91bf-f75433a4daef" ||
        item.href == "https://academy.front.com/app/training_sessions/2f208441-c668-42dd-beae-704ad9066d8f") {
          item.style.display = 'none'
        }
  })
})
</script>