{% extends 'emails/layouts/notification.twig' %}

{% block before_content %}

{% endblock %}

{% block content %}

    <tr>

        <td>

            <table width="{{ inner_wrapper_width }}" align="center" border="0" cellspacing="0" cellpadding="0"
                   style="{{ font_family }}margin:0 auto;"
            >

                <tr>
                    <td style="{{ intro_text }}">
                        <p style="{{ text_reset }}margin-bottom:15px;">
                            Hi <strong>{{ order.address.billing.firstname }}</strong>,
                        </p>

                        <p style="{{ text_reset }}margin-bottom:15px;">
                            {{ message}} !
                            {% if subscription.status == 'active' %}
                            The next issue date is {{ next_issue_date|date('d/m/Y') }}
                            {% endif %}
                        </p>

                        {% if call_to_action is not empty %}
                        <p style="{{ text_reset }}margin-bottom:15px;">
                            {{ call_to_action.text }}
                            <br><br>
                            <a href="{{ call_to_action.url }}" title="Click to Open the Link">{{ call_to_action.button_text }}</a>
                        </p>
                        {% endif %}

                        <p style="{{ large_intro_text }} {{ text_reset }} margin-bottom:15px;">
                            {% if subscription.status == 'paused' %}
                                If you have any questions or need assistance, feel free to contact us.
                            {% elseif subscription.status == 'cancelled' %}
                                If there’s anything we can assist you with or if you’d like to share feedback about your experience, please don’t hesitate to get in touch.
                            {% endif %}
                        </p>

                    </td>
                </tr>

            </table>

        </td>

    </tr>

    <tr>

        <td style="height:50px"></td>

    </tr>

    {% include 'emails/includes/basket.twig' %}


    {% if content_below_basket is not empty %}
    <tr>
        <td>

            <table width="{{ inner_wrapper_width }}" align="center" border="0" cellspacing="0" cellpadding="0"
                   style="{{ font_family }}margin:0 auto;"
            >

                <tr>
                    <td style="{{ intro_text }}">
                        <p style="{{ text_reset }}margin-bottom:15px;">
                            {{ content_below_basket }}
                        </p>

                    </td>
                </tr>

            </table>

        </td>
    </tr>
    {% endif %}
{% endblock %}
