{% include "header" %}
{% include "sub_navigation" %}
{% assign courses_classes = "" %}
{% if features.training_events? %}
  {% assign courses_classes = "col-xs-12 col-sm-6 np-stretch-content" %}
{% else %}
  {% assign courses_classes = "col-xs-12 col-sm-4 np-stretch-content" %}
{% endif %}

<main class="np-main np-dashboard np-subpage-container np-max-width">
  {% include "course_version_outdated_alert", courses: courses.enrolled %}
  <div class="row np-flex-center">
    <div class="col-xs-12 {% if features.training_events? %} col-sm-8 {% endif %}">
      {% if features.learning_paths? %}
        <div class="learning-paths-container" id="in-progress-learning-paths">
          <div class="np-dashboard-resources-title">
            In Progress Learning Paths
          </div>
          {% include "in_progress_learning_paths_index", items: learning_paths.enrolled %}
        </div>

        <div class="learning-paths-container" id="not-started-learning-paths">
          <div class="np-dashboard-resources-title">
            Enrolled Learning Paths
          </div>
          {% include "enrolled_learning_paths_index", items: learning_paths.enrolled %}
        </div>

        <div class="learning-paths-container" id="completed-learning-paths">
          <div class="np-dashboard-resources-title">
            Completed Learning Paths
          </div>
          {% include "completed_learning_paths_index", items: learning_paths.enrolled %}
        </div>
      {% endif %}

      <div class="courses-container" id="in-progress-courses">
        <div class="np-dashboard-resources-title">
          In progress courses
        </div>
        {% include "in_progress_courses_index", class: courses_classes %}
      </div>

      <div class="courses-container" id="not-started-courses">
        <div class="np-dashboard-resources-title">
          Enrolled Courses
        </div>
        {% include "enrolled_courses_index", class: courses_classes %}
      </div>

      <div class="courses-container" id="completed-courses">
        <div class="np-dashboard-resources-title">
          Completed Courses
        </div>
        {% include "completed_courses_index", class: courses_classes %}
      </div>
    </div>

      <div class="np-grid-spacing col-xs-12 col-sm-4">
        <div class="np-dashboard-resources-title">
          {% t .upcoming_events %}
        </div>
    <div class="iframe_div">
      <iframe
	style= "border: 3px solid #B2D7C7;"
	width="100%" height="400"
	src= "https://calendar.google.com/calendar/u/0/embed?height=800&wkst=1&bgcolor=%23ecf0f9&ctz=America/Los_Angeles&showTabs=1&mode=AGENDA&title=WELL+Customer+Training+Workshops&showCalendars=1&showNav=1&showTitle=0&showDate=1&showPrint=1&src=Y184ZXM5aGp2Y2g4YnJnZTU2b3VsZXY0NGgzc0Bncm91cC5jYWxlbmRhci5nb29nbGUuY29t&color=%23B39DDB"
      title="Artera Public Calendar">
      </iframe>
    </div>
      </div>
  </div>
</main>
{% include "footer" %}

<script>
  window.addEventListener('DOMContentLoaded', (event) => {
    document.querySelector('.my-courses-filters').style.removeProperty('display');
  })
</script>

<style>
  .np-dashboard {
    padding-top: 183px;
  }
  .np-stretch-content:nth-child(n+2) {
    margin-top: 24px;
  }

  @media (min-width: 768px) {
    .np-stretch-content {
      margin-top: 24px;
    }

    .np-dashboard-resources-title {
        margin: 20px 0 20px;
    }
  }
.iframe_div {
  display: block;
  overflow: hidden;
  width: 100%;
  height: 400px;
  border-radius: 12px;
  transform: translateZ(0px);
  border: 3px solid #9E7DFF;
}
</style>
