{% extends '@MailThemes/classic/components/layout.html.twig' %}

{% block content %}
<tr>
  <td align="center" class="titleblock">
    <font size="2" face="{{ languageDefaultFont }}Open-sans, sans-serif" color="#555454">
      <span class="title">{{ 'Congratulations!'|trans({}, 'Emails.Body', locale)|raw }}</span>
    </font>
  </td>
</tr>
<tr>
  <td class="linkbelow">
    <font size="2" face="{{ languageDefaultFont }}Open-sans, sans-serif" color="#555454">
      <span>{{ 'A new order was placed on {shop_name} by the following customer: {firstname} {lastname} ({email})'|trans({}, 'Emails.Body', locale) }}</span>
    </font>
  </td>
</tr>
<tr>
  <td class="space_footer">&nbsp;</td>
</tr>
<tr>
  <td class="box" colspan="3" style="border:1px solid #D6D4D4;">
    <table class="table">
      <tr>
        <td width="10">&nbsp;</td>
        <td>
          <font size="2" face="{{ languageDefaultFont }}Open-sans, sans-serif" color="#555454">
            {% if templateType == 'html' %}

              <p style="border-bottom:1px solid #D6D4D4;">
                {{ 'Order details'|trans({}, 'Emails.Body', locale)|raw }}
              </p>
            
{% endif %}
            <span>
              <span><strong>{{ 'Order:'|trans({}, 'Emails.Body', locale)|raw }}</strong></span> {order_name} {{ 'Placed on'|trans({}, 'Emails.Body', locale)|raw }} {date}<br/><br/>
              <span><strong>{{ 'Payment:'|trans({}, 'Emails.Body', locale)|raw }}</strong></span> {payment}
            </span>
          </font>
        </td>
        <td width="10">&nbsp;</td>
      </tr>
    </table>
  </td>
</tr>
<tr>
  <td>
    <font size="2" face="{{ languageDefaultFont }}Open-sans, sans-serif" color="#555454">
      <table class="table table-recap" bgcolor="#ffffff"><!-- Title -->
        <thead>
          <tr>
            <th style="border:1px solid #D6D4D4;">{{ 'Reference'|trans({}, 'Emails.Body', locale)|raw }}</th>
            <th style="border:1px solid #D6D4D4;">{{ 'Product'|trans({}, 'Emails.Body', locale)|raw }}</th>
            <th style="border:1px solid #D6D4D4;">{{ 'Unit price'|trans({}, 'Emails.Body', locale)|raw }}</th>
            <th style="border:1px solid #D6D4D4;">{{ 'Quantity'|trans({}, 'Emails.Body', locale)|raw }}</th>
            <th style="border:1px solid #D6D4D4;">{{ 'Total price'|trans({}, 'Emails.Body', locale)|raw }}</th>
          </tr>
        </thead>
        <tbody>
          {items}
          <tr class="conf_body">
            <td bgcolor="#f8f8f8" colspan="4" style="border:1px solid #D6D4D4;">
              <table class="table">
                <tr>
                  <td width="10">&nbsp;</td>
                  <td align="right">
                    <font size="2" face="{{ languageDefaultFont }}Open-sans, sans-serif" color="#555454">
                      <strong>{{ 'Products'|trans({}, 'Emails.Body', locale)|raw }}</strong>
                    </font>
                  </td>
                  <td width="10">&nbsp;</td>
                </tr>
              </table>
            </td>
            <td bgcolor="#f8f8f8" align="right" colspan="4" style="border:1px solid #D6D4D4;">
              <table class="table">
                <tr>
                  <td width="10">&nbsp;</td>
                  <td align="right">
                    <font size="2" face="{{ languageDefaultFont }}Open-sans, sans-serif" color="#555454">
                      {total_products}
                    </font>
                  </td>
                  <td width="10">&nbsp;</td>
                </tr>
              </table>
            </td>
          </tr>
          <tr class="conf_body">
            <td bgcolor="#f8f8f8" colspan="4" style="border:1px solid #D6D4D4;">
              <table class="table">
                <tr>
                  <td width="10">&nbsp;</td>
                  <td align="right">
                    <font size="2" face="{{ languageDefaultFont }}Open-sans, sans-serif" color="#555454">
                      <strong>{{ 'Discounts'|trans({}, 'Emails.Body', locale)|raw }}</strong>
                    </font>
                  </td>
                  <td width="10">&nbsp;</td>
                </tr>
              </table>
            </td>
            <td bgcolor="#f8f8f8" colspan="4" style="border:1px solid #D6D4D4;">
              <table class="table">
                <tr>
                  <td width="10">&nbsp;</td>
                  <td align="right">
                    <font size="2" face="{{ languageDefaultFont }}Open-sans, sans-serif" color="#555454">
                      {total_discounts}
                    </font>
                  </td>
                  <td width="10">&nbsp;</td>
                </tr>
              </table>
            </td>
          </tr>
          <tr class="conf_body">
            <td bgcolor="#f8f8f8" colspan="4" style="border:1px solid #D6D4D4;">
              <table class="table">
                <tr>
                  <td width="10">&nbsp;</td>
                  <td align="right">
                    <font size="2" face="{{ languageDefaultFont }}Open-sans, sans-serif" color="#555454">
                      <strong>{{ 'Gift-wrapping'|trans({}, 'Emails.Body', locale)|raw }}</strong>
                    </font>
                  </td>
                  <td width="10">&nbsp;</td>
                </tr>
              </table>
            </td>
            <td bgcolor="#f8f8f8" colspan="4" style="border:1px solid #D6D4D4;">
              <table class="table">
                <tr>
                  <td width="10">&nbsp;</td>
                  <td align="right">
                    <font size="2" face="{{ languageDefaultFont }}Open-sans, sans-serif" color="#555454">
                      {total_wrapping}
                    </font>
                  </td>
                  <td width="10">&nbsp;</td>
                </tr>
              </table>
            </td>
          </tr>
          <tr class="conf_body">
            <td bgcolor="#f8f8f8" colspan="4" style="border:1px solid #D6D4D4;">
              <table class="table">
                <tr>
                  <td width="10">&nbsp;</td>
                  <td align="right">
                    <font size="2" face="{{ languageDefaultFont }}Open-sans, sans-serif" color="#555454">
                      <strong>{{ 'Shipping'|trans({}, 'Emails.Body', locale)|raw }}</strong>
                    </font>
                  </td>
                  <td width="10">&nbsp;</td>
                </tr>
              </table>
            </td>
            <td bgcolor="#f8f8f8" colspan="4" style="border:1px solid #D6D4D4;">
              <table class="table">
                <tr>
                  <td width="10">&nbsp;</td>
                  <td align="right">
                    <font size="2" face="{{ languageDefaultFont }}Open-sans, sans-serif" color="#555454">
                      {total_shipping}
                    </font>
                  </td>
                  <td width="10">&nbsp;</td>
                </tr>
              </table>
            </td>
          </tr>
          <tr class="conf_body">
            <td bgcolor="#f8f8f8" colspan="4" style="border:1px solid #D6D4D4;">
              <table class="table">
                <tr>
                  <td width="10">&nbsp;</td>
                  <td align="right">
                    <font size="2" face="{{ languageDefaultFont }}Open-sans, sans-serif" color="#555454">
                      <strong>{{ 'Total Tax paid'|trans({}, 'Emails.Body', locale)|raw }}</strong>
                    </font>
                  </td>
                  <td width="10">&nbsp;</td>
                </tr>
              </table>
            </td>
            <td bgcolor="#f8f8f8" colspan="4" style="border:1px solid #D6D4D4;">
              <table class="table">
                <tr>
                  <td width="10">&nbsp;</td>
                  <td align="right">
                    <font size="2" face="{{ languageDefaultFont }}Open-sans, sans-serif" color="#555454">
                      {total_tax_paid}
                    </font>
                  </td>
                  <td width="10">&nbsp;</td>
                </tr>
              </table>
            </td>
          </tr>
          <tr class="conf_body">
            <td bgcolor="#f8f8f8" colspan="4" style="border:1px solid #D6D4D4;">
              <table class="table">
                <tr>
                  <td width="10">&nbsp;</td>
                  <td align="right">
                    <font size="2" face="{{ languageDefaultFont }}Open-sans, sans-serif" color="#555454">
                      <strong>{{ 'Total paid'|trans({}, 'Emails.Body', locale)|raw }}</strong>
                    </font>
                  </td>
                  <td width="10">&nbsp;</td>
                </tr>
              </table>
            </td>
            <td bgcolor="#f8f8f8" colspan="4" style="border:1px solid #D6D4D4;">
              <table class="table">
                <tr>
                  <td width="10">&nbsp;</td>
                  <td align="right" class="total_amount">
                    <font size="4" face="{{ languageDefaultFont }}Open-sans, sans-serif" color="#555454">
                      {total_paid}
                    </font>
                  </td>
                  <td width="10">&nbsp;</td>
                </tr>
              </table>
            </td>
          </tr>
        </tbody>
      </table>
    </font>
  </td>
</tr>
<tr>
  <td class="box" colspan="3" style="border:1px solid #D6D4D4;">
    <table class="table">
      <tr>
        <td width="10">&nbsp;</td>
        <td>
          <font size="2" face="{{ languageDefaultFont }}Open-sans, sans-serif" color="#555454">
            {% if templateType == 'html' %}

              <p style="border-bottom:1px solid #D6D4D4;">
                {{ 'Carrier:'|trans({}, 'Emails.Body', locale)|raw }}
              </p>
            
{% endif %}
            <span>
              {carrier}
            </span>
          </font>
        </td>
        <td width="10">&nbsp;</td>
      </tr>
    </table>
  </td>
</tr>
<tr>
  <td class="space_footer">&nbsp;</td>
</tr>
<tr>
  <td>
    <table class="table">
      <tr>
        <td class="box address" width="310" style="border:1px solid #D6D4D4;">
          <table class="table">
            <tr>
              <td width="10">&nbsp;</td>
              <td>
                <font size="2" face="{{ languageDefaultFont }}Open-sans, sans-serif" color="#555454">
                  {% if templateType == 'html' %}

                    <p style="border-bottom:1px solid #D6D4D4;">
                      {{ 'Delivery address'|trans({}, 'Emails.Body', locale)|raw }}
                    </p>
                  
{% endif %}
                  <span>
                    {delivery_block_html}
                  </span>
                </font>
              </td>
              <td width="10">&nbsp;</td>
            </tr>
          </table>
        </td>
        <td width="20" class="space_address">&nbsp;</td>
        <td class="box address" width="310" style="border:1px solid #D6D4D4;">
          <table class="table">
            <tr>
              <td width="10">&nbsp;</td>
              <td>
                <font size="2" face="{{ languageDefaultFont }}Open-sans, sans-serif" color="#555454">
                  {% if templateType == 'html' %}

                    <p style="border-bottom:1px solid #D6D4D4;">
                      {{ 'Billing address'|trans({}, 'Emails.Body', locale)|raw }}
                    </p>
                  
{% endif %}
                  <span>
                    {invoice_block_html}
                  </span>
                </font>
              </td>
              <td width="10">&nbsp;</td>
            </tr>
          </table>
        </td>
      </tr>
    </table>
  </td>
</tr>
<tr>
  <td class="space_footer">&nbsp;</td>
</tr>
<tr>
  <td class="box" colspan="3" style="border:1px solid #D6D4D4;">
    <table class="table">
      <tr>
        <td width="10">&nbsp;</td>
        <td>
          <font size="2" face="{{ languageDefaultFont }}Open-sans, sans-serif" color="#555454">
            {% if templateType == 'html' %}

              <p style="border-bottom:1px solid #D6D4D4;">
                {{ 'Customer message:'|trans({}, 'Emails.Body', locale)|raw }}
              </p>
            
{% endif %}
            <span>
              {message}
            </span>
          </font>
        </td>
        <td width="10">&nbsp;</td>
      </tr>
    </table>
  </td>
</tr>
{% endblock %}
