{% if features.learning_paths? %}
{% t shared.learning_paths %}
{% include "learning_paths_index", items: learning_paths.enrolled %}
{% endif %}
{% t shared.course_vocabulary.plural, key: current_school.course_vocabulary %}
{%- comment -%} {% include "courses_index", class: "col-xs-12 col-sm-6 np-stretch-content" %} {%- endcomment -%}
{% if courses.enrolled.any? %}
{% if current_school.filterable_categories.any? %}
{% assign categories_by_name = current_school.filterable_categories | sort: "name" %}
{% for category in categories_by_name %}
{% assign renderFlag = false %}
{% for course in courses.enrolled %}
{% for course_category in course.categories %}
{% if course_category.name == category.name %}
{% assign renderFlag = true %}
{% endif %}
{% endfor %}
{% endfor %}
{% if renderFlag == true %}
{% for course in courses.enrolled %}
{% for course_category in course.categories %}
{% if course_category.name == category.name %}
{% include "cards_course" with course %}
{% endif %}
{% endfor %}
{% endfor %}
{% endif %}
{% endfor %}
{% endif %}
{% else %}
{% capture message %}
{% t shared.zero_state.courses.index,
key: current_school.course_vocabulary
%}
{% endcapture %}
{% include "courses_zero_state", message: message %}
{% endif %}
Course Progress
{% include "widget_course_progress" %}
{% if features.training_events? %}
{% t .upcoming_events %}
{% include "training_events_dashboard" %}
{% endif %}