@php $label = $document->kind === 'estimate' ? 'Estimate' : 'Invoice'; $fmt = fn ($n) => $document->currency.' '.number_format((float) $n, 2); @endphp

{{ $businessName }}

{{ $label }} {{ $document->number }}

Hi {{ $document->customer_name }},

Please find your {{ strtolower($label) }} from {{ $businessName }}.

@if ($document->kind === 'invoice') @if ($document->due_date) @endif @endif
Total{{ $fmt($document->total) }}
Balance due{{ $fmt($document->balance()) }}
Due date{{ $document->due_date->format('M j, Y') }}

View {{ strtolower($label) }}

If the button does not work, open this link: {{ $url }}