perbaikan error laporan
This commit is contained in:
@@ -55,8 +55,8 @@
|
||||
@endif
|
||||
|
||||
|
||||
@if (isset($formFoto['foto_lantai_unit']))
|
||||
@foreach ($formFoto['foto_lantai_unit'] as $index => $floorPhotos)
|
||||
@if (isset($formFoto['foto_lantai_unit']['foto_lantai_unit'] ))
|
||||
@foreach ($formFoto['foto_lantai_unit']['foto_lantai_unit'] as $index => $floorPhotos)
|
||||
@foreach ($floorPhotos as $index => $item)
|
||||
<div class="border photo-item">
|
||||
<h2 class="text-gray-600 font-semibold text-xl">
|
||||
|
||||
@@ -82,8 +82,8 @@
|
||||
<h3 class="card-title">Lantai</h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
@if (isset($formFoto['foto_lantai_unit']))
|
||||
@foreach ($formFoto['foto_lantai_unit'] as $floorIndex => $floorPhotos)
|
||||
@if (isset($formFoto['foto_lantai_unit']['foto_lantai_unit']))
|
||||
@foreach ($formFoto['foto_lantai_unit']['foto_lantai_unit'] as $floorIndex => $floorPhotos)
|
||||
<div class="mt-5">
|
||||
@foreach ($floorPhotos as $index => $item)
|
||||
<div class="flex items-center justify-between mt-3">
|
||||
|
||||
@@ -132,7 +132,7 @@
|
||||
<main class="content">
|
||||
<table style="width: 100%">
|
||||
<tr>
|
||||
<td>
|
||||
<td style="vertical-align: top;">
|
||||
<table style="width: 100%; border-collapse: collapse;">
|
||||
<tr>
|
||||
<td style="width: 30%; padding: 2px;">Nama Debitur</td>
|
||||
@@ -1053,28 +1053,29 @@
|
||||
<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 class="">
|
||||
|
||||
@if (isset($forminspeksi))
|
||||
@forelse ($fotoTypes as $type)
|
||||
<div class="border photo-item">
|
||||
@php
|
||||
|
||||
$imagePath = storage_path('app/public/' . $forminspeksi[$type]);
|
||||
$imagePath = $forminspeksi[$type] ?? null;
|
||||
@endphp
|
||||
|
||||
@if ($statusLpj || file_exists(storage_path('app/public/' . $imagePath)))
|
||||
<img src="{{ $imagePath }}" alt="{{ $type }}"
|
||||
@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>
|
||||
</tr>
|
||||
|
||||
|
||||
@@ -498,34 +498,47 @@
|
||||
|
||||
<tr>
|
||||
@php
|
||||
|
||||
$cekHub =
|
||||
isset($forminspeksi['asset']['hub_cadeb']) &&
|
||||
$forminspeksi['asset']['hub_cadeb'] === 'sesuai'
|
||||
$cekHub = isset($forminspeksi['asset']['hub_cadeb']) && $forminspeksi['asset']['hub_cadeb'] === 'sesuai'
|
||||
? 'sesuai'
|
||||
: 'tidak sesuai';
|
||||
|
||||
$hubCadeb = isset($forminspeksi['asset']['hub_cadeb'][$cekHub])
|
||||
? $forminspeksi['asset']['hub_cadeb']['tidak sesuai']
|
||||
: $forminspeksi['asset']['hub_cadeb']['sesuai'];
|
||||
? $forminspeksi['asset']['hub_cadeb'][$cekHub]
|
||||
: null;
|
||||
@endphp
|
||||
<td><strong>Hubungan Pemilik Jaminan dengan Debitur</strong></td>
|
||||
<td style="vertical-align: top;"><strong>Hubungan Pemilik Jaminan dengan Debitur</strong></td>
|
||||
<td>
|
||||
@if (isset($basicData['hubCadeb']))
|
||||
<table class="checkbox-table">
|
||||
@php $count = 0; @endphp
|
||||
<tr>
|
||||
@foreach ($basicData['hubCadeb'] as $item)
|
||||
<td>
|
||||
<label>
|
||||
<input type="checkbox"
|
||||
{{ $item->name === $hubCadeb ? 'checked' : '' }}>
|
||||
{{ $item->name }}
|
||||
</label>
|
||||
</td>
|
||||
@php $count++; @endphp
|
||||
|
||||
@if ($count % 3 === 0)
|
||||
</tr><tr> <!-- Membuka baris baru setelah 3 kolom -->
|
||||
@endif
|
||||
@endforeach
|
||||
|
||||
{{-- Isi kolom kosong jika tidak genap --}}
|
||||
@if ($count % 3 !== 0)
|
||||
@for ($i = 0; $i < (3 - $count % 3); $i++)
|
||||
<td></td>
|
||||
@endfor
|
||||
@endif
|
||||
</tr>
|
||||
</table>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
@php
|
||||
|
||||
@@ -829,62 +842,43 @@
|
||||
<td>
|
||||
<table class="checkbox-list">
|
||||
@if (isset($basicData['spekBangunan']))
|
||||
@php $count = 0; @endphp
|
||||
<tr> <!-- Start row for checkboxes -->
|
||||
@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;"
|
||||
<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],
|
||||
)
|
||||
{{ 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>
|
||||
@php $count++; @endphp
|
||||
|
||||
@if ($count % 3 == 0)
|
||||
</tr><tr> <!-- Start a new row every 3 items -->
|
||||
@endif
|
||||
@endif
|
||||
@endforeach
|
||||
</tr> <!-- Close last row -->
|
||||
@endif
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@endif
|
||||
@endif
|
||||
|
||||
|
||||
|
||||
<!-- Sarana Pelengkap -->
|
||||
<tr>
|
||||
<td><strong>Sarana Pelengkap</strong></td>
|
||||
<td>
|
||||
@if (isset($basicData['saranaPelengkap']))
|
||||
<table class="checkbox-list">
|
||||
<tr>
|
||||
@foreach ($basicData['saranaPelengkap'] 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['bangunan']['sarana_pelengkap']) && in_array($item->name, $forminspeksi['bangunan']['sarana_pelengkap']) ? 'checked' : '' }}>
|
||||
{{ $item->name }}
|
||||
</label>
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
</table>
|
||||
@endif
|
||||
|
||||
|
||||
<!-- Input tambahan untuk Sarana Pelengkap -->
|
||||
@if (isset($forminspeksi['bangunan']['sarana_pelengkap_input']))
|
||||
@@ -1006,7 +1000,6 @@
|
||||
@endif
|
||||
@endif
|
||||
@endforeach
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1242,7 +1235,6 @@
|
||||
<td><input type="checkbox"> Ada</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="section">
|
||||
@@ -1425,45 +1417,10 @@
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
</div>
|
||||
</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">
|
||||
<div class="judul">
|
||||
|
||||
Reference in New Issue
Block a user