@php $primary = $setting?->primary_color ?: '#124a61'; $accent = $setting?->accent_color ?: '#2e86ab'; $companyName = $setting?->company_name ?: $invoice->team?->name; $symbol = $currencySymbol ?: ''; $code = $invoice->currency_code ?: ''; $money = function ($value) use ($symbol, $code) { $formatted = number_format((float) $value, 2); return ($symbol !== '' ? $symbol . ' ' : ($code !== '' ? $code . ' ' : '')) . $formatted; }; $logoUrl = $setting?->logoSrc(); $isPaid = in_array($invoice->status, ['PAID'], true) || (float) $invoice->balance_due <= 0.01; $isPartial = ! $isPaid && (float) $invoice->amount_paid > 0; @endphp {{ __('Payment Status') }} · {{ $invoice->invoice_number }}
@if ($logoUrl) {{ $companyName }} @endif

{{ $companyName }}

@if ($isPaid)

{{ __('Thank you!') }}

{{ __('Your payment for invoice') }} {{ $invoice->invoice_number }} {{ __('was received.') }}

@elseif ($isPartial)

{{ __('Partial payment received') }}

{{ __('A balance remains on invoice') }} {{ $invoice->invoice_number }}.

@else

{{ __('Payment pending') }}

{{ __('We have not yet confirmed your payment for invoice') }} {{ $invoice->invoice_number }}. {{ __('This page will update once it clears.') }}

@endif
{{ __('Total') }}
{{ $money($invoice->total) }}
{{ __('Amount Paid') }}
{{ $money($invoice->amount_paid) }}
{{ __('Balance Due') }}
{{ $money($invoice->balance_due) }}
{{ __('Back to invoice') }}

{{ __('Powered by') }} {{ $companyName }}