fix(surveyor): perbaikan tanda tangan, print out sederhana dan print hasil surveyor
This commit is contained in:
@@ -627,26 +627,43 @@
|
||||
</tr>
|
||||
</table>
|
||||
<table style="width: 100%; border-collapse: collapse; text-align: center;">
|
||||
|
||||
<tr>
|
||||
<!-- PENILAI -->
|
||||
@if (isset($forminspeksi['signature']['penilai']))
|
||||
@if (isset($forminspeksi['signature']['penilai']['image']) && !empty($forminspeksi['signature']['penilai']['image']))
|
||||
@php
|
||||
$imagePath = $forminspeksi['signature']['penilai']['image'];
|
||||
|
||||
$isBase64 = str_starts_with($imagePath, 'data:image');
|
||||
|
||||
if (!$isBase64) {
|
||||
$relativePath = str_replace(url('storage') . '/', '', $imagePath);
|
||||
$absolutePath = storage_path('app/public/' . $relativePath);
|
||||
} else {
|
||||
$absolutePath = $imagePath;
|
||||
}
|
||||
|
||||
@endphp
|
||||
<td style="width: 100px;">
|
||||
<img style="width: 100px;" src="{{ $forminspeksi['signature']['penilai']['image'] }}"
|
||||
alt="Penilai">
|
||||
<img style="width: 100px;" src="{{ $absolutePath }}" alt="">
|
||||
</td>
|
||||
@else
|
||||
<td style="width: 100px;">-</td>
|
||||
@endif
|
||||
|
||||
|
||||
@if (isset($forminspeksi['signature']['cabang']))
|
||||
@php
|
||||
$imagePath = $forminspeksi['signature']['cabang']['image'];
|
||||
|
||||
$isBase64 = str_starts_with($imagePath, 'data:image');
|
||||
|
||||
if (!$isBase64) {
|
||||
$relativePath = str_replace(url('storage') . '/', '', $imagePath);
|
||||
$absolutePath = storage_path('app/public/' . $relativePath);
|
||||
} else {
|
||||
$absolutePath = $imagePath;
|
||||
}
|
||||
|
||||
@endphp
|
||||
<td style="width: 100px;">
|
||||
<img style="width: 100px;" src="{{ $forminspeksi['signature']['cabang']['image'] }}"
|
||||
alt="Cabang">
|
||||
<img style="width: 100px;" src="{{ $absolutePath }}" alt="">
|
||||
</td>
|
||||
@else
|
||||
<td style="width: 100px;">-</td>
|
||||
@endif
|
||||
|
||||
|
||||
@@ -655,8 +672,6 @@
|
||||
<img style="width: 100px;" src="{{ $forminspeksi['signature']['debitur']['image'] }}"
|
||||
alt="Debitur/Perwakilan">
|
||||
</td>
|
||||
@else
|
||||
<td style="width: 100px;">-</td>
|
||||
@endif
|
||||
|
||||
<!-- K.J.P.P -->
|
||||
@@ -665,30 +680,41 @@
|
||||
<img style="width: 100px;" src="{{ $forminspeksi['signature']['kjjp']['image'] }}"
|
||||
alt="KJPP">
|
||||
</td>
|
||||
@else
|
||||
<td style="width: 100px;">-</td>
|
||||
@endif
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td style="padding: 4px;">
|
||||
<span>{{ ucwords(strtolower('PENILAI')) }}</span>
|
||||
</td>
|
||||
<td style="padding: 4px;">
|
||||
<span>{{ ucwords(strtolower('CABANG')) }}</span>
|
||||
</td>
|
||||
<td style="padding: 4px;">
|
||||
<span>{{ ucwords(strtolower('DEBITUR/PERWAKILAN')) }}</span>
|
||||
</td>
|
||||
<td style="padding: 4px;">
|
||||
<span>{{ strtoupper('K.J.P.P') }}</span>
|
||||
</td>
|
||||
@if (isset($forminspeksi['signature']['penilai']['name']))
|
||||
<td style=" text-align: center">
|
||||
<span>{{ ucwords(strtolower($forminspeksi['signature']['penilai']['name'])) }}</span>
|
||||
<br />
|
||||
<span>{{ ucwords(strtolower('PENILAI')) }}</span>
|
||||
</td>
|
||||
@endif
|
||||
@if (isset($forminspeksi['signature']['cabang']['name']))
|
||||
<td style=" text-align: center">
|
||||
<span>{{ ucwords(strtolower($forminspeksi['signature']['cabang']['name'])) }}</span>
|
||||
<br />
|
||||
<span>{{ ucwords(strtolower('CABANG')) }}</span>
|
||||
</td>
|
||||
@endif
|
||||
@if (isset($forminspeksi['signature']['debitur']['name']))
|
||||
<td style=" text-align: center">
|
||||
<span>{{ ucwords(strtolower($forminspeksi['signature']['debitur']['name'])) }}</span>
|
||||
<br />
|
||||
<span>{{ ucwords(strtolower('DEBITUR/PERWAKILAN')) }}</span>
|
||||
</td>
|
||||
@endif
|
||||
@if (isset($forminspeksi['signature']['kjjp']['name']))
|
||||
<td style=" text-align: center">
|
||||
<span>{{ ucwords(strtolower($forminspeksi['signature']['kjjp']['name'])) }}</span>
|
||||
<br />
|
||||
<span>{{ strtoupper('K.J.P.P') }}</span>
|
||||
</td>
|
||||
@endif
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -699,12 +725,6 @@
|
||||
<footer id="footer">
|
||||
Cabang : {{ $permohonan->debiture->branch->name ?? '' }}
|
||||
</footer>
|
||||
|
||||
<script>
|
||||
const datas = @json($forminspeksi)
|
||||
|
||||
console.log(datas);
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user