{% assign lp_set_front_for_my_company_desc = "This learning path is for account admins who are responsible for setting up your company's Front account." %}
{% assign lp_front_for_daily_work_desc = "This learning path is for Front users who will be using Front for their daily work and team collaboration." %}
{% assign lp_make_smarter_decisions_with_front_analytics_desc = "This learning path is for users who want to leverage Front Analytics to help them make more intelligent and insightful business decisions." %}

{% assign lp_front_administrator_certification = "Be recognized for your in-depth knowledge of Front and earn your company's trust as the go-to expert for all things Front by becoming a Front Certified Administrator!" %}

<div class="np-card np-card-learning-path-vertical">
  <div class="np-card-container">
    <img
      alt="{{ learning_path.name }}"
      class="course-card-image"
      src="{{ learning_path.image_url }}" />
    <div class="np-card-content np-card-content-vertical np-card-padding">
      <div class="np-card-header-type eyebrow-lg">{% t shared.learning_path.title %}</div>
      <h3 class="np-card-content-title header-5 fw-semibold">
        {% if learning_path.name == "Make smarter decisions with Front analytics" %}
          Front Analytics
        {% else %}
          {{ learning_path.name }}
        {% endif %}
      </h3>
      <div class="paragraph-2">
        {% if learning_path.name == "Set up Front for my company" %}
          {{ lp_set_front_for_my_company_desc }}
        {% elsif learning_path.name == "Front for my daily work" %}
          {{ lp_front_for_daily_work_desc }}
        {% elsif learning_path.name == "Make smarter decisions with Front analytics" %}
          {{ lp_make_smarter_decisions_with_front_analytics_desc }}
        {% elsif learning_path.name == "Front Administrator Certification" %}
          {{ lp_front_administrator_certification }}
        {% endif %}
      </div>
      <div class="np-card-content-footer">
        {% comment %} <a class="fw-semibold" href="{% route learning_path, id: learning_path.id %}">
        Start Path
        <i class="far fa-long-arrow-right"></i>
        </a> {% endcomment %}
        {% assign custom_path_url = "/app/learning_paths" %}
        {% if current_person.signed_in? %}
          {% assign custom_path_url = " route learning_path, id: learning_path.id " %}
        {% else %}
          {% if learning_path.name == "Set up Front for my company" %}
            {% assign custom_path_url = "/app/learning-path-41690773-e559-4be8-8af6-ab5fa22fb0df" %}
          {% elsif learning_path.name == "Front for my daily work" %}
            {% assign custom_path_url = "/app/learning-path-0e9846a6-4427-44a0-b49e-70ba3616ec7f" %}
          {% elsif learning_path.name == "Make smarter decisions with Front analytics" %}
            {% assign custom_path_url = "/app/learning_paths/dfd6953c-0cf6-4f8d-93ff-2ba18645def3" %}
          {% endif %}
        {% endif %}

        {% if current_person.signed_in? %}
          <a class="fw-semibold" href="{% route learning_path, id: learning_path.id %}">
            Start Path
            <i class="far fa-long-arrow-right"></i>
          </a>
        {% else %}
          <a class="fw-semibold" href="{{custom_path_url}}">
            Start Path
            <i class="far fa-long-arrow-right"></i>
          </a>
        {% endif %}
      </div>
    </div>
  </div>
</div>