@php($summary = $this->getHeaderSummary())
Voce di spesa
{{ $this->voce->codice ? $this->voce->codice . ' — ' : '' }}{{ $this->voce->descrizione ?? ('Voce #' . $this->voce->id) }}
Tabella: {{ $this->voce->tabellaMillesimaleDefault?->codice_tabella ?? '—' }} · Gestione: {{ $summary['gestione'] ?? '—' }}
Fatture: {{ (int) ($summary['fatture'] ?? 0) }}
Totali e consumi
Imponibile
€ {{ number_format((float) ($summary['imponibile'] ?? 0), 2, ',', '.') }}
IVA
€ {{ number_format((float) ($summary['iva'] ?? 0), 2, ',', '.') }}
Totale
€ {{ number_format((float) ($summary['totale'] ?? 0), 2, ',', '.') }}
Consumo totale
{{ number_format((float) ($summary['consumo'] ?? 0), 3, ',', '.') }} {{ $summary['consumo_unita'] ?? '' }}
Voce attiva
{{ $this->voce->attiva ? 'Sì' : 'No' }}
Mastrino (fatture collegate) {{ $this->table }}