@if(! $soggetto)
Soggetto non trovato.
@php return; @endphp @endif @php $nome = trim((string) ($soggetto->ragione_sociale ?? '')); if ($nome === '') { $nome = trim((string) ($soggetto->nome ?? '') . ' ' . (string) ($soggetto->cognome ?? '')); } if ($nome === '') { $nome = 'Soggetto #' . (int) $soggetto->id; } @endphp @php $persona = $soggetto->persona ?? null; $tel1 = trim((string) ($persona->telefono_principale ?? $soggetto->telefono ?? '')); $tel2 = trim((string) ($persona->telefono_secondario ?? '')); $whatsapp = trim((string) ($persona->whatsapp ?? '')); $email = trim((string) ($persona->email_principale ?? $soggetto->email ?? '')); $pec = trim((string) ($persona->email_pec ?? '')); $selectedUnitLabel = '—'; if (!empty($unitaId) && !empty($unitaList)) { foreach ($unitaList as $uu) { if ((int) ($uu['id'] ?? 0) === (int) $unitaId) { $selectedUnitLabel = (string) ($uu['label'] ?? '—'); break; } } } $baseQuery = [ 'vista' => $vista ?? 'unita', 'unita_id' => $unitaId, 'q' => $qUnita ?? '', 'scadenza' => !empty($showScadenza) ? 1 : 0, ]; @endphp
Estratto conto
{{ $nome }}
CF: {{ $soggetto->codice_fiscale ?? '—' }}
Unità
{{ $selectedUnitLabel }}
Cerca
@if(!empty($prevUnitaId)) @else @endif @if(!empty($nextUnitaId)) @else @endif
Addebito (vista)
@php $t = ($vista ?? 'unita') === 'unita' ? ($totaliUnita ?? []) : ($totali ?? []); @endphp
{{ number_format((float) ($t['addebitato'] ?? 0), 2, ',', '.') }} €
Pagato (vista)
{{ number_format((float) ($t['pagato'] ?? 0), 2, ',', '.') }} €
Residuo (vista)
{{ number_format((float) ($t['residuo'] ?? 0), 2, ',', '.') }} €
Contatti
@if($tel1 !== '') Tel: {{ $tel1 }} @endif @if($tel2 !== '') Tel2: {{ $tel2 }} @endif @if($whatsapp !== '') WhatsApp: {{ $whatsapp }} @endif @if($email !== '') Email: {{ $email }} @endif @if($pec !== '') PEC: {{ $pec }} @endif @if($tel1 === '' && $tel2 === '' && $whatsapp === '' && $email === '' && $pec === '') @endif
@if(!empty($recordCondominoId) || !empty($recordInquilinoId))
Passa a: @if(!empty($recordCondominoId)) Condomino @endif @if(!empty($recordInquilinoId)) Inquilino @endif
@endif
Rate emesse Raggruppate per gestione, in ordine dalla più vecchia @if(empty($groups))
Nessuna rata trovata.
@else
@foreach($groups as $g)
{{ $g['label'] ?? 'Gestione' }}
Totale gestione: {{ number_format((float) data_get($g, 'totali.dovuto', 0), 2, ',', '.') }} € · Pagato: {{ number_format((float) data_get($g, 'totali.pagato', 0), 2, ',', '.') }} € · Residuo: {{ number_format((float) data_get($g, 'totali.residuo', 0), 2, ',', '.') }} €
@if(!empty($showScadenza)) @endif @foreach(($g['rows'] ?? []) as $r) @php $scad = $r['data_scadenza'] ?? null; $emTitle = $scad ? ('Scadenza: ' . $scad) : ''; $suffixUnita = (($vista ?? 'unita') === 'soggetto' && !empty($r['unita_short'])) ? (' (' . $r['unita_short'] . ')') : ''; @endphp @if(!empty($showScadenza)) @endif @endforeach
EmissioneScadenzaAvviso Em. Descrizione Dovuto Data pag. Pagato Residuo
{{ $r['data_emissione'] ?? '—' }}{{ $r['data_scadenza'] ?? '—' }}{{ !empty($r['avviso']) ? $r['avviso'] : '—' }} {{ $r['n_emissione'] ?? '—' }}
{{ $r['descrizione'] ?? '—' }}
@if($suffixUnita !== '')
{{ $suffixUnita }}
@endif
{{ number_format((float) ($r['dovuto'] ?? 0), 2, ',', '.') }} € {{ $r['data_pagamento'] ?? '—' }} {{ number_format((float) ($r['pagato'] ?? 0), 2, ',', '.') }} € {{ number_format((float) ($r['residuo'] ?? 0), 2, ',', '.') }} €
Totale gestione {{ number_format((float) data_get($g, 'totali.dovuto', 0), 2, ',', '.') }} € {{ number_format((float) data_get($g, 'totali.pagato', 0), 2, ',', '.') }} € {{ number_format((float) data_get($g, 'totali.residuo', 0), 2, ',', '.') }} €
@endforeach @php $t = ($vista ?? 'unita') === 'unita' ? ($totaliUnita ?? []) : ($totali ?? []); @endphp
Totale generale (vista): Dovuto {{ number_format((float) ($t['addebitato'] ?? 0), 2, ',', '.') }} € · Pagato {{ number_format((float) ($t['pagato'] ?? 0), 2, ',', '.') }} € · Residuo {{ number_format((float) ($t['residuo'] ?? 0), 2, ',', '.') }} €
@endif
Incassi Pagamenti ricevuti (collegati via codifica legacy: tipo C/I + cod_cond) @if(empty($incassi))
Nessun incasso collegato (oppure non ancora importato).
@else
@foreach($incassi as $i) @php $sem = (string) ($i['semaforo'] ?? ''); $semClass = 'text-gray-700'; if ($sem === 'OK') { $semClass = 'text-emerald-700'; } elseif ($sem === 'MATCH') { $semClass = 'text-amber-700'; } $data = $i['dt_empag'] ?? $i['data_pagamento'] ?? '—'; @endphp @endforeach
Anno Tipo cod_cond Data Ricevuta Importo Cassa/Banca Stato Descrizione
{{ $i['anno'] ?? '—' }} {{ $i['tipo'] ?? '—' }} {{ $i['cod_cond'] ?? '—' }} {{ $data }} {{ $i['n_ricevuta'] ?? '—' }} {{ number_format((float) ($i['importo'] ?? 0), 2, ',', '.') }} € @if(!empty($i['conto_url'])) Conto #{{ $i['conto_id'] }} @else {{ !empty($i['cod_cassa']) ? $i['cod_cassa'] : '—' }} @endif
{{ $sem !== '' ? $sem : '—' }}
@if(!empty($i['stato_riconciliazione']))
{{ $i['stato_riconciliazione'] }}
@elseif(!is_null($i['confidenza_match']))
conf: {{ number_format((float) $i['confidenza_match'], 2, ',', '.') }}
@endif
{{ $i['descrizione'] ?? '' }}
@endif