{{ __('invoices.subtitle') }}
{{ __('invoices.empty') }}
@else| {{ __('invoices.col_no') }} | {{ __('invoices.col_date') }} | {{ __('invoices.col_net') }} | {{ __('invoices.col_gross') }} | |
|---|---|---|---|---|
|
{{ $invoice->number }}
{{-- A cancellation says so on the row. Two documents
with opposite figures and nothing to tell them
apart reads as a double charge. --}}
@if ($invoice->cancels_invoice_id !== null)
|
{{-- ->local() even for a date (R19): stored in UTC, and
around midnight the wall clock is already tomorrow. --}}
{{ $invoice->issued_on?->local()->format('d.m.Y') }} | {{ \App\Services\Billing\InvoiceMath::money($invoice->net_cents) }} | {{ \App\Services\Billing\InvoiceMath::money($invoice->gross_cents) }} {{ $invoice->currency }} |
{{-- A link, not a Livewire action: a PDF is a file
download, and routing one through a component
round-trip only adds a way for it to fail. The
route resolves the document against the
signed-in customer itself — this link being
here is not what makes it theirs. --}}
|