@php /** @var string $sectionKey */ $sectionKey = $this->sectionKey ?? 'section'; $titles = [ 'anagrafica' => ['title' => 'Anagrafica', 'desc' => 'Rubrica/Anagrafiche condominiali, soggetti, recapiti, ruoli.'], 'ordinarie' => ['title' => 'Gestione ordinaria', 'desc' => 'Rate, riparti, voci spesa, registrazioni contabili.'], 'riscaldamento' => ['title' => 'Riscaldamento', 'desc' => 'Riparti riscaldamento, letture/consumi, quote.'], 'straordinarie' => ['title' => 'Straordinarie', 'desc' => 'Lavori straordinari, SAL, consuntivi, delibere.'], 'varie' => ['title' => 'Varie', 'desc' => 'Estratti conto, incassi, utilità operative.'], 'utilita' => ['title' => 'Utilità', 'desc' => 'Strumenti, importazioni, verifiche, manutenzioni dati.'], ]; $meta = $titles[$sectionKey] ?? ['title' => ucfirst($sectionKey), 'desc' => '']; if ($sectionKey === 'ordinarie' && !empty($this->legacyGestioneAnno)) { $meta['desc'] = trim(($meta['desc'] ?? '') . ' (Anno ' . $this->legacyGestioneAnno . ')'); } $activeTab = $this->viewTab ?? 'operazioni'; $workflowMode = (bool) ($this->netgesconWorkflowMode ?? false); $sections = [ 'ordinarie' => 'Ordinarie', 'straordinarie' => 'Straordinarie', 'acqua' => 'Acqua', ]; @endphp
{{ $meta['title'] }} @if(!empty($meta['desc'])) {{ $meta['desc'] }} @endif
Nuovo Salva Stampa Esporta
@if($sectionKey === 'anagrafica')
Stabili (archivio) Gestioni (archivio) Anagrafica unica
@endif @if(in_array($sectionKey, ['ordinarie', 'straordinarie'], true)) @php $isStraordPage = $sectionKey === 'straordinarie'; $straordinarieGestioni = $this->straordinarieGestioni ?? []; @endphp
Registrazione unificata
@if($isStraordPage)
@php $currentStra = collect($straordinarieGestioni)->firstWhere('n_stra', $this->selectedStraordinaria); @endphp @if($currentStra) {{ $currentStra['periodo'] ?? 'Periodo non disponibile' }} · {{ $currentStra['totale'] ?? 0 }} operazioni @else Seleziona una gestione per visualizzare le operazioni. @endif
@endif
Operazioni Consuntivo @if(! $isStraordPage) Straordinarie Acqua Incassi Fatture @endif
@if(!($this->legacyOperazioniScopedByStabile ?? false))
Archivio legacy operazioni non segmentato per stabile: questa sezione puo' mostrare sempre lo stesso storico. I blocchi locali (es. fatture ricevute) restano invece filtrati sullo stabile attivo.
@endif @php $operazioni = $this->operazioni ?? null; $incassi = $this->incassi ?? null; $incassiRifSummary = $this->incassiRifSummary ?? ['rows' => [], 'totale' => 0, 'totale_ccb' => 0, 'count' => 0]; $fattureLegacy = $this->fattureLegacy ?? null; $fattureRicevute = $this->fattureRicevuteConsolidate ?? null; $raMonthlyTributoSummary = $this->raMonthlyTributoSummary ?? ['rows' => [], 'totale_fatta' => 0, 'totale_versata' => 0, 'totale_delta' => 0]; @endphp @if($activeTab === 'operazioni')
Operazioni GESCON (singolo_anno.mdb) @if(!empty($this->legacyGestioneLabel)) · {{ $this->legacyGestioneLabel }} @endif
@forelse($operazioni ?? [] as $row) @empty @endforelse
@if(($this->sortField ?? '') === 'id_operaz'){{ $this->sortDirection === 'asc' ? ' ▲' : ' ▼' }}@endif @if(($this->sortField ?? '') === 'dt_spe'){{ $this->sortDirection === 'asc' ? ' ▲' : ' ▼' }}@endif @if(($this->sortField ?? '') === 'cod_spe'){{ $this->sortDirection === 'asc' ? ' ▲' : ' ▼' }}@endif Voce spesa @if(($this->sortField ?? '') === 'tabella'){{ $this->sortDirection === 'asc' ? ' ▲' : ' ▼' }}@endif @if(($this->sortField ?? '') === 'cod_for'){{ $this->sortDirection === 'asc' ? ' ▲' : ' ▼' }}@endif @if(($this->sortField ?? '') === 'benef'){{ $this->sortDirection === 'asc' ? ' ▲' : ' ▼' }}@endif @if(($this->sortField ?? '') === 'rif_rda'){{ $this->sortDirection === 'asc' ? ' ▲' : ' ▼' }}@endif @if(($this->sortField ?? '') === 'importo_euro'){{ $this->sortDirection === 'asc' ? ' ▲' : ' ▼' }}@endif @if(($this->sortField ?? '') === 'num_fat'){{ $this->sortDirection === 'asc' ? ' ▲' : ' ▼' }}@endif @if(($this->sortField ?? '') === 'fe_uid'){{ $this->sortDirection === 'asc' ? ' ▲' : ' ▼' }}@endif Dett.
{{ $row->id_operaz ?? '—' }} @if(!empty($row->dt_spe)) {{ \Carbon\Carbon::parse($row->dt_spe)->format('d/m/Y') }} @else — @endif {{ $row->cod_spe ?? '—' }} {{ $row->voce_descrizione ?? '—' }}
{{ $row->tabella ?? '—' }}
{{ $row->tabella_descrizione ?? '' }}
{{ $row->cod_for ?? '—' }}
{{ $row->fornitore_nome ?? '' }}
@if($workflowMode && !empty($row->fornitore_locale_nome))
Locale: {{ $row->fornitore_locale_nome }}
@endif
{{ $row->benef ?? '—' }}
@if($workflowMode && (!empty($row->voce_spesa_locale) || !empty($row->tabella_locale)))
@if(!empty($row->voce_spesa_locale)) Voce locale: {{ $row->voce_spesa_locale }} @endif @if(!empty($row->tabella_locale)) · Tabella: {{ $row->tabella_locale }} @endif
@endif @if($workflowMode && ($row->protocollo_logico ?? null) === 'bonifico+rda') Flusso: Debito → Bonifico → RDA @elseif($workflowMode) Flusso: Debito/Costo @endif
{{ $row->rda_code ?? '—' }} {{ number_format((float)($row->importo_signed ?? ($row->importo_euro ?? $row->importo ?? 0)), 2, ',', '.') }} @if(!empty($row->natura2))
{{ $row->natura2 }}
@endif @if($workflowMode && !empty($row->bonifico_data))
Bonifico: {{ \Carbon\Carbon::parse($row->bonifico_data)->format('d/m/Y') }}
@endif @if(!empty($row->rda_row_importo)) RDA € {{ number_format((float)$row->rda_row_importo, 2, ',', '.') }} @endif @if($workflowMode && !empty($row->rda_scadenza))
Scad. RDA: {{ \Carbon\Carbon::parse($row->rda_scadenza)->format('d/m/Y') }} @if(!empty($row->rda_stato)) · {{ $row->rda_stato }} @endif
@endif @if(empty($row->rda_row_importo)) @if(!empty($row->fe_fattura_id)) Apri FE @endif @if(!empty($row->fe_ricevuta_id)) Apri FE XML @endif @endif
@php $feUrl = null; if (!empty($row->fe_fattura_id)) { $feUrl = \App\Filament\Pages\Contabilita\FatturaFornitoreScheda::getUrl(['record' => $row->fe_fattura_id], panel: 'admin-filament'); } elseif (!empty($row->fe_ricevuta_id)) { $feUrl = \App\Filament\Pages\Contabilita\FatturaElettronicaScheda::getUrl(['record' => $row->fe_ricevuta_id], panel: 'admin-filament'); } @endphp
{{ number_format((float)($row->importo_signed ?? ($row->importo_euro ?? $row->importo ?? 0)), 2, ',', '.') }} @if(!empty($row->dt_spe)) ({{ \Carbon\Carbon::parse($row->dt_spe)->format('d/m/Y') }}) @endif
@if($feUrl && !empty($row->num_fat)) {{ $row->num_fat }} @else
{{ $row->num_fat ?? '—' }}
@endif @if(!empty($row->dt_fat))
{{ \Carbon\Carbon::parse($row->dt_fat)->format('d/m/Y') }}
@endif @if($workflowMode && !empty($row->fe_totale))
Totale doc € {{ number_format((float) $row->fe_totale, 2, ',', '.') }}
@endif @if($workflowMode && !empty($row->fe_netto))
Netto bonifico € {{ number_format((float) $row->fe_netto, 2, ',', '.') }}
@endif @if(!empty($row->rda_row_data))
RDA {{ \Carbon\Carbon::parse($row->rda_row_data)->format('d/m/Y') }}
@endif
@if(!empty($row->fe_totale))
{{ number_format((float)$row->fe_totale, 2, ',', '.') }}
@endif @if(!empty($row->fe_fattura_id) || !empty($row->fe_ricevuta_id))
ID FE: {{ $row->fe_fattura_id ?? $row->fe_ricevuta_id }}
@endif @if(!empty($row->fe_display) || !empty($row->fe_uid))
{{ $row->fe_display ?? $row->fe_uid }}
@endif @if(!empty($row->fe_numero))
{{ $row->fe_numero }}
@endif @if(!empty($row->ra_importo) || !empty($row->ra_data))
RA @if(!empty($row->ra_data)) · {{ \Carbon\Carbon::parse($row->ra_data)->format('d/m/Y') }} @endif @if(!empty($row->ra_importo)) · € {{ number_format((float)$row->ra_importo, 2, ',', '.') }} @endif
@endif
@if(in_array(strtoupper((string) ($row->cod_spe ?? '')), ['I05', 'I06'], true) && !empty($row->n_spe)) Apri @if(isset($row->dett_pers_ok) && !$row->dett_pers_ok)
Da completare
@endif @else — @endif
Nessuna operazione trovata.
@if($operazioni)
{{ $operazioni->links() }}
@endif
@endif @if($activeTab === 'incassi')
Incassi GESCON (singolo_anno.mdb) @if(!empty($this->legacyGestioneLabel)) · {{ $this->legacyGestioneLabel }} @endif
@if(empty($incassi) || $incassi->count() === 0)
Nessun incasso trovato per la gestione selezionata.
@else @php $movimentiBancaUrl = \App\Filament\Pages\Contabilita\CasseBancheMovimenti::getUrl(panel: 'admin-filament'); $rifSubtotals = collect($incassi->items() ?? [])->reduce(function ($carry, $item) { $rifKey = trim((string) ($item->riferimento_visuale ?? $item->n_riferimento ?? $item->n_ricevuta ?? $item->n_mese ?? '')); if ($rifKey === '') { $rifKey = '—'; } $importo = (float) ($item->importo_visualizzato ?? $item->importo_pagato_euro ?? $item->importo_euro ?? $item->importo ?? 0); if (! isset($carry[$rifKey])) { $carry[$rifKey] = ['totale' => 0.0, 'count' => 0]; } $carry[$rifKey]['totale'] += $importo; $carry[$rifKey]['count']++; return $carry; }, []); @endphp
@foreach($incassi as $row) @php $tipo = $row->cond_inq ?? $row->cond_inquil ?? '—'; $data = $row->data_visuale ?? ($row->dt_empag ?? null); $importo = $row->importo_visualizzato ?? ($row->importo_pagato_euro ?? $row->importo_euro ?? $row->importo ?? 0); $rif = $row->riferimento_visuale ?? ($row->n_riferimento ?? $row->n_ricevuta ?? $row->n_mese ?? null); $rifKey = trim((string) ($rif ?? '')); if ($rifKey === '') { $rifKey = '—'; } $rifSubtotal = (float) (($rifSubtotals[$rifKey]['totale'] ?? 0)); $rifCount = (int) (($rifSubtotals[$rifKey]['count'] ?? 0)); @endphp @endforeach
Data Nominativo Scala/Int. Tipo Cod. cond Importo € Rif. Cassa Subtotale Rif. (pag.) Descrizione
@if(!empty($data)) {{ \Carbon\Carbon::parse($data)->format('d/m/Y') }} @else — @endif @if(!empty($row->persona_url)) {{ $row->nominativo_pagante ?? '—' }} @else {{ $row->nominativo_pagante ?? '—' }} @endif {{ $row->scala_interno_short ?? '—' }} {{ $tipo }} {{ $row->cod_cond ?? '—' }} {{ number_format((float) $importo, 2, ',', '.') }} {{ $rif ?? '—' }} {{ $row->cod_cassa ?? '—' }}
{{ number_format($rifSubtotal, 2, ',', '.') }}
@if($rifCount > 1)
{{ $rifCount }} mov.
@endif Banca
{{ $row->descrizione ?? '—' }}
@if(!empty($row->rata_match))
Rata {{ !empty($row->rata_match['n_emissione']) ? ('#' . $row->rata_match['n_emissione']) : 'match importo' }} · € {{ number_format((float)($row->rata_match['importo'] ?? 0), 2, ',', '.') }} @if(!empty($row->rata_match['data_emissione'])) · {{ \Carbon\Carbon::parse($row->rata_match['data_emissione'])->format('d/m/Y') }} @endif
@endif
{{ $incassi->total() }} incassi · pagina {{ $incassi->currentPage() }} / {{ $incassi->lastPage() }}
{{ $incassi->links() }}
@endif
@endif @if($activeTab === 'fatture')
Fatture ricevute (contabilità locale: FE + manuali)
@if(empty($fattureRicevute) || $fattureRicevute->count() === 0)
Nessuna fattura ricevuta trovata per i filtri correnti.
@else
@foreach($fattureRicevute as $row) @endforeach
Data N. documento Fornitore Origine Totale € Netto € Stato Azioni
@if(!empty($row->data_documento)) {{ \Carbon\Carbon::parse($row->data_documento)->format('d/m/Y') }} @else — @endif {{ $row->numero_documento ?? '—' }}
{{ $row->fornitore_nome ?? '—' }}
@if(!empty($row->cod_fornitore_legacy))
cod. {{ $row->cod_fornitore_legacy }}
@endif
@if(!empty($row->fattura_elettronica_id)) FE @if(!empty($row->fe_sdi_file))
{{ $row->fe_sdi_file }}
@endif @else Manuale @endif
{{ number_format((float) ($row->totale ?? 0), 2, ',', '.') }} {{ number_format((float) ($row->netto_da_pagare ?? 0), 2, ',', '.') }}
{{ $row->stato ?? '—' }}
@if(!empty($row->data_pagamento))
Pagata: {{ \Carbon\Carbon::parse($row->data_pagamento)->format('d/m/Y') }}
@endif @if((float) ($row->ritenuta_importo ?? 0) > 0)
RA: € {{ number_format((float) ($row->ritenuta_importo ?? 0), 2, ',', '.') }}
@endif
Apri @if(!empty($row->fattura_elettronica_id)) @endif
{{ $fattureRicevute->total() }} fatture ricevute · pagina {{ $fattureRicevute->currentPage() }} / {{ $fattureRicevute->lastPage() }}
{{ $fattureRicevute->links() }}
@endif
Fatture legacy GESCON (generale_stabile.mdb) @if(!empty($this->legacyGestioneLabel)) · {{ $this->legacyGestioneLabel }} @endif
Importa in contabilità
@if(empty($fattureLegacy) || $fattureLegacy->count() === 0)
Nessuna fattura trovata per i filtri correnti.
@else
@foreach($fattureLegacy as $row) @endforeach
Data N. fattura Cod. forn. Fornitore Descrizione Imponibile € RA € / Stato Totale € Sync locale
@if(!empty($row->data_fattura)) {{ \Carbon\Carbon::parse($row->data_fattura)->format('d/m/Y') }} @else — @endif
{{ $row->numero_fattura ?? '—' }}
{{ $row->cod_fornitore ?? '—' }} {{ $row->fornitore_nome ?? '—' }}
{{ $row->descrizione_view ?? '—' }}
@if(!empty($row->note))
{{ $row->note }}
@endif
{{ number_format((float)($row->imponibile ?? 0), 2, ',', '.') }} @if((float)($row->ra_fatta_importo ?? 0) > 0)
{{ number_format((float)($row->ra_fatta_importo ?? 0), 2, ',', '.') }}
Fatta @if(!empty($row->ra_tributo)) · trib. {{ $row->ra_tributo }} @endif
@if(!empty($row->ra_riferimento))
Rif. F24: {{ $row->ra_riferimento }}
@endif @if(!empty($row->ra_versata_data))
Versata: {{ \Carbon\Carbon::parse($row->ra_versata_data)->format('d/m/Y') }}
@else
Data versamento: —
Da versare
@endif Registro RA @else — @endif
{{ number_format((float)($row->totale_view ?? 0), 2, ',', '.') }}
@if(!empty($row->data_pagamento))
Pagata: {{ \Carbon\Carbon::parse($row->data_pagamento)->format('d/m/Y') }}
@endif
@if(!empty($row->local_match_url)) Collegata #{{ $row->local_match_id }} @if(!empty($row->local_match_stato))
{{ $row->local_match_stato }}
@endif @if(!empty($row->local_match_fe_url)) Apri FE XML #{{ $row->local_match_fe_id }} @endif @elseif(!empty($row->local_match_fe_url)) FE XML #{{ $row->local_match_fe_id }}
FE trovata, manca registrazione contabile
@else Da mappare @endif
{{ $fattureLegacy->total() }} fatture · pagina {{ $fattureLegacy->currentPage() }} / {{ $fattureLegacy->lastPage() }}
{{ $fattureLegacy->links() }}
Ritenute d'acconto (RA) · riepilogo mese / tributo
Totale fatta: € {{ number_format((float)($raMonthlyTributoSummary['totale_fatta'] ?? 0), 2, ',', '.') }} · Totale versata: € {{ number_format((float)($raMonthlyTributoSummary['totale_versata'] ?? 0), 2, ',', '.') }} · Delta: € {{ number_format((float)($raMonthlyTributoSummary['totale_delta'] ?? 0), 2, ',', '.') }}
@if(!empty($raMonthlyTributoSummary['rows']))
@foreach($raMonthlyTributoSummary['rows'] as $raRow) @endforeach
Mese Tributo RA fatta € RA versata € Delta €
{{ \Carbon\Carbon::createFromFormat('Y-m', $raRow['mese'])->format('m/Y') }} {{ $raRow['tributo'] }} {{ number_format((float)($raRow['fatta'] ?? 0), 2, ',', '.') }} {{ number_format((float)($raRow['versata'] ?? 0), 2, ',', '.') }} {{ number_format((float)($raRow['delta'] ?? 0), 2, ',', '.') }}
@else
Nessuna ritenuta disponibile per i filtri correnti.
@endif @php $raRows = collect($fattureLegacy?->items() ?? []) ->filter(fn($row) => (float)($row->ra_fatta_importo ?? 0) > 0) ->values(); @endphp
Ritenute d'acconto (RA) · dettaglio fatture in pagina
@if($raRows->isNotEmpty())
@foreach($raRows as $ra) @endforeach
Data Fattura / Fornitore Tributo RA fatta € RA versata € Stato
@if(!empty($ra->data_fattura)) {{ \Carbon\Carbon::parse($ra->data_fattura)->format('d/m/Y') }} @else — @endif
{{ $ra->numero_fattura ?? '—' }}
{{ $ra->fornitore_nome ?? '—' }}
{{ $ra->ra_tributo ?? '1040' }} {{ number_format((float)($ra->ra_fatta_importo ?? 0), 2, ',', '.') }} @if(!empty($ra->ra_versata_data)) {{ number_format((float)($ra->ra_fatta_importo ?? 0), 2, ',', '.') }} @else 0,00 @endif @if(!empty($ra->ra_versata_data)) Versata
{{ \Carbon\Carbon::parse($ra->ra_versata_data)->format('d/m/Y') }}
@else Da versare @endif
@else
Nessuna RA disponibile nella pagina corrente.
@endif
Registro ritenute (versamenti/F24) Codici tributo F24
@endif
@endif @if($activeTab === 'acqua') @php $acqua = $this->acquaSummary ?? ['voci' => [], 'totale' => 0, 'riparto_totale' => 0, 'riparto_delta' => 0]; $riparto = $this->acquaRiparto ?? ['rows' => [], 'totale' => 0]; @endphp
Totale fatture (AC1+AC2)
€ {{ number_format((float)($acqua['totale'] ?? 0), 2, ',', '.') }}
Totale riparto (dett_tab.cons_euro)
€ {{ number_format((float)($acqua['riparto_totale'] ?? 0), 2, ',', '.') }}
Delta
€ {{ number_format((float)($acqua['riparto_delta'] ?? 0), 2, ',', '.') }}
Riparto acqua per unità (solo lettura)
@forelse(($riparto['rows'] ?? []) as $row) @empty @endforelse
Ruolo Nominativo Scala Interno Piano Consuntivo €
{{ $row['ruolo'] }} {{ $row['nominativo'] }} {{ $row['scala'] ?? '—' }} {{ $row['interno'] ?? '—' }} {{ $row['piano'] ?? '—' }} {{ number_format((float)($row['cons_euro'] ?? 0), 2, ',', '.') }}
Nessun nominativo disponibile.
@endif @if($activeTab === 'consuntivo' || (! $isStraordPage && $activeTab === 'straordinarie')) @php $cons = $this->consuntivo ?? []; $specialCodes = $this->specialCodesSummary ?? ['Z01' => 0, 'Z02' => 0, 'totale' => 0]; $consSectionKey = ($isStraordPage || $activeTab === 'straordinarie') ? 'straordinarie' : 'ordinarie'; $tabs = $cons[$consSectionKey] ?? []; $acquaTabs = $cons['acqua'] ?? []; $acquaTotal = collect($acquaTabs)->sum(fn($t) => (float) ($t['subtotal'] ?? 0)); $totaleGenerale = collect($tabs)->sum(fn($t) => (float) ($t['subtotal'] ?? 0)); if ($activeTab === 'consuntivo') { $totaleGenerale += (float) $acquaTotal; } @endphp
{{ $activeTab === 'straordinarie' ? 'Consuntivo straordinarie' : 'Consuntivo per tabella / voce' }}
@if(!empty($tabs)) @foreach($tabs as $tab) @foreach($tab['rows'] ?? [] as $r) @endforeach @endforeach @if($activeTab === 'consuntivo' && $acquaTotal > 0) @endif @else @endif
Cod. Spesa Voce Totale € Mastrino
{{ $sections[$consSectionKey] ?? '' }}
{{ $tab['header'] ?? '—' }}
{{ $r['cod_spe'] }} {{ $r['voce'] ?? '—' }} {{ number_format((float)$r['totale'], 2, ',', '.') }} Apri
Subtotale {{ number_format((float)($tab['subtotal'] ?? 0), 2, ',', '.') }}
ACQUA (totale) {{ number_format((float) $acquaTotal, 2, ',', '.') }}
Totale generale {{ number_format((float) $totaleGenerale, 2, ',', '.') }}
Nessun dato.
Monitor codici speciali legacy (esclusi dal consuntivo principale)
Z01: € {{ number_format((float)($specialCodes['Z01'] ?? 0), 2, ',', '.') }} · Z02: € {{ number_format((float)($specialCodes['Z02'] ?? 0), 2, ',', '.') }} · Totale: € {{ number_format((float)($specialCodes['totale'] ?? 0), 2, ',', '.') }}
@if($activeTab === 'consuntivo') @php $acqua = $this->acquaSummary ?? ['voci' => [], 'totale' => 0, 'riparto_totale' => 0, 'riparto_delta' => 0]; $riparto = $this->acquaRiparto ?? ['rows' => [], 'totale' => 0]; @endphp
Riparto acqua (dett_tab)
Totale fatture: € {{ number_format((float)($acqua['totale'] ?? 0), 2, ',', '.') }} · Totale riparto: € {{ number_format((float)($acqua['riparto_totale'] ?? 0), 2, ',', '.') }} · Delta: € {{ number_format((float)($acqua['riparto_delta'] ?? 0), 2, ',', '.') }}
@forelse(($riparto['rows'] ?? []) as $row) @empty @endforelse
Ruolo Nominativo Scala Interno Piano Consuntivo €
{{ $row['ruolo'] }} {{ $row['nominativo'] }} {{ $row['scala'] ?? '—' }} {{ $row['interno'] ?? '—' }} {{ $row['piano'] ?? '—' }} {{ number_format((float)($row['cons_euro'] ?? 0), 2, ',', '.') }}
Nessun dato di riparto ACQUA.
@endif @endif Riparto personale (I05)
N. spesa: {{ $this->dettPersNSpe ?? '—' }}
@if(!empty($this->dettPersLegacyUnico ?? []))
ID addebiti legacy (unico): {{ implode(', ', $this->dettPersLegacyUnico) }}
@endif
Anno riferimento legacy: {{ $this->dettPersLegacyYear ?? '0001' }}
Importo spesa: {{ number_format((float)($this->dettPersImportoOperazione ?? 0), 2, ',', '.') }}
Somma riparto: {{ number_format((float)($this->dettPersTotale ?? 0), 2, ',', '.') }}
Differenza: {{ number_format((float)($this->dettPersDelta ?? 0), 2, ',', '.') }}
@if(!$this->dettPersQuadraturaOk)
Da completare
@endif
@if(($this->dettPersRipartoMode ?? 'legacy') === 'unita_singola')
@elseif(($this->dettPersRipartoMode ?? 'legacy') === 'millesimi_tabella')
@endif
@forelse($this->dettPersRows ?? [] as $r) @empty @endforelse @if(!empty($this->dettPersRows)) @endif
Soggetto Unità Tipo Importo €
{{ $r['soggetto'] ?? '—' }} {{ $r['unita'] ?? '—' }} {{ ($r['cond_inq'] ?? '') === 'I' ? 'Inquilino' : 'Condomino' }} @if(($this->dettPersRipartoMode ?? 'legacy') === 'riparto_libero') @else {{ number_format((float)($r['importo'] ?? 0), 2, ',', '.') }} @endif
Nessun dettaglio.
Totale {{ number_format((float)($this->dettPersTotale ?? 0), 2, ',', '.') }}
Mastrino: {{ $this->mastrinoTabella ?? '—' }} · {{ $this->mastrinoCodSpe ?? '—' }}
@forelse($this->mastrinoRows ?? [] as $r) @empty @endforelse
ID Data Descrizione Importo € Riga origine FE RDA/RA
{{ $r['id'] ?? '—' }} @if(!empty($r['data'])) {{ \Carbon\Carbon::parse($r['data'])->format('d/m/Y') }} @else — @endif {{ $r['descrizione'] ?? '—' }} {{ number_format((float)($r['importo'] ?? 0), 2, ',', '.') }} @php $rowUrl = \App\Filament\Pages\Gescon\Ordinarie::getUrl(panel: 'admin-filament') . '?tab=operazioni&search=' . urlencode((string) ($r['id'] ?? '')); @endphp @if(!empty($r['id'])) #{{ $r['id'] }} @if(!empty($r['n_spe']))
n_spe {{ $r['n_spe'] }}
@endif @if(!empty($r['tabella']))
tab {{ $r['tabella'] }}
@endif @else — @endif
{{ $r['fe_uid'] ?? '—' }}
{{ $r['rif_rda'] ?? '—' }}
@if(!empty($r['ra_importo']))
RA € {{ number_format((float)$r['ra_importo'], 2, ',', '.') }}
@endif
Nessun movimento.
@endif