@php $company = $setting?->company_name ?: config('app.name'); $primary = $setting?->primary_color ?: '#124a61'; $symbol = $symbol ?? ''; $code = $invoice->currency_code ?: ''; $money = function ($value) use ($symbol, $code) { $formatted = number_format((float) $value, 2); return ($symbol !== '' ? $symbol . ' ' : ($code !== '' ? $code . ' ' : '')) . $formatted; }; $items = $invoice->lineItems ?? collect(); $overdue = $invoice->due_date && $invoice->due_date->isPast(); @endphp

Dear {{ $invoice->payerName() ?: 'Customer' }},

This is a friendly reminder that invoice {{ $invoice->invoice_number }} from {{ $company }} has an outstanding balance.

Amount Due {{ $money($invoice->balance_due) }}
Due Date {{ optional($invoice->due_date)->format('F j, Y') ?: '—' }}@if ($overdue)  (overdue)@endif
@if ($items->isNotEmpty())

Items

@foreach ($items as $line) @endforeach
•  {{ $line->name }} @if ((float) $line->qty > 0) × {{ rtrim(rtrim(number_format((float) $line->qty, 2), '0'), '.') }} @endif {{ $money($line->line_total) }}
@endif
Pay {{ $money($invoice->balance_due) }}

@if ($canPayOnline) Prefer to review first? View the full invoice online. @else View the invoice and payment details online. @endif

If you have already made this payment, please disregard this message.