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

    {% for in_progress_learning_path in in_progress_learning_paths %}
      {% if in_progress_learning_path == 0 %}
        {% assign any_not_in_progress = true %}
      {% endif %}
    {% endfor %}


    {% if any_not_in_progress %}
      {% for learning_path in items %}
        {% if learning_path.progress == 0 %}
          {% 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're not assigned any 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're not assigned any Learning Paths.
      </div>
      <img class="np-zero-state-learning-paths" alt="{% t .empty %}" />
    </div>
  {% endif %}
</div>
