<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>

{% assign module_1 = "cfcfa17a-968f-43d8-9371-cae4daa4cb14" %} 
{% assign module_2 = "a559a221-b42c-4d90-941f-b3a562ede3ea" %}
{% assign module_2_extra = "a1713ad1-1aeb-4114-90a7-5bf9b58ac49d" %}
{% assign module_3 = "8ac19e6e-743d-419c-a39c-58555a22be3b" %}
{% assign module_4 = "2d3cfb6f-9f50-45f6-86e1-538e7d1ddc3f" %}
{% assign module_5 = "8f369e9f-a3de-4c85-b296-1afcd533dd0a" %}
{% assign module_6 = "09f16e0d-487d-4b81-b683-38fd21b58949" %}
{% assign module_7 = "86ea3b94-777f-4501-930d-fbafa4d058c7" %}
{% assign module_8 = "6e36f89d-49c9-4a9f-85e3-08fb348479e9" %}
{% assign module_9 = "3cba00e2-7889-40f8-bc7a-78c4e89a4ba0" %}
{% assign module_10 = "7e5e1036-719d-4c59-b760-b627d2636ee1" %}
{% assign module_11 = "cb089bcf-4e1d-449e-b727-c3ac27f9add8" %}
{% assign module_12 = "9b5fb4ee-dfea-423a-99ec-8163f0cead29" %}

{% assign rolling_admission_group_id = "c96bed5b-0580-472c-ac7d-77f4e7a3de97" %}

{% assign course_release_hour = 14 %}

{% if courses.enrolled.any? %}
  <div class="row row-with-thumbnails">
    {% for course in courses.enrolled %}
      {% if course.id == module_1 %}
        <div class="{{ class }} fellowship-course module-1">
          {% include "cards_course" with course %}
        </div>
      {% elsif course.id == module_2 %}
        <div class="{{ class }} fellowship-course module-2">
          {% include "cards_course" with course %}
        </div>
      {% elsif course.id == module_2_extra %}
        <div class="{{ class }} fellowship-course module-2-extra">
          {% include "cards_course" with course %}
        </div>
      {% elsif course.id == module_3 %}
        <div class="{{ class }} fellowship-course module-3">
          {% include "cards_course" with course %}
        </div>
      {% elsif course.id == module_4 %}
        <div class="{{ class }} fellowship-course module-4">
          {% include "cards_course" with course %}
        </div>
       {% elsif course.id == module_5 %}
          <div class="{{ class }} fellowship-course module-5">
            {% include "cards_course" with course %}
          </div>
      {% elsif course.id == module_6 %}
          <div class="{{ class }} fellowship-course module-6">
            {% include "cards_course" with course %}
          </div>
      {% elsif course.id == module_7 %}
          <div class="{{ class }} fellowship-course module-7">
            {% include "cards_course" with course %}
          </div>
      {% elsif course.id == module_8 %}
          <div class="{{ class }} fellowship-course module-8">
            {% include "cards_course" with course %}
          </div> 
        {% elsif course.id == module_9 %}
          <div class="{{ class }} fellowship-course module-9">
            {% include "cards_course" with course %}
          </div> 
        {% elsif course.id == module_10 %}
          <div class="{{ class }} fellowship-course module-10">
            {% include "cards_course" with course %}
          </div>  
        {% elsif course.id == module_11 %}
          <div class="{{ class }} fellowship-course module-11">
            {% include "cards_course" with course %}
          </div> 
        {% elsif course.id == module_12 %}
          <div class="{{ class }} fellowship-course module-12">
            {% include "cards_course" with course %}
          </div>
        {% else %}
          <div class="{{ class }}">
            {% include "cards_course" with course %}
          </div> 
      {% endif %}
    {% endfor %}

    {% for group in current_person.groups %}
      {% if group.id == rolling_admission_group_id %}
        {% assign enrollment_date = group.enrolled_at %}
        {% include "rolling_admission_schedule" %}
      {% endif %}
    {% endfor %}

  </div>

{% else %}
  {% capture message %}
    {% t shared.zero_state.courses.index,
      key: current_school.course_vocabulary
    %}
  {% endcapture %}
  {% include "courses_zero_state", message: message %}
{% endif %}


