<h2>New Trade Account Application</h2>

<p>A new trade account application has been submitted. Please review the details below:</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;">Company Name</td>
        <td style="padding: 8px; border: 1px solid #ddd;">{{ trade_customer.company_name }}</td>
    </tr>
    <tr>
        <td style="padding: 8px; border: 1px solid #ddd; font-weight: bold;">Contact Name</td>
        <td style="padding: 8px; border: 1px solid #ddd;">{{ member.billing_firstname }} {{ member.billing_lastname }}</td>
    </tr>
    <tr>
        <td style="padding: 8px; border: 1px solid #ddd; font-weight: bold;">Email</td>
        <td style="padding: 8px; border: 1px solid #ddd;">{{ member.email }}</td>
    </tr>
    <tr>
        <td style="padding: 8px; border: 1px solid #ddd; font-weight: bold;">Phone</td>
        <td style="padding: 8px; border: 1px solid #ddd;">{{ trade_customer.phone }}</td>
    </tr>
    {% if address %}
    <tr>
        <td style="padding: 8px; border: 1px solid #ddd; font-weight: bold;">Address</td>
        <td style="padding: 8px; border: 1px solid #ddd;">
            {{ address.address_1 }}<br>
            {% if address.address_2 %}{{ address.address_2 }}<br>{% endif %}
            {{ address.city }}<br>
            {{ address.postcode }}
        </td>
    </tr>
    {% endif %}
    {% if trade_customer.message %}
    <tr>
        <td style="padding: 8px; border: 1px solid #ddd; font-weight: bold;">Message</td>
        <td style="padding: 8px; border: 1px solid #ddd;">{{ trade_customer.message }}</td>
    </tr>
    {% endif %}
</table>

<p>
    <a href="{{ settings.SITE_URL }}/modules/B2B/admin/customers.php?action=view&id={{ trade_customer.id }}"
       style="display: inline-block; padding: 10px 20px; background: #007bff; color: #fff; text-decoration: none; border-radius: 4px;">
        Review Application
    </a>
</p>
