<div class="np-card np-event-card">
  <div class="np-card-container">
    <div class="np-card-content-training-event">
      <h3 class="np-card-content-title">
        {{ training_event.title }}
      </h3>
      <div class="np-card-content-subtitle">
        {% t shared.event_types, key: training_event.event_type %}
      </div>
      <div class="np-card-training-session">
        <span class="np-card-content-label">
          {% t .next_session %}
        </span>
        <div class="np-card-training-session-date">
          <div>
            <div class="np-card-training-session-date-month">
              {{ training_event.sessions.first.month }}
            </div>
            <div class="np-card-training-session-date-year np-opacity-50">
              {{ training_event.sessions.first.year }}
            </div>
          </div>
          <div class="np-card-training-session-date-day">
             {% if training_event.sessions.first.day < 10 %}0{% endif %}{{ training_event.sessions.first.day }}
          </div>
          <div class="np-button-background-color np-card-training-session-date-bar"></div>
        </div>
      </div>
    </div>
    <div class="np-card-content np-card-content-vertical np-card-padding">
      <div class="np-card-training-sessions">
        <span class="np-card-training-sessions-label">
          {% t .sessions, count: training_event.sessions.size %}
        </span>
        <a
          class="np-button"
          href="{% route training_session, id: training_event.sessions.first.id %}"
        >
          {% t shared.view %}
        </a>
      </div>
    </div>
  </div>
</div>
