<div class="np-learning-paths-resources">
  {% if items.any? %}
    {% assign started_learning_paths = items | map: "started?" %}
    {% assign in_progress_learning_paths = items | map: "progress" %}
    {% assign any_started = false %}
    {% assign any_in_progress = false %}

    {% for started_learning_path in started_learning_paths %}
      {% if started_learning_path == true %}
        {% assign any_started = true %}
      {% endif %}
    {% endfor %}

    {% for in_progress_learning_path in in_progress_learning_paths %}
      {% if in_progress_learning_path > 0 and in_progress_learning_path < 100 %}
        {% assign any_in_progress = true %}
      {% endif %}
    {% endfor %}

    {% if any_started and any_in_progress %}
      {% for learning_path in items %}
        {% if learning_path.progress > 0 and learning_path.progress < 100 %}
          {% include "cards_learning_path" with learning_path %}
        {% endif %}
      {% endfor %}
    {% else %}
      <div class="np-learning-paths-resources-container">
        <div class="np-zero-state-text">
          Bummer! You don't have any In Progress Learning Paths.
        </div>
        <img class="np-zero-state-learning-paths" alt="{% t .empty %}" />
      </div>    
    {% endif %}
  {% else %}
    <div class="np-learning-paths-resources-container">
      <div class="np-zero-state-text">
        Bummer! You don't have any In Progress Learning Paths.
      </div>
      <img class="np-zero-state-learning-paths" alt="{% t .empty %}" />
    </div>
  {% endif %}
</div>
