{% if courses.enrolled.any? %}
  {% assign in_progress_courses = courses.enrolled | map: "progress" %}
  {% assign any_not_in_progress = false %}

  {% for in_progress_course in in_progress_courses %}
    {% if in_progress_course == 0 %}
      {% assign any_not_in_progress = true %}
    {% endif %}
  {% endfor %}

  <div class="row row-with-thumbnails">
    {% for course in courses.enrolled %}
      {% if course.started? == false %}

      {%- comment -%} {% if course.progress == 0 %}
        {% assign is_course_from_learning_path = false %}

        {% for lp_courses in learning_path_courses %}
          {% for lp_course in lp_courses %}
            {% if lp_course.id == course.id %}
              {% assign is_course_from_learning_path = true %}
            {% endif %}
          {% endfor %}
        {% endfor %}

        {% unless is_course_from_learning_path %}
          {% assign any_course = true %}
        {% endunless %}
	{% endif %}
      {%- endcomment -%}

	  <div class="{{ class }} enrolled-course-filter-card" data-progress='{{ course.progress }}'>
            {% include "cards_course" with course %}
          </div>
      {% endif %}
    {% endfor %}
  </div>
{% else %}
  {% include "courses_zero_state", message: "Yikes! You don’t have any Enrolled Courses." %}
{% endif %}
