{{ $companyName }}

@if($daysOffset > 0)

{{ __('email.common.greeting', ['name' => $invoice->client?->first_name ?? __('email.common.customer')]) }}

{{ __('email.payment_reminder.due_in', ['number' => $invoice->invoice_num ?? $invoice->id, 'days' => $daysOffset]) }}

@else

{{ __('email.common.greeting', ['name' => $invoice->client?->first_name ?? __('email.common.customer')]) }}

{{ __('email.payment_reminder.overdue', ['number' => $invoice->invoice_num ?? $invoice->id, 'days' => abs($daysOffset)]) }}

@endif
{{ __('email.common.invoice_number_label') }}{{ $invoice->invoice_num ?? $invoice->id }}
{{ __('email.common.amount_label') }}{{ dual_money_fmt($invoice->total, $invoice) }}
{{ __('email.common.due_date_label') }}{{ $invoice->due_date?->format(date_fmt()) ?? 'N/A' }}

{{ __('email.payment_reminder.to_pay_intro') }}

@include('emails.partials.action', ['url' => route('client.invoices.show', $invoice->id), 'label' => __('email.common.pay_invoice')])

{{ $companyName }}