fix: perbaikkan tampilan dan print out lpj setalah migrate db old ke db new

This commit is contained in:
majid
2025-05-05 10:13:09 +07:00
parent bf7e6275e3
commit 3853b5d6eb
28 changed files with 525 additions and 404 deletions

View File

@@ -11,7 +11,8 @@
}
}
$fields = [
if ($inspeksi->is_mig != 1) {
$fields = [
'jenis_aset' => 'Jenis properti',
'hak_properti' => 'Status Hak Tanah',
'address' => 'Alamat Lokasi',
@@ -22,16 +23,28 @@
'luas_bangunan' => 'Luas Bangunan',
'tanggal' => 'Tanggal Data',
'kordinat' => 'Titik Kordinat',
];
];
}
@endphp
@foreach ($exportData as $index => $data)
@foreach (array_slice($exportData, 0, 3) as $index => $data)
<table style="width: 100%; margin-bottom: 15px; border-bottom: 1px solid #ddd;">
<tr>
<td style="font-weight: bold; padding-bottom: 8px;">
Pembanding {{ substr($index, -1) }}
</td>
</tr>
@if ($inspeksi->is_mig == 1)
<tr>
<td style="width: 33%; vertical-align: top;">Keterangan</td>
<td style="width: 5%; vertical-align: top;">:</td>
<td style="width: 62%;">
{{isset($data['keterangan']) ? parsePembandingMigration($data['keterangan']) : '' }}
</td>
</tr>
@else
@foreach ($fields as $key => $label)
<tr>
<td style="width: 33%;">{{ $label }}</td>
@@ -63,6 +76,7 @@
</td>
</tr>
@endforeach
@endif
</table>
@endforeach
</td>