{% include "header" %}
{% include "course_version_outdated_alert", courses: courses.enrolled %}
{% comment %}{% include "sub_navigation" %}{% endcomment %}
<div class="my-course-banner"></div>

<main class="np-main np-dashboard np-subpage-container np-max-width">
  <div class="uk-container uk-container-center">
    <div class="uk-padding-horizontal">
      <div class="my-course-banner-content">
        <h3 class="custom-title"><img src="{{ current_school.logo_url }}" width="130" alt="TALKSPACE FOUNTAIN LOGO" style="width: 20rem; margin-bottom: -3rem;"></h3>
        {% if current_person.groups.size > 0 %}
          {% assign persongroup = current_person.groups.last.name | split: "-" %}
        {% endif   %}
        <p class="np-resource-title" style="font-size: 1.5rem; font-weight: 600; margin-bottom: -1rem;">Hi {{current_person.first_name}}! &#128075; {% if current_person.groups.size > 0 %} {{ persongroup | slice: 1 }} {% endif %}</p>
        <div> <p style="font-weight: 500;">Please complete all your 2023 Compliance Courses.</p>
	<p style="font-weight: 300;">Click the drop down box below to view courses that are in progress or
	  complete.</p></div>
      </div>
    </div>
  </div>

  {% include "my_courses_filter" %}

  <div class="row np-flex-center">
    <div class="col-xs-12 dashboard-courses">
      {% comment %}{% if features.learning_paths? %}
        <div class="np-dashboard-resources-title">
          {% t shared.learning_paths %}
        </div>
        {% include "learning_paths_index", items: learning_paths.enrolled %}
      {% endif %}
      <div class="np-dashboard-resources-title">
        {% t shared.course_vocabulary.plural, key: current_school.course_vocabulary %}
      </div>{% endcomment %}
      {%- comment -%} {% include "courses_index", class: "col-xs-12 col-sm-6 np-stretch-content" %} {%- endcomment -%}
      {% include "enrolled_courses_index", class: "col-xs-12 col-sm-6 np-stretch-content" %}
    </div>
    {% comment %}{% if features.training_events? %}
      <div class="np-grid-spacing col-xs-12 col-sm-4">
        <div class="np-dashboard-resources-title">
          {% t .upcoming_events %}
        </div>
          {% include "training_events_dashboard" %}
      </div>
    {% endif %}{% endcomment %}
  </div>
</main>
{% include "footer" %}

<script>
  window.addEventListener('DOMContentLoaded', (event) => {
    document.querySelector('.my-courses-filters').style.removeProperty('display');
  })
</script>
