Tabelle millesimali
@if(($tab ?? 'archivio') === 'archivio') {{ $this->table }} @elseif(($tab ?? 'archivio') === 'prospetto') @php $baseUrl = static::getUrl(panel: 'admin-filament'); $baseProspettoUrl = $baseUrl . '?tab=prospetto'; @endphp
Prospetto tabelle
Seleziona una tabella per vedere i dettagli (unità, millesimi, percentuali).
Elenco tabelle Stabile attivo @if(empty($tabelle))
Nessuna tabella millesimale.
@else @endif
Dettaglio Unità e millesimi @if(!$tabellaInfo)
Seleziona una tabella per vedere il dettaglio.
@else
@if(empty($righe)) @endif
{{ $tabellaInfo['codice'] }} — {{ $tabellaInfo['nome'] }}
@if(!empty($tabellaInfo['tipo'])) Tipo: {{ $tabellaInfo['tipo'] }} @endif @if(!empty($tabellaInfo['tipo']) && !empty($tabellaInfo['calcolo'])) · @endif @if(!empty($tabellaInfo['calcolo'])) Calcolo: {{ $tabellaInfo['calcolo'] }} @endif
@if(!empty($tabellaInfo['preventivo']) || !empty($tabellaInfo['consuntivo']))
@if(!empty($tabellaInfo['preventivo'])) Prev: {{ number_format((float) $tabellaInfo['preventivo'], 2, ',', '.') }} @endif @if(!empty($tabellaInfo['preventivo']) && !empty($tabellaInfo['consuntivo'])) · @endif @if(!empty($tabellaInfo['consuntivo'])) Cons: {{ number_format((float) $tabellaInfo['consuntivo'], 2, ',', '.') }} @endif
@endif
Totale
{{ number_format((float) ($tabellaInfo['totale'] ?? 0), 3, ',', '.') }}
@if(!empty($tabellaInfo['is_consumo']))
A consumo
@else
{{ ($tabellaInfo['is_bilanciata'] ?? false) ? 'Bilanciata (≈1000)' : 'Non bilanciata' }}
@endif
@if(empty($righe))
Nessun dettaglio millesimi.
@else
@foreach($righe as $r) @php $unitaUrl = \App\Filament\Pages\UnitaImmobiliarePage::getUrl(panel: 'admin-filament') . '?unita_id=' . (int) $r['unita_id'] . '&back=' . urlencode(request()->fullUrl()); @endphp @endforeach
Unità Posizione Partecipa Millesimi %
{{ $r['codice_unita_display'] ?? $r['codice_unita'] ?? ('Unità #' . $r['unita_id']) }} @if(!empty($r['denominazione']))
{{ $r['denominazione'] }}
@endif
Pal. {{ $r['palazzina'] ?? '—' }} · Scala {{ $r['scala'] ?? '—' }} · Piano {{ $r['piano'] ?? '—' }} · Int. {{ $r['interno'] ?? '—' }} {{ number_format((float) $r['percentuale'], 2, ',', '.') }}%
@endif
@endif
@else @php $baseUrl = static::getUrl(panel: 'admin-filament'); $baseVociUrl = $baseUrl . '?tab=voci'; @endphp
Elenco tabelle Stabile attivo @if(empty($tabelle))
Nessuna tabella millesimale.
@else @endif
Voci di spesa Collegate alla tabella selezionata @if(empty($vociSpesa))
Nessuna voce collegata a questa tabella.
@else
@if(($presetRipartizione ?? 'manuale') === 'custom') @endif @if(($presetRipartizione ?? 'manuale') === 'custom' && !empty($presetId)) @endif
@if(!empty($presetDirty))
Preset modificato: aggiorna il preset o salva come nuovo.
@endif
@foreach($vociSpesa as $row) @endforeach
Modifica Codice Descrizione Tipo Categoria % Cond. % Inq.
{{ $row['codice'] ?? '—' }}
{{ $row['descrizione'] ?? '—' }}
{{ $row['tipo_gestione'] ?? '—' }} {{ $row['categoria'] ?? '—' }}
@endif
@endif