Foglio riscossione (visione aggregata) Aggregazione per nominativo con importi emessi/pagati e link alla scheda contabile @php $blocks = [ ['key' => 'C', 'label' => 'Condomini', 'items' => $condomini ?? []], ['key' => 'I', 'label' => 'Inquilini', 'items' => $inquilini ?? []], ]; @endphp
@foreach($blocks as $blk)
{{ $blk['label'] }} ({{ count($blk['items']) }})
@if(empty($blk['items']))
Nessun dato.
@else
@foreach($blk['items'] as $r) @php $sid = (int) ($r['soggetto_id'] ?? 0); $schedaUrl = $sid > 0 ? \App\Filament\Pages\Contabilita\EstrattoContoSoggetto::getUrl(panel: 'admin-filament', parameters: ['record' => $sid]) : null; @endphp @endforeach
Nominativo Unità Avvisi Righe Addebito Pagato Residuo Scheda
{{ $r['nominativo'] ?? '—' }}
CF: {{ $r['codice_fiscale'] ?? '—' }}
{{ $r['n_unita'] ?? 0 }} {{ $r['n_avvisi'] ?? 0 }} {{ $r['n_righe'] ?? 0 }} {{ number_format((float) ($r['totale_addebitato'] ?? 0), 2, ',', '.') }} € {{ number_format((float) ($r['totale_pagato'] ?? 0), 2, ',', '.') }} € {{ number_format((float) ($r['residuo'] ?? 0), 2, ',', '.') }} € @if($schedaUrl) Apri @else @endif
@endif
@endforeach