ITEMS ORDERED
{% include "invoices/invoice_products_table.html" with products=products_first_page order=order %}
{% if not rest_of_products|length %}
{% if products_first_page|length == 4 %}
{% endif %}
{% include "invoices/invoice_summary_table.html" with order=order %}
{% else %}
{% for product_set in rest_of_products %}
{% include "invoices/invoice_products_table.html" with products=product_set order=order %}
{% if forloop.last %}
{% if product_set|length > 11 %}
{% endif %}
{% include "invoices/invoice_summary_table.html" with order=order gift_cards_payment=gift_cards_payment %}
{% endif %}
{% endfor %}
{% endif %}