@php $fmt = static fn ($n) => number_format((float) $n, 2, ',', '.') . ' €'; $fmtQty = static fn ($n) => rtrim(rtrim(number_format((float) $n, 2, ',', '.'), '0'), ','); @endphp @if ($ricevuta->stato === 'annullato')
DOCUMENTO ANNULLATO{{ $ricevuta->motivo_annullo ? ': ' . $ricevuta->motivo_annullo : '' }}
@endif
FATTURA
N. {{ $ricevuta->numeroFormattato() ?? '—' }}
{{ $ricevuta->data_documento?->format('d/m/Y') ?? '—' }}
Data prestazione: {{ $ricevuta->data_prestazione?->format('d/m/Y') ?? ($ricevuta->data_documento?->format('d/m/Y') ?? '—') }}
Emittente
{{ $cedente['ragione_sociale'] ?? '—' }}
@if (!empty($cedente['codice_fiscale'])) CF: {{ $cedente['codice_fiscale'] }}
@endif @if (!empty($cedente['partita_iva'])) P.IVA: {{ $cedente['partita_iva'] }}
@endif {{ $indirizzo_emittente }}
Professione / regime: {{ $professione_regime_label }} @if (!empty($cedente['albo_ordine']) || !empty($cedente['albo_numero_iscrizione']))
Albo: {{ $cedente['albo_ordine'] ?? '' }} @if (!empty($cedente['albo_sezione'])) — sez. {{ $cedente['albo_sezione'] }}@endif @if (!empty($cedente['albo_numero_iscrizione'])) n. {{ $cedente['albo_numero_iscrizione'] }}@endif @endif
Intestatario
{{ $cessionario['nome'] ?? '—' }}
@if (!empty($cessionario['codice_fiscale'])) CF: {{ $cessionario['codice_fiscale'] }}
@endif Indirizzo fiscale: {{ $indirizzo_intestatario }}
@foreach ($righe as $riga) @endforeach
Descrizione prestazione Q.tà Unitario Totale
{{ $riga->descrizione }} {{ $fmtQty($riga->quantita) }} {{ $fmt($riga->importo_unitario) }} {{ $fmt($riga->importo_totale) }}
@if ($riepilogo['mostra_contributo']) @endif
Totale prestazioni {{ $fmt($riepilogo['totale_prestazioni']) }}
{{ $riepilogo['etichetta_iva'] }} {{ $fmt($riepilogo['importo_iva']) }}
{{ $riepilogo['etichetta_contributo'] }} {{ $fmt($riepilogo['importo_contributo']) }}
Bollo dovuto ** {{ $fmt($riepilogo['bollo_dovuto']) }}
Bollo addebitato al cliente {{ $fmt($riepilogo['bollo_addebitato']) }}
TOTALE DA PAGARE {{ $fmt($riepilogo['totale_da_pagare']) }}
Note fiscali
@foreach ($note_fiscali as $nota)

{{ $nota }}

@endforeach
Pagamento / Adempimenti

Metodo e data incasso: @if (!empty($pagamento['etichetta_metodo']) || !empty($pagamento['data'])) @if (!empty($pagamento['etichetta_metodo'])) {{ $pagamento['etichetta_metodo'] }} ({{ $pagamento['etichetta_tracciato'] }}) @else {{ $pagamento['etichetta_tracciato'] }} @endif @if (!empty($pagamento['data'])) , data {{ $pagamento['data'] }} @endif . @else da registrare nel gestionale. @endif

@if (!empty($pagamento['iban']))

IBAN per bonifico: {{ $pagamento['iban'] }}

@endif

Documento sanitario verso persona fisica: verificare adempimenti Sistema TS e divieto SdI.

@if (!empty($ricevuta->note))
Note operative

{{ $ricevuta->note }}

@endif