netgescon-day0/resources/views/pdf/anagrafica_condominiale.blade.php

268 lines
10 KiB
PHP

<!DOCTYPE html>
<html lang="it">
<head>
<meta charset="UTF-8">
<title>Scheda Anagrafica Condominiale</title>
<style>
body {
font-family: 'Helvetica', 'Arial', sans-serif;
font-size: 11px;
color: #333333;
line-height: 1.4;
margin: 0;
padding: 0;
}
.header {
border-bottom: 2px solid #ea580c;
padding-bottom: 10px;
margin-bottom: 20px;
}
.header h1 {
font-size: 18px;
color: #ea580c;
margin: 0 0 5px 0;
text-transform: uppercase;
}
.header p {
margin: 2px 0;
font-size: 10px;
color: #666666;
}
.section-title {
background-color: #f3f4f6;
padding: 5px 8px;
font-weight: bold;
font-size: 11px;
color: #1f2937;
text-transform: uppercase;
margin-top: 15px;
margin-bottom: 10px;
border-left: 3px solid #ea580c;
}
table {
width: 100%;
border-collapse: collapse;
margin-bottom: 15px;
}
table td {
padding: 5px;
vertical-align: top;
border-bottom: 1px solid #e5e7eb;
}
table td.label {
font-weight: bold;
color: #4b5563;
width: 30%;
}
.footer {
margin-top: 50px;
font-size: 9px;
color: #999999;
text-align: center;
border-top: 1px solid #e5e7eb;
padding-top: 10px;
}
.signature-box {
margin-top: 40px;
width: 100%;
}
.signature-box td {
border: none;
text-align: center;
padding-top: 30px;
}
.signature-line {
width: 200px;
border-bottom: 1px solid #000;
margin: 0 auto 5px auto;
}
</style>
</head>
<body>
<div class="header">
<h1>Scheda Anagrafica Condominiale</h1>
<p><strong>Stabile:</strong> {{ $stabile->codice_stabile }} - {{ $stabile->denominazione }}</p>
<p><strong>Indirizzo:</strong> {{ $stabile->indirizzo }} - {{ $stabile->cap }} {{ $stabile->citta }} ({{ $stabile->provincia }})</p>
<p><strong>Anno Gestione:</strong> 2026</p>
</div>
<div class="section-title">1. Riferimenti dell'Unità Immobiliare</div>
<table>
<tr>
<td class="label">Scala:</td>
<td>{{ $unita->scala ?: '' }}</td>
<td class="label">Interno:</td>
<td>{{ $unita->interno ?: '' }}</td>
</tr>
<tr>
<td class="label">Piano:</td>
<td>{{ $unita->piano ?: '' }}</td>
<td class="label">Stato Occupazione:</td>
<td>{{ str_replace('_', ' ', $unita->stato_occupazione ?? '') }}</td>
</tr>
</table>
<div class="section-title">2. Dati Catastali Ufficiali dell'Unità</div>
<table>
<tr>
<td class="label">Foglio:</td>
<td>{{ $catasto['foglio'] ?: '—' }}</td>
<td class="label">Particella:</td>
<td>{{ $catasto['particella'] ?: '—' }}</td>
</tr>
<tr>
<td class="label">Subalterno:</td>
<td>{{ $catasto['subalterno'] ?: '—' }}</td>
<td class="label">Rendita Catastale:</td>
<td>{{ $catasto['rendita'] ? '€ ' . number_format((float)$catasto['rendita'], 2, ',', '.') : '—' }}</td>
</tr>
</table>
<div class="section-title">3. Soggetto Proprietario / Avente Diritto Principale</div>
<table>
<tr>
<td class="label">Cognome / Nome:</td>
<td colspan="3">
<strong>
@if($is_vuoto)
......................................................................................................................................
@else
{{ $soggetto['cognome'] ?? '' }} {{ $soggetto['nome'] ?? '' }}
@endif
</strong>
</td>
</tr>
<tr>
<td class="label">Codice Fiscale:</td>
<td>
@if($is_vuoto)
..................................................................
@else
{{ $soggetto['codice_fiscale'] ?? '—' }}
@endif
</td>
<td class="label">Residenza / Indirizzo:</td>
<td>
@if($is_vuoto)
..........................................................................................
@else
{{ $soggetto['residenza']['indirizzo'] ?? '—' }}
@endif
</td>
</tr>
<tr>
<td class="label">Città (Prov):</td>
<td>
@if($is_vuoto)
..................................................................
@else
{{ $soggetto['residenza']['citta'] ?? '—' }} ({{ $soggetto['residenza']['provincia'] ?? '—' }})
@endif
</td>
<td class="label">C.A.P.:</td>
<td>
@if($is_vuoto)
..................................................................
@else
{{ $soggetto['residenza']['cap'] ?? '—' }}
@endif
</td>
</tr>
<tr>
<td class="label">E-Mail:</td>
<td>
@if($is_vuoto)
..................................................................
@else
{{ $soggetto['email'] ?? '—' }}
@endif
</td>
<td class="label">P.E.C. / Invio Digitale:</td>
<td>
@if($is_vuoto)
..................................................................
@else
{{ $soggetto['pec'] ?? '—' }}
@endif
</td>
</tr>
<tr>
<td class="label">Cellulare:</td>
<td>
@if($is_vuoto)
..................................................................
@else
{{ $soggetto['cellulare'] ?? '—' }}
@endif
</td>
<td class="label">Telefono Fisso:</td>
<td>
@if($is_vuoto)
..................................................................
@else
{{ $soggetto['telefono'] ?? '—' }}
@endif
</td>
</tr>
</table>
<div class="section-title">4. Comproprietari ed Aventi Diritto (Quote di Proprietà)</div>
<table style="border: 1px solid #e5e7eb; margin-top: 5px;">
<thead>
<tr style="background-color: #f9fafb;">
<th style="padding: 6px; border-bottom: 1px solid #e5e7eb; text-align: left; font-size: 10px; width: 45%;">Cognome Nome</th>
<th style="padding: 6px; border-bottom: 1px solid #e5e7eb; text-align: left; font-size: 10px; width: 25%;">Codice Fiscale</th>
<th style="padding: 6px; border-bottom: 1px solid #e5e7eb; text-align: center; font-size: 10px; width: 15%;">Quota %</th>
<th style="padding: 6px; border-bottom: 1px solid #e5e7eb; text-align: left; font-size: 10px; width: 15%;">Diritto</th>
</tr>
</thead>
<tbody>
@if($is_vuoto || empty($comproprietari))
@for($i = 0; $i < 3; $i++)
<tr>
<td style="padding: 8px; border-bottom: 1px solid #e5e7eb; color: #ccc;">............................................................................................</td>
<td style="padding: 8px; border-bottom: 1px solid #e5e7eb; color: #ccc;">..................................................</td>
<td style="padding: 8px; border-bottom: 1px solid #e5e7eb; text-align: center; color: #ccc;">........... %</td>
<td style="padding: 8px; border-bottom: 1px solid #e5e7eb; color: #ccc;">................................</td>
</tr>
@endfor
@else
@foreach($comproprietari as $cp)
@php
$cpArr = (array) $cp;
@endphp
<tr>
<td style="padding: 6px; border-bottom: 1px solid #e5e7eb; font-weight: bold;">{{ ($cpArr['cognome'] ?? '') }} {{ ($cpArr['nome'] ?? '') }}</td>
<td style="padding: 6px; border-bottom: 1px solid #e5e7eb; font-family: monospace;">{{ $cpArr['codice_fiscale'] ?? '—' }}</td>
<td style="padding: 6px; border-bottom: 1px solid #e5e7eb; text-align: center;">{{ number_format((float)($cpArr['quota'] ?? 100), 2, ',', '.') }} %</td>
<td style="padding: 6px; border-bottom: 1px solid #e5e7eb; text-transform: capitalize;">{{ str_replace('_', ' ', $cpArr['tipo_diritto'] ?? 'proprietà') }}</td>
</tr>
@endforeach
@endif
</tbody>
</table>
<table class="signature-box">
<tr>
<td>
<p>Data compilazione</p>
<div class="signature-line"></div>
<p>____/____/________</p>
</td>
<td>
<p>Firma del Dichiarante (Proprietario)</p>
<div class="signature-line"></div>
<p>___________________________________</p>
</td>
</tr>
</table>
<div class="footer">
Modulo di Autocertificazione Anagrafe Condominiale - Generato da NetGescon 2025 Enterprise.<br>
Ai sensi dell'art. 1130 c.c. comma 6. I dati sono protetti in conformità al Regolamento UE 2016/679 (GDPR).
</div>
</body>
</html>