{% assign swapped_groups = '1fafc89f-fbbe-4fc9-b112-00645fb5708b, fa5b681e-cad9-4987-8801-a915b7c35855, 4a11c2c7-653e-4feb-865c-f8d300868324, 607235c7-cf3d-4997-977d-a1d4f0b4dcd6,f66bf675-5074-45bd-9ea7-62c928ec545e, 345c7c5f-f904-4ea1-ae7f-e8398b2a69f6, d1fa758c-eb92-45ed-8d01-d7f6fbf4a4ec, a4339f11-c69a-4880-8dee-204b1fd97359, 45a6eaa4-f3d5-4cd8-b054-eba2bb135b6a'%}
{% assign is_in_group = false %}

  {% for group in current_person.groups %}
    {% if swapped_groups contains group.id %}
        {% assign is_in_group = true %}
        {% break %}
    {% endif %}
  {% endfor %}

  {% if is_in_group%}
    <div class="np-learning-paths-resources">
      {% if items.any? %}
        {% for learning_path in items %}
          {% if learning_path.name contains "Workforce"%}
            {% include "cards_learning_path" with learning_path %}
          {% endif %}
        {% endfor %}
        {% for learning_path in items %}
          {% if learning_path.name contains "CoreHR"%}
            {% include "cards_learning_path" with learning_path %}
          {% endif %}
        {% endfor %}
        {% for learning_path in items %}
          {% unless learning_path.name contains "CoreHR"%}
            {% unless learning_path.name contains "Workforce"%}
              {% include "cards_learning_path" with learning_path %}
            {% endunless%}
          {% endunless %}
        {% endfor %}
      {% else %}
        <div class="np-learning-paths-resources-container">
          <div class="np-zero-state-text">
            {% t .empty %}
          </div>
          <img class="np-zero-state-learning-paths" alt="{% t .empty %}" />
        </div>
      {% endif %}
    </div> 
    {%else%}
    <div class="np-learning-paths-resources">
      {% if items.any? %}
        {% for learning_path in items %}
          {% include "cards_learning_path" with learning_path %}
        {% endfor %}
        {% else %}
        <div class="np-learning-paths-resources-container">
          <div class="np-zero-state-text">
            {% t .empty %}
          </div>
          <img class="np-zero-state-learning-paths" alt="{% t .empty %}" />
        </div>
      {% endif %}
    </div>   
  {% endif %}
