@php use App\Support\MoneyFormat; $cur = (string) $invoice->currency; $money = fn ($m) => MoneyFormat::display((int) $m, $cur); $invoice->loadMissing('items', 'taxSummary'); @endphp
{{ str_replace('_',' ',$invoice->doc_type) }}
{{ $invoice->invoice_number }}
{{ __('Total') }}
{{ $money($invoice->total_minor) }}
{{ __('Customer') }}
{{ $invoice->buyer_name ?: '—' }}
{{ $invoice->buyer_phone }} {{ $invoice->buyer_email }}
{{ str_replace('_',' ',$invoice->send_status) }}
@foreach ($invoice->items as $it)@endforeach
{{ __('Item') }}{{ __('Qty') }}{{ __('Amount') }}
{{ $it->description }}{{ rtrim(rtrim((string)$it->qty,'0'),'.') }}{{ $money($it->line_subtotal_minor) }}
{{ __('Download PDF') }} {{ __('Public link') }}
@csrf
@if ($invoice->send_status === 'send_failed' && $invoice->send_reason)
{{ __('Delivery issue') }}: {{ str_replace('_',' ',$invoice->send_reason) }}
@endif