67 lines
3.2 KiB
PHP
67 lines
3.2 KiB
PHP
<x-filament-panels::page>
|
|
<div class="mx-auto max-w-7xl space-y-4">
|
|
<x-filament.components.page-breadcrumbs
|
|
:breadcrumbs="[
|
|
['label' => 'Contabilità', 'url' => null],
|
|
['label' => 'Casse e banche', 'url' => null],
|
|
]"
|
|
/>
|
|
|
|
@php
|
|
$stabile = $this->getActiveStabile();
|
|
$totale = $this->getTotaleDisponibilita();
|
|
@endphp
|
|
|
|
@if(! $stabile)
|
|
<x-filament::section>
|
|
<div class="text-sm text-gray-600">Seleziona uno stabile per vedere conti e disponibilità.</div>
|
|
</x-filament::section>
|
|
@else
|
|
<x-filament::section>
|
|
<div class="flex flex-wrap items-start justify-between gap-3">
|
|
<div class="space-y-1">
|
|
<div class="text-sm text-gray-500">Stabile attivo</div>
|
|
<div class="text-lg font-semibold text-gray-900">
|
|
{{ $stabile->codice_operatore ?? $stabile->codice_stabile ?? '—' }} — {{ $stabile->denominazione ?? 'Stabile' }}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="text-right">
|
|
<div class="text-sm text-gray-500">Totale disponibilità</div>
|
|
<div class="text-lg font-semibold text-gray-900">
|
|
@if($totale !== null)
|
|
€ {{ number_format((float) $totale, 2, ',', '.') }}
|
|
@else
|
|
—
|
|
@endif
|
|
</div>
|
|
<div class="text-xs text-gray-500">Applica filtri tabella per periodo/gestione.</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="mt-4 grid grid-cols-1 gap-3 md:grid-cols-3">
|
|
<div class="rounded-lg border bg-white p-3">
|
|
<div class="text-xs text-gray-500">IBAN principale (scheda stabile)</div>
|
|
<div class="mt-1 text-sm font-medium text-gray-900 truncate">{{ $stabile->iban_principale ?? '—' }}</div>
|
|
</div>
|
|
<div class="rounded-lg border bg-white p-3">
|
|
<div class="text-xs text-gray-500">IBAN secondario (scheda stabile)</div>
|
|
<div class="mt-1 text-sm font-medium text-gray-900 truncate">{{ $stabile->iban_secondario ?? '—' }}</div>
|
|
</div>
|
|
<div class="rounded-lg border bg-white p-3">
|
|
<div class="text-xs text-gray-500">IBAN condominio (scheda stabile)</div>
|
|
<div class="mt-1 text-sm font-medium text-gray-900 truncate">{{ $stabile->iban_condominio ?? '—' }}</div>
|
|
</div>
|
|
</div>
|
|
</x-filament::section>
|
|
|
|
<x-filament::section>
|
|
<x-slot name="heading">Conti disponibili</x-slot>
|
|
<x-slot name="description">Elenco conti dello stabile con saldo calcolato (filtrabile per periodo/gestione).</x-slot>
|
|
|
|
{{ $this->table }}
|
|
</x-filament::section>
|
|
@endif
|
|
</div>
|
|
</x-filament-panels::page>
|