perbaikan laporan
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>Laporan Penilai jaminan</title>
|
||||
<style>
|
||||
body {
|
||||
@@ -207,12 +207,12 @@
|
||||
<body>
|
||||
|
||||
@php
|
||||
$data = '';
|
||||
foreach ($permohonan->debiture->documents as $dokumen) {
|
||||
$data .= $dokumen->jenisJaminan->name . ', ';
|
||||
}
|
||||
$data = rtrim($data, ', ');
|
||||
@endphp
|
||||
$data = '';
|
||||
foreach ($permohonan->debiture->documents as $dokumen) {
|
||||
$data .= $dokumen->jenisJaminan->name . ', ';
|
||||
}
|
||||
$data = rtrim($data, ', ');
|
||||
@endphp
|
||||
<main class="content">
|
||||
@php
|
||||
$senior_officer = null;
|
||||
@@ -257,7 +257,8 @@
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<h4 style="text-align: center; text-transform: uppercase; font-size: 14px;">LAPORAN PENILAIAN ATAS {{$data}}</h4>
|
||||
<h4 style="text-align: center; text-transform: uppercase; font-size: 14px;">LAPORAN PENILAIAN ATAS
|
||||
{{ $data }}</h4>
|
||||
<p style="text-align: center;">NO:
|
||||
{{ $permohonan->debiture->branch->code ?? '' }}/{{ $nomorLaporan }}/LPJ/{{ $permohonan->nomor_registrasi }}/{{ onRomawi(date('m')) }}/{{ date('Y') }}
|
||||
</p>
|
||||
@@ -822,37 +823,43 @@
|
||||
|
||||
<!-- Spesifikasi Bangunan -->
|
||||
@if (isset($basicData['spekKategoriBangunan']))
|
||||
@foreach ($basicData['spekKategoriBangunan'] as $index => $spesifikasi)
|
||||
<tr>
|
||||
<td><strong>{{ $spesifikasi->name }}</strong></td>
|
||||
<td>
|
||||
<table class="checkbox-list">
|
||||
@if (isset($basicData['spekBangunan']))
|
||||
@foreach ($basicData['spekBangunan'] as $kategori)
|
||||
@if ($kategori->spek_kategori_bangunan_id == $spesifikasi->id)
|
||||
@if ($loop->iteration % 3 == 1 && $loop->iteration > 1)
|
||||
</tr><tr> <!-- Start a new row after 3 items -->
|
||||
@endif
|
||||
<td class="checkbox-item">
|
||||
<label class="checkbox-label">
|
||||
<input type="checkbox"
|
||||
style="margin-right: 3px;"
|
||||
name="spesifikasi_bangunan[{{ $index }}][{{ $spesifikasi->name }}][]"
|
||||
value="{{ $kategori->name }}"
|
||||
{{ isset($forminspeksi['bangunan']['spesifikasi_bangunan'][$index]['spek_kategori_bangunan'][$spesifikasi->name]) &&
|
||||
in_array($kategori->name, $forminspeksi['bangunan']['spesifikasi_bangunan'][$index]['spek_kategori_bangunan'][$spesifikasi->name])
|
||||
? 'checked' : '' }}>
|
||||
{{ $kategori->name }}
|
||||
</label>
|
||||
</td>
|
||||
@endif
|
||||
@endforeach
|
||||
@endif
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
@foreach ($basicData['spekKategoriBangunan'] as $index => $spesifikasi)
|
||||
<tr>
|
||||
<td><strong>{{ $spesifikasi->name }}</strong></td>
|
||||
<td>
|
||||
<table class="checkbox-list">
|
||||
@if (isset($basicData['spekBangunan']))
|
||||
@foreach ($basicData['spekBangunan'] as $kategori)
|
||||
@if ($kategori->spek_kategori_bangunan_id == $spesifikasi->id)
|
||||
@if ($loop->iteration % 3 == 1 && $loop->iteration > 1)
|
||||
</tr>
|
||||
<tr> <!-- Start a new row after 3 items -->
|
||||
@endif
|
||||
<td class="checkbox-item">
|
||||
<label class="checkbox-label">
|
||||
<input type="checkbox" style="margin-right: 3px;"
|
||||
name="spesifikasi_bangunan[{{ $index }}][{{ $spesifikasi->name }}][]"
|
||||
value="{{ $kategori->name }}"
|
||||
{{ isset(
|
||||
$forminspeksi['bangunan']['spesifikasi_bangunan'][$index]['spek_kategori_bangunan'][$spesifikasi->name],
|
||||
) &&
|
||||
in_array(
|
||||
$kategori->name,
|
||||
$forminspeksi['bangunan']['spesifikasi_bangunan'][$index]['spek_kategori_bangunan'][$spesifikasi->name],
|
||||
)
|
||||
? 'checked'
|
||||
: '' }}>
|
||||
{{ $kategori->name }}
|
||||
</label>
|
||||
</td>
|
||||
@endif
|
||||
@endforeach
|
||||
@endif
|
||||
@endif
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
|
||||
<!-- Sarana Pelengkap -->
|
||||
@@ -896,11 +903,7 @@
|
||||
<table>
|
||||
<tr>
|
||||
@php
|
||||
$cekLuas = isset(
|
||||
$forminspeksi['luas_unit']['tidak sesuai'],
|
||||
)
|
||||
? 'tidak sesuai'
|
||||
: 'sesuai';
|
||||
$cekLuas = isset($forminspeksi['luas_unit']['tidak sesuai']) ? 'tidak sesuai' : 'sesuai';
|
||||
|
||||
$luas = $forminspeksi['luas_unit'][$cekLuas] ?? null;
|
||||
@endphp
|
||||
@@ -931,70 +934,70 @@
|
||||
</table>
|
||||
@endif
|
||||
|
||||
<tr>
|
||||
<td><strong>Kondisi Unit</strong></td>
|
||||
<td>
|
||||
@if (isset($basicData['kondisiUnit']))
|
||||
<table class="checkbox-list">
|
||||
<tr>
|
||||
@foreach ($basicData['kondisiUnit'] as $index => $item)
|
||||
@if ($index % 3 == 0 && $index > 0)
|
||||
</tr>
|
||||
<tr>
|
||||
@endif
|
||||
<td class="checkbox-item">
|
||||
<label class="checkbox-label">
|
||||
<input type="checkbox"
|
||||
{{ isset($forminspeksi['kondisi_unit']) && in_array($item->name, $forminspeksi['kondisi_unit']) ? 'checked' : '' }}>
|
||||
{{ $item->name }}
|
||||
</label>
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Kondisi Unit</strong></td>
|
||||
<td>
|
||||
@if (isset($basicData['kondisiUnit']))
|
||||
<table class="checkbox-list">
|
||||
<tr>
|
||||
@foreach ($basicData['kondisiUnit'] as $index => $item)
|
||||
@if ($index % 3 == 0 && $index > 0)
|
||||
</tr>
|
||||
<tr>
|
||||
@endif
|
||||
<td class="checkbox-item">
|
||||
<label class="checkbox-label">
|
||||
<input type="checkbox"
|
||||
{{ isset($forminspeksi['kondisi_unit']) && in_array($item->name, $forminspeksi['kondisi_unit']) ? 'checked' : '' }}>
|
||||
{{ $item->name }}
|
||||
</label>
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
</table>
|
||||
@endif
|
||||
<tr>
|
||||
<td><strong>Posisi Unit</strong></td>
|
||||
<td>
|
||||
@if (isset($basicData['posisiUnit']))
|
||||
<table class="checkbox-list">
|
||||
<tr>
|
||||
@foreach ($basicData['posisiUnit'] as $index => $item)
|
||||
@if ($index % 3 == 0 && $index > 0)
|
||||
</tr>
|
||||
<tr>
|
||||
@endif
|
||||
<td class="checkbox-item">
|
||||
<label class="checkbox-label">
|
||||
<input type="checkbox"
|
||||
{{ isset($forminspeksi['posisi_unit']) && in_array($item->name, $forminspeksi['posisi_unit']) ? 'checked' : '' }}>
|
||||
{{ $item->name }}
|
||||
</label>
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Posisi Unit</strong></td>
|
||||
<td>
|
||||
@if (isset($basicData['posisiUnit']))
|
||||
<table class="checkbox-list">
|
||||
<tr>
|
||||
@foreach ($basicData['posisiUnit'] as $index => $item)
|
||||
@if ($index % 3 == 0 && $index > 0)
|
||||
</tr>
|
||||
<tr>
|
||||
@endif
|
||||
<td class="checkbox-item">
|
||||
<label class="checkbox-label">
|
||||
<input type="checkbox"
|
||||
{{ isset($forminspeksi['posisi_unit']) && in_array($item->name, $forminspeksi['posisi_unit']) ? 'checked' : '' }}>
|
||||
{{ $item->name }}
|
||||
</label>
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
</table>
|
||||
@endif
|
||||
<tr>
|
||||
<td><strong>View Unit</strong></td>
|
||||
<td>
|
||||
@if (isset($basicData['view']))
|
||||
<table class="checkbox-list">
|
||||
<tr>
|
||||
@foreach ($basicData['view'] as $index => $item)
|
||||
@if ($index % 3 == 0 && $index > 0)
|
||||
</tr>
|
||||
<tr>
|
||||
@endif
|
||||
<td class="checkbox-item">
|
||||
<label class="checkbox-label">
|
||||
<input type="checkbox"
|
||||
{{ isset($forminspeksi['view']) && in_array($item->name, $forminspeksi['view']) ? 'checked' : '' }}>
|
||||
{{ $item->name }}
|
||||
</label>
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>View Unit</strong></td>
|
||||
<td>
|
||||
@if (isset($basicData['view']))
|
||||
<table class="checkbox-list">
|
||||
<tr>
|
||||
@foreach ($basicData['view'] as $index => $item)
|
||||
@if ($index % 3 == 0 && $index > 0)
|
||||
</tr>
|
||||
<tr>
|
||||
@endif
|
||||
<td class="checkbox-item">
|
||||
<label class="checkbox-label">
|
||||
<input type="checkbox"
|
||||
{{ isset($forminspeksi['view']) && in_array($item->name, $forminspeksi['view']) ? 'checked' : '' }}>
|
||||
{{ $item->name }}
|
||||
</label>
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
</table>
|
||||
@endif
|
||||
</table>
|
||||
@@ -1362,7 +1365,8 @@
|
||||
Likuidasi</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style=" padding: 8px; text-align: right;">{{ $lpjData['likuidasi'] ?? '' }}% X Total Nilai
|
||||
<td style=" padding: 8px; text-align: right;">{{ $lpjData['likuidasi'] ?? '' }}% X Total
|
||||
Nilai
|
||||
Pasar Wajar</td>
|
||||
<td colspan="2" style=" padding: 8px; text-align: right;">=
|
||||
{{ $lpjData['likuidasi_nilai_1'] ?? '' }}</td>
|
||||
@@ -1425,12 +1429,40 @@
|
||||
</div>
|
||||
<div class="page-break"></div>
|
||||
<div class="section">
|
||||
|
||||
<div class="judul">
|
||||
<h6 class="border">
|
||||
PETA LOKASI
|
||||
</h6>
|
||||
</div>
|
||||
|
||||
<td>
|
||||
@php
|
||||
$fotoTypes = ['foto_gistaru', 'foto_bhumi', 'foto_argis_region', 'foto_tempat'];
|
||||
if (($key = array_search('foto_tempat', $fotoTypes)) !== false) {
|
||||
unset($fotoTypes[$key]);
|
||||
array_unshift($fotoTypes, 'foto_tempat');
|
||||
}
|
||||
@endphp
|
||||
<div>
|
||||
@if (isset($forminspeksi))
|
||||
@forelse ($fotoTypes as $type)
|
||||
<div class="border photo-item">
|
||||
@php
|
||||
$imagePath = $forminspeksi[$type] ?? null;
|
||||
@endphp
|
||||
|
||||
@if ($imagePath && file_exists(storage_path('app/public/' . $imagePath)))
|
||||
<img src="{{ asset('storage/' . $imagePath) }}" alt="{{ $type }}" class="photo-image">
|
||||
@endif
|
||||
<p class="mt-2 text-sm">{{ Str::title(str_replace('_', ' ', $type)) }}</p>
|
||||
</div>
|
||||
@empty
|
||||
<p>Tidak ada tipe foto yang tersedia</p>
|
||||
@endforelse
|
||||
@endif
|
||||
</div>
|
||||
</td>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="section">
|
||||
|
||||
Reference in New Issue
Block a user