{% extends "email/base.html" %} {% block title %}Plan change confirmation{% endblock %} {% block hero %} {% if immediate %} {% include "email/partials/_hero.html" with hero_variant="primary" hero_title="Plan updated" hero_subtitle="Your new plan is active." hero_icon="layers.png" %} {% else %} {% include "email/partials/_hero.html" with hero_variant="primary" hero_title="Plan change scheduled" hero_subtitle="Your new plan starts on the date below." hero_icon="layers.png" %} {% endif %} {% endblock %} {% block content %}

Hi {{ admin_name }},

{% if immediate %} {% if customer_type == "engineer" %} You are on the {{ to_plan_name }} plan. Billing reflects the new plan. {% else %} {{ company_name }} is on the {{ to_plan_name }} plan. Billing reflects the new plan. {% endif %} {% else %} {% if customer_type == "engineer" %} Your plan will change from {{ from_plan_name }} to {{ to_plan_name }} on {{ effective_date }}. {% else %} The plan for {{ company_name }} will change from {{ from_plan_name }} to {{ to_plan_name }} on {{ effective_date }}. {% endif %} {% endif %}

{% include "email/partials/_detail_row.html" with pill_label="FROM" pill_value=from_plan_name pill_variant="gray" pill_radius="top" %} {% include "email/partials/_detail_row.html" with pill_label="TO" pill_value=to_plan_name pill_variant="primary" %} {% include "email/partials/_detail_row.html" with pill_label="EFFECTIVE" pill_value=effective_date pill_variant="gray" %} {% include "email/partials/_detail_row.html" with pill_label="AMOUNT" pill_value=amount pill_variant="gray" %} {% include "email/partials/_detail_row.html" with pill_label="BILLING CYCLE" pill_value=billing_cycle pill_variant="gray" %} {% if immediate %} {% include "email/partials/_detail_row.html" with pill_label="STATUS" pill_value="Updated" pill_variant="success" pill_border="none" pill_radius="bottom" %} {% else %} {% include "email/partials/_detail_row.html" with pill_label="STATUS" pill_value="Scheduled" pill_variant="warning" pill_border="none" pill_radius="bottom" %} {% endif %}
{% include "email/partials/_cta.html" with cta_url=billing_url cta_label="View subscription" %} {% endblock %}