<x-mail.layout
    :heading="__('invoice_mail.heading', ['number' => $number])"
    :preheader="__('invoice_mail.preheader', ['amount' => $gross.' '.$currency])"
    :greeting="$name ? __('invoice_mail.greeting', ['name' => $name]) : null"
>

<tr><td style="padding:0 24px 24px 24px;">
    <p style="margin:0;font-size:15px;line-height:24px;color:#43434e;">{{ __('invoice_mail.intro') }}</p>
</td></tr>

<tr><td style="padding:0 24px;">
    <table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;background-color:#fafafb;border:1px solid #e9e9ee;border-radius:8px;">
        <tr>
            <td style="padding:14px 16px 6px 16px;font-size:13px;line-height:20px;color:#6e6e7a;width:38%;">{{ __('invoice_mail.field_number') }}</td>
            <td style="padding:14px 16px 6px 16px;font-family:'IBM Plex Mono',ui-monospace,Menlo,Consolas,monospace;font-size:13px;line-height:20px;color:#17171c;font-weight:600;">{{ $number }}</td>
        </tr>
        <tr>
            <td style="padding:0 16px 6px 16px;font-size:13px;line-height:20px;color:#6e6e7a;">{{ __('invoice_mail.field_date') }}</td>
            <td style="padding:0 16px 6px 16px;font-size:13px;line-height:20px;color:#43434e;">{{ $issuedOn }}</td>
        </tr>
        @if ($dueOn)
        <tr>
            <td style="padding:0 16px 6px 16px;font-size:13px;line-height:20px;color:#6e6e7a;">{{ __('invoice_mail.field_due') }}</td>
            <td style="padding:0 16px 6px 16px;font-size:13px;line-height:20px;color:#43434e;">{{ $dueOn }}</td>
        </tr>
        @endif
        <tr>
            <td style="padding:0 16px 14px 16px;font-size:13px;line-height:20px;color:#6e6e7a;">{{ __('invoice_mail.field_amount') }}</td>
            <td style="padding:0 16px 14px 16px;font-family:'IBM Plex Mono',ui-monospace,Menlo,Consolas,monospace;font-size:15px;line-height:20px;color:#17171c;font-weight:600;">{{ $gross }} {{ $currency }}</td>
        </tr>
    </table>
</td></tr>

@if ($paymentTerms)
<tr><td style="padding:20px 24px 0 24px;">
    <p style="margin:0;font-size:15px;line-height:24px;color:#43434e;">{{ $paymentTerms }}</p>
</td></tr>
@endif

<tr><td style="padding:24px 24px 0 24px;">
    <table role="presentation" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;">
        <tr><td align="center" bgcolor="#b8500a" style="background-color:#b8500a;border-radius:8px;">
            <a href="{{ $invoicesUrl }}" style="display:inline-block;padding:13px 26px;font-family:'IBM Plex Sans',-apple-system,Helvetica,Arial,sans-serif;font-size:15px;line-height:20px;font-weight:600;color:#ffffff;text-decoration:none;border-radius:8px;">{{ __('invoice_mail.action') }}</a>
        </td></tr>
    </table>
</td></tr>

<tr><td style="padding:24px 24px 32px 24px;">
    <table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;">
        <tr><td style="border-top:1px solid #e9e9ee;padding-top:20px;">
            <p style="margin:0;font-size:13px;line-height:20px;color:#6e6e7a;">{{ __('invoice_mail.attached') }}</p>
        </td></tr>
    </table>
</td></tr>

</x-mail.layout>
