{{ __('invoices.title') }}

{{ __('invoices.subtitle') }}

@if ($invoices->isEmpty())

{{ __('invoices.empty') }}

@else
@foreach ($invoices as $invoice) {{-- ->local() even for a date (R19): stored in UTC, and around midnight the wall clock is already tomorrow. --}} @endforeach
{{ __('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) {{ __('invoices.storno') }} @endif {{ $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. --}} {{ __('invoices.pdf') }}
@if ($invoices->hasPages())
{{ $invoices->links() }}
@endif @endif