Voci di spesa
@php $tabs = [ 'ordinaria' => 'ORDINARIE', 'acqua' => 'ACQUA', 'riscaldamento' => 'RISCALDAMENTO', 'straordinaria' => 'STRAORDINARIE', ]; @endphp
@foreach($tabs as $key => $label) @php $active = ($this->tipoGestioneTab ?? 'ordinaria') === $key; $btnClass = $active ? 'fi-btn fi-btn-color-primary fi-btn-size-sm' : 'fi-btn fi-btn-color-gray fi-btn-size-sm'; @endphp @endforeach
Anno
Preset ripartizione
{{ $this->table }}
@php($tabellaOptions = $this->getTabelleMillesimaliOptions()) @php($focus = $this->getDettaglioTabellaFocus()) @if(!empty($tabellaOptions))
Dettaglio tabella
Tabella
{{ $focus['label'] ?? '—' }}
Voci: {{ (int) ($focus['count'] ?? 0) }}
Totale Prev: {{ number_format((float) ($focus['totale_prev'] ?? 0), 2, ',', '.') }}
Totale Cons: {{ number_format((float) ($focus['totale_cons'] ?? 0), 2, ',', '.') }}
@php($voci = is_array($focus['voci'] ?? null) ? $focus['voci'] : [])
@forelse($voci as $v) @php($code = (string) ($v['codice'] ?? '')) @php($desc = (string) ($v['descrizione'] ?? '')) @empty @endforelse
Cod. Descrizione Prev Cons %Prop %Inq Attiva
{{ $code !== '' ? $code : '—' }} {{ $desc !== '' ? $desc : '—' }} {{ number_format((float) ($v['prev'] ?? 0), 2, ',', '.') }} {{ number_format((float) ($v['cons'] ?? 0), 2, ',', '.') }} {{ number_format((float) ($v['prop'] ?? 0), 2, ',', '.') }} {{ number_format((float) ($v['inq'] ?? 0), 2, ',', '.') }} {{ !empty($v['attiva']) ? 'Sì' : 'No' }}
Nessuna voce associata alla tabella selezionata.
@endif
Totale Prev: {{ number_format((float) $this->getTotalePreventivo(), 2, ',', '.') }}
Totale Cons: {{ number_format((float) $this->getTotaleConsuntivo(), 2, ',', '.') }}
@if(($this->tipoGestioneTab ?? 'ordinaria') !== 'acqua' && ((float) $this->getTotalePreventivoAcqua() > 0 || (float) $this->getTotaleConsuntivoAcqua() > 0))
ACQUA Prev: {{ number_format((float) $this->getTotalePreventivoAcqua(), 2, ',', '.') }}
ACQUA Cons: {{ number_format((float) $this->getTotaleConsuntivoAcqua(), 2, ',', '.') }}
Totale Gen. Prev: {{ number_format((float) $this->getTotalePreventivoGenerale(), 2, ',', '.') }}
Totale Gen. Cons: {{ number_format((float) $this->getTotaleConsuntivoGenerale(), 2, ',', '.') }}
@endif