@php $activeTab = $this->viewTab ?? 'ra'; $years = $this->availableFiscalYears ?? []; $selectedYear = $this->fiscalYear; $f24 = $this->f24MonthlySummary ?? ['rows' => [], 'totale_versato' => 0, 'totale_da_versare' => 0]; $f24Details = $this->f24DetailRows ?? []; $f24DetailsFiltered = $this->filteredF24DetailRows ?? []; $selectedF24Model = $this->selectedF24Model; $cu = $this->cuSummary ?? ['rows' => [], 'totale_ra' => 0]; $cuDetails = $this->filteredCuDetailRows ?? []; @endphp
Registro RA Modelli F24 Certificazioni Uniche
Visualizzazione annuale con consultazione anni arretrati.
@if($activeTab === 'ra')
{{ $this->table }}
@endif @if($activeTab === 'f24')
Riepilogo F24 per mese / tributo Dettaglio tributi versati / da versare
@if(($this->f24SubTab ?? 'riepilogo') === 'riepilogo')
Riepilogo F24 per mese / tributo
Versato: € {{ number_format((float)($f24['totale_versato'] ?? 0), 2, ',', '.') }} · Da versare: € {{ number_format((float)($f24['totale_da_versare'] ?? 0), 2, ',', '.') }}
@if(!empty($f24['rows']))
@php $groupedByMonth = collect($f24['rows'] ?? [])->groupBy('mese'); @endphp @foreach($groupedByMonth as $mese => $monthRows) @foreach($monthRows as $row) @endforeach @endforeach
Mese Tributo Versato € Da versare € Righe Rif. F24
{{ \Carbon\Carbon::createFromFormat('Y-m', $row['mese'])->format('m/Y') }} {{ $row['tributo'] }} {{ number_format((float)($row['versato'] ?? 0), 2, ',', '.') }} {{ number_format((float)($row['da_versare'] ?? 0), 2, ',', '.') }} {{ (int) ($row['righe'] ?? 0) }} {{ (int) ($row['f24_compilati'] ?? 0) }}
Subtotale {{ \Carbon\Carbon::createFromFormat('Y-m', $mese)->format('m/Y') }} Totale mese {{ number_format((float) $monthRows->sum('versato'), 2, ',', '.') }} {{ number_format((float) $monthRows->sum('da_versare'), 2, ',', '.') }} {{ (int) $monthRows->sum('righe') }} {{ (int) $monthRows->sum('f24_compilati') }}
@else
Nessun dato F24 disponibile.
@endif
@endif @if(($this->f24SubTab ?? 'riepilogo') === 'dettaglio')
Dettaglio tributi versati / da versare (data + istituto addebito)
Sanzione (8906) e interessi (1991) sono esposti come tributi separati nel modello F24.
@if(!empty($f24DetailsFiltered))
@foreach($f24DetailsFiltered as $row) @endforeach
Fornitore Fattura Tributo RA € Pagata Scadenza RA Versata Istituto Sanzioni € Interessi € Totale F24 € Stato Azioni
{{ $row['fornitore'] ?? '—' }} {{ $row['numero_documento'] ?? '—' }} {{ $row['tributo'] ?? '1040' }} {{ number_format((float)($row['importo_ra'] ?? 0), 2, ',', '.') }} {{ !empty($row['data_pagamento']) ? \Carbon\Carbon::parse($row['data_pagamento'])->format('d/m/Y') : '—' }} {{ !empty($row['scadenza_versamento']) ? \Carbon\Carbon::parse($row['scadenza_versamento'])->format('d/m/Y') : '—' }} {{ !empty($row['data_versamento']) ? \Carbon\Carbon::parse($row['data_versamento'])->format('d/m/Y') : '—' }}
{{ $row['istituto_banca'] ?? '—' }}
@if(!empty($row['addebito_descrizione']))
{{ $row['addebito_descrizione'] }}
@endif
{{ number_format((float)($row['sanzioni'] ?? 0), 2, ',', '.') }} {{ number_format((float)($row['interessi'] ?? 0), 2, ',', '.') }} {{ number_format((float)($row['totale_f24'] ?? 0), 2, ',', '.') }} @if(!empty($row['versata'])) @if(!empty($row['in_ritardo'])) Versata in ritardo @else Versata @endif @else Da versare @endif Vedi modello F24
@else
Nessun dettaglio tributi disponibile per l'anno fiscale selezionato.
@endif
@if(!empty($selectedF24Model))
Modello F24 compilato (simulazione)
Fornitore: {{ $selectedF24Model['fornitore'] ?? '—' }}
Fattura: {{ $selectedF24Model['numero_documento'] ?? '—' }}
Data versamento: {{ !empty($selectedF24Model['data_versamento']) ? \Carbon\Carbon::parse($selectedF24Model['data_versamento'])->format('d/m/Y') : '—' }}
Istituto: {{ $selectedF24Model['istituto_banca'] ?? '—' }}
ABI/CAB: {{ $selectedF24Model['istituto_abi'] ?: '—' }} / {{ $selectedF24Model['istituto_cab'] ?: '—' }}
Sezione Erario
Cod. {{ $selectedF24Model['tributo'] ?? '1040' }}: € {{ number_format((float)($selectedF24Model['importo_ra'] ?? 0), 2, ',', '.') }}
Cod. {{ $selectedF24Model['tributo_sanzione'] ?? '8906' }}: € {{ number_format((float)($selectedF24Model['sanzioni'] ?? 0), 2, ',', '.') }}
Cod. {{ $selectedF24Model['tributo_interessi'] ?? '1991' }}: € {{ number_format((float)($selectedF24Model['interessi'] ?? 0), 2, ',', '.') }}
Totale delega: € {{ number_format((float)($selectedF24Model['totale_f24'] ?? 0), 2, ',', '.') }}
Giorni ritardo: {{ (int)($selectedF24Model['giorni_ritardo'] ?? 0) }} · Sanzione: {{ number_format((float)($selectedF24Model['sanzione_percentuale'] ?? 0), 2, ',', '.') }}% · Tasso legale: {{ number_format((float)($selectedF24Model['tasso_legale'] ?? 0), 2, ',', '.') }}%
@endif @endif @endif @if($activeTab === 'cu')
Riepilogo CU per fornitore Dettaglio CU fornitore
@if(($this->cuSubTab ?? 'riepilogo') === 'riepilogo')
Riepilogo CU per anno / fornitore
Totale RA monitorate: € {{ number_format((float)($cu['totale_ra'] ?? 0), 2, ',', '.') }}
@if(!empty($cu['rows']))
@foreach(($cu['rows'] ?? []) as $row) @endforeach
Anno fiscale Fornitore Totale RA € RA versata € RA da versare € Righe Stato CU Comunicazione Azioni
{{ $row['anno'] }} {{ $row['fornitore'] }} {{ number_format((float)($row['totale_ra'] ?? 0), 2, ',', '.') }} {{ number_format((float)($row['totale_versata'] ?? 0), 2, ',', '.') }} {{ number_format((float)($row['totale_da_versare'] ?? 0), 2, ',', '.') }} {{ (int) ($row['righe'] ?? 0) }} @if(!empty($row['inclusa_cu'])) Inclusa @else Da includere @endif @if(!empty($row['comunicata'])) Inviata @if(!empty($row['ultima_comunicazione'])) · {{ \Carbon\Carbon::parse($row['ultima_comunicazione'])->format('d/m/Y') }} @endif @else Da inviare @endif Vedi dettaglio
@else
Nessun dato CU disponibile.
@endif
@endif @if(($this->cuSubTab ?? 'riepilogo') === 'dettaglio')
Dettaglio fatture pagate e RA per anno fiscale
@if(!empty($this->selectedCuFornitoreId))
Filtro attivo sul fornitore selezionato nel riepilogo.
@endif @if(!empty($cuDetails))
@foreach($cuDetails as $row) @endforeach
Fornitore Fattura Data doc. Pagata Vers. RA Tributo RA € CU
{{ $row['fornitore'] ?? '—' }} {{ $row['numero_documento'] ?? '—' }} {{ !empty($row['data_documento']) ? \Carbon\Carbon::parse($row['data_documento'])->format('d/m/Y') : '—' }} {{ !empty($row['data_pagamento']) ? \Carbon\Carbon::parse($row['data_pagamento'])->format('d/m/Y') : '—' }} {{ !empty($row['data_versamento']) ? \Carbon\Carbon::parse($row['data_versamento'])->format('d/m/Y') : '—' }} {{ $row['tributo'] ?? '1040' }} {{ number_format((float)($row['importo_ra'] ?? 0), 2, ',', '.') }} @if(!empty($row['inclusa_cu'])) Inclusa @else Da includere @endif
@else
Nessun dettaglio CU disponibile per l'anno fiscale selezionato.
@endif
@endif @endif