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

    {% for completed_learning_path in completed_learning_paths %}
      {% if completed_learning_path %}
        {% assign any_completed = true %}
      {% endif %}
    {% endfor %}

    {% if any_completed %}
      {% for learning_path in items %}
        {% if learning_path.completed? %}
          {% 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 Completed 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 Completed Learning Paths.
      </div>
      <img class="np-zero-state-learning-paths" alt="{% t .empty %}" />
    </div>
  {% endif %}
</div>
