fix(print-out) : perbaikan print out rap, sederhana, standar dan perbaikan tanda tangan dan name informasi rap

This commit is contained in:
majid
2025-02-05 15:18:05 +07:00
parent ac431a3c3c
commit 821324e8a1
5 changed files with 115 additions and 34 deletions

View File

@@ -1337,7 +1337,7 @@
<tr>
<td style="">Nilai Pasar Wajar (Rp)</td>
<td style="">Rp.
<td style="">Rp.
{{$lpjData['asuransi_nilai_2'] ?? '' }}</td>
</tr>
@else
@@ -1815,15 +1815,14 @@
</td>
</tr>
</table>
<div class="page-break"></div>
<div class="section">
<div class="judul">
<h6 class="border">
<h6 class="border" style="text-align: center;">
PETA
</h6>
</div>
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px;">
<div class="photo-container">
@php
$fotoTypes = ['foto_gistaru', 'foto_bhumi', 'foto_argis_region', 'foto_tempat'];
// Memindahkan foto_tempat ke depan jika ada
@@ -1834,20 +1833,28 @@
@endphp
@if (isset($forminspeksi))
@php $counter = 0; @endphp
@foreach ($fotoTypes as $type)
@php
$imagePath = $forminspeksi[$type] ?? null;
@endphp
@if ($imagePath && file_exists(storage_path('app/public/' . $imagePath)))
<div style="border: 1px solid #ddd; padding: 10px; text-align: center;">
<img src="{{ storage_path('app/public/' . $imagePath) }}"
alt="{{ $type }}"
style="max-width: 100%; height: auto; margin-bottom: 10px;">
@if ($counter % 2 == 0)
<div class="photo-row clearfix"
>
@endif
<div class="photo-item border"
>
<img src="{{ storage_path('app/public/' . $imagePath) }}" alt="{{ $type }}"
class="photo-image">
<p style="margin: 0; font-size: 14px;">
{{ Str::title(str_replace('_', ' ', $type)) }}
</p>
</div>
@if ($counter % 2 == 1 || $loop->last)
</div>
@endif
@php $counter++; @endphp
@endif
@endforeach
@endif