@extends('admin.layouts.netgescon') @section('title', 'Report Gestione: ' . $gestione->descrizione) @section('content')

Report Gestione: {{ $gestione->descrizione }} ({{ $gestione->codice }})

Indietro

Informazioni Gestione

Codice:

{{ $gestione->codice }}

Tipo: {{ $gestione->tipo }}
Stato: {{ $gestione->stato }}
Periodo:

{{ $gestione->data_inizio->format('d/m/Y') }} - {{ $gestione->data_fine->format('d/m/Y') }}

Stabile:

{{ $gestione->stabile->denominazione ?? 'N/A' }}

Anni Gestione:

{{ $gestione->anno_inizio }}-{{ $gestione->anno_fine }}

Statistiche

Tabelle Millesimali
{{ $tabelle->count() }}
Unità Immobiliari
{{ count($matrice_millesimi) }}

Tabelle Millesimali dello Stabile

@foreach($tabelle->groupBy('tipo_tabella') as $tipo => $gruppo_tabelle)

{{ ucfirst($tipo) }}

@foreach($gruppo_tabelle as $tabella)
{{ Str::limit($tabella->denominazione ?: $tabella->nome_tabella, 30) }}
{{ $tabella->dettagliMillesimi->count() }} unità, {{ number_format($tabella->dettagliMillesimi->sum('millesimi'), 2) }} ‰
@endforeach
@endforeach

Matrice Millesimi per Unità Immobiliare

@php $tabelle_grouped = $tabelle->groupBy('tipo_tabella'); @endphp @foreach($tabelle_grouped as $tipo_gruppo => $tabelle_tipo) @endforeach @foreach($tabelle_grouped as $tabelle_tipo) @foreach($tabelle_tipo as $tabella) @endforeach @endforeach @php $current_scala = null; @endphp @foreach($matrice_millesimi as $unita) @foreach($tabelle_grouped as $tabelle_tipo) @foreach($tabelle_tipo as $tabella) @php $codice = $tabella->codice_tabella ?: $tabella->nome_tabella; $valore = $unita['millesimi'][$codice] ?? 0; @endphp @endforeach @endforeach @endforeach @foreach($tabelle_grouped as $tabelle_tipo) @foreach($tabelle_tipo as $tabella) @php $codice = $tabella->codice_tabella ?: $tabella->nome_tabella; $totale = collect($matrice_millesimi)->sum(function($row) use ($codice) { return $row['millesimi'][$codice] ?? 0; }); @endphp @endforeach @endforeach
Scala Interno Palazzina Denominazione {{ ucfirst($tipo_gruppo) }}
{{ $tabella->codice_tabella ?: Str::limit($tabella->nome_tabella, 8) }}
{{ $unita['scala'] ?? 'N/A' }} {{ $unita['interno'] ?? 'N/A' }} {{ $unita['palazzina'] ?? 'N/A' }} {{ $unita['denominazione'] ?? 'N/A' }} {{ $valore > 0 ? number_format($valore, 2) : '-' }}

Note Metodologiche

  • Tabelle di Proprietà: Utilizzate per ripartire spese ordinarie in base ai millesimi di proprietà
  • Tabelle Riscaldamento: Per ripartizione spese di riscaldamento centralizzato
  • Tabelle Speciali: Per specifiche categorie di spese (ascensore, scale, etc.)
  • Calcolo Millesimi: I valori mostrati sono in millesimi (‰) con base 1000
@endsection TOTALI @foreach($tabelle_grouped as $tabelle_tipo) @foreach($tabelle_tipo as $tabella) @php $codice = $tabella->codice_tabella ?: $tabella->nome_tabella; $totale = collect($matrice_millesimi)->sum(function($row) use ($codice) { return $row['millesimi'][$codice] ?? 0; }); @endphp {{ number_format($totale, 2) }} @endforeach @endforeach
Note Metodologiche
@endsection @push('styles') @endpush