@php $archivio = request()->query('archivio', 'all'); $archivio = in_array($archivio, ['all', 'netgescon', 'gescon'], true) ? $archivio : 'all'; $baseUrl = \App\Filament\Pages\Contabilita\PrimaNotaArchivio::getUrl(panel: 'admin-filament'); @endphp @if(! $this->getActiveStabile())
Seleziona uno stabile per lavorare in prima nota.
@endif
{{ $this->table }}
@php($bilancio = $this->getBilancioData()) @php($totDare = (float) ($bilancio['totale_dare'] ?? 0)) @php($totAvere = (float) ($bilancio['totale_avere'] ?? 0)) @php($diff = abs($totDare - $totAvere))
Totale Dare
€ {{ number_format($totDare, 2, ',', '.') }}
Totale Avere
€ {{ number_format($totAvere, 2, ',', '.') }}
Quadratura
{{ $diff <= 0.005 ? 'OK' : 'Non bilanciato' }}
@foreach(($bilancio['sezioni'] ?? []) as $sezione) {{ $sezione['titolo'] ?? 'Sezione' }}
@php($righe = $sezione['righe'] ?? []) @forelse($righe as $r) @empty @endforelse
Conto Dare Avere Saldo
{{ $r['label'] ?? '—' }} {{ $r['dare'] > 0 ? ('€ ' . number_format($r['dare'], 2, ',', '.')) : '—' }} {{ $r['avere'] > 0 ? ('€ ' . number_format($r['avere'], 2, ',', '.')) : '—' }} € {{ number_format($r['saldo'] ?? 0, 2, ',', '.') }}
Nessuna voce movimentata.
@endforeach