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

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

{{-- Said here rather than only thrown at the click: the company profile is another page, and finding out at the last step costs the whole form. --}} @if ($missing !== []) {{ __('new_invoice.missing_profile', ['fields' => collect($missing)->map(fn ($f) => __('finance.field.'.$f))->join(', ')]) }} {{ __('new_invoice.to_finance') }} @endif @error('lines'){{ $message }}@enderror
{{-- Who and out of which series --}}

{{ __('new_invoice.who_title') }}

@error('customerUuid')

{{ $message }}

@enderror
{{-- The whole point of routing this through the same door: one series, one consecutive numbering, no document written outside it. --}}

{{ __('new_invoice.series_hint') }}

{{-- The lines. A form that IS the page (R20): this creates a record, it does not edit one in a table row. --}}

{{ __('new_invoice.lines_title') }}

{{ __('new_invoice.add_line') }}
@foreach ($lines as $i => $line)
@endforeach
{{-- What the document will say, before it exists. Computed by the same InvoiceMath the invoice itself uses — a preview doing its own arithmetic would be a second answer, and the first one anybody notices differs is on a document that cannot be changed. --}}

{{ __('new_invoice.preview_title') }}

{{ __('new_invoice.net') }}
{{ Number::currency($totals['net'] / 100, in: $currency, locale: app()->getLocale()) }}
{{ __('new_invoice.tax') }} {{ $treatment->percentLabel() }} %
{{ Number::currency($totals['tax'] / 100, in: $currency, locale: app()->getLocale()) }}
{{ __('new_invoice.gross') }}
{{ Number::currency($totals['gross'] / 100, in: $currency, locale: app()->getLocale()) }}
@if ($treatment->reverseCharge) {{-- Shown before issuing, not discovered on the PDF. --}} {{ __('invoice.reverse_charge') }} @endif

{{ __('new_invoice.final_note') }}

{{-- :disabled, not @disabled: the directive compiles to a raw `if … echo … endif` and a Blade COMPONENT tag puts that inside its attribute bag, where it is a PHP syntax error rather than an attribute. On a plain element (the line's own remove button) it is fine. --}} {{ __('new_invoice.issue') }} {{ __('new_invoice.cancel') }}