<h2>Payment Received</h2>

<p>Dear {{ member.billing_firstname }},</p>

<p>We have received your payment. Thank you.</p>

<table style="width: 100%; border-collapse: collapse; margin: 20px 0;">
    <tr>
        <td style="padding: 8px; border: 1px solid #ddd; font-weight: bold; width: 150px;">PO Number</td>
        <td style="padding: 8px; border: 1px solid #ddd;">{{ account_order.po_number }}</td>
    </tr>
    <tr>
        <td style="padding: 8px; border: 1px solid #ddd; font-weight: bold;">Amount Paid</td>
        <td style="padding: 8px; border: 1px solid #ddd;">&pound;{{ account_order.amount_due|number_format(2) }}</td>
    </tr>
    <tr>
        <td style="padding: 8px; border: 1px solid #ddd; font-weight: bold;">Payment Date</td>
        <td style="padding: 8px; border: 1px solid #ddd;">{{ account_order.paid_at|date('d/m/Y H:i') }}</td>
    </tr>
    {% if account_order.payment_reference %}
    <tr>
        <td style="padding: 8px; border: 1px solid #ddd; font-weight: bold;">Reference</td>
        <td style="padding: 8px; border: 1px solid #ddd;">{{ account_order.payment_reference }}</td>
    </tr>
    {% endif %}
</table>

<p>This order is now marked as paid.</p>
