{% 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;">
                            Just a quick reminder! Your next subscription issue date is approaching {{ next_issue_date }}.
                        </p>

                        <p><strong>Current dosage due to be issued:</strong></p>
                        <ol class="subscriptionList">
                            <li>
                                {% for line_item in items %}
                                    {{ line_item.name }} - {{ line_item.size.strength }} x {{ line_item.size.size }}
                                    {# {{ item.item_name ~ ' ' ~ (item.size|not_one_size) }} #}
                                {% endfor %}
                            </li>
                        </ol>

                        {% 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 %}

                    </td>
                </tr>

            </table>

        </td>

    </tr>

    <tr>

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

    </tr>

{% endblock %}
