perabaikan team activity, form inspeksi rap,laporan memo, rap, resume dan penambahan basic data perizinan

This commit is contained in:
majid
2025-01-03 16:49:20 +07:00
parent 64ba6cf71e
commit b7767fbc92
26 changed files with 2401 additions and 478 deletions

View File

@@ -1,154 +1,121 @@
<div>
@if (isset($formFoto['rute_menuju_lokasi']['rute_menuju_lokasi']))
@foreach ($formFoto['rute_menuju_lokasi']['rute_menuju_lokasi'][0] as $index => $item)
<div class="border photo-item">
<h2 class="text-gray-600 font-semibold text-xl">
{{ $item['name'] . ' ' . $loop->index + 1 }}
</h2>
@php
$photoSections = [
'rute_menuju_lokasi' => [
'key' => 'rute_menuju_lokasi',
'name_prefix' => '',
'nested' => true
],
'foto_rute_lainnya' => [
'key' => 'name_rute_lainnya',
'name_prefix' => '',
'nested' => false
],
'object_jaminan' => [
'key' => 'name_objek',
'name_prefix' => '',
'nested' => false
],
'foto_lantai_unit' => [
'key' => 'name',
'name_prefix' => 'Foto Lantai',
'nested' => true
],
'foto_lingkungan' => [
'key' => 'foto_lingkungan',
'name_prefix' => '',
'nested' => true
],
'single_photos' => [
'foto_basement' => 'Basement',
'foto_gerbang' => 'Gerbang',
'pendamping' => 'Pendamping'
]
];
@php
$imagePath = storage_path('app/public/' . $item['path']);
@endphp
@if ($statusLpj || file_exists(storage_path('app/public/' . $item['path'])))
<img src="{{ $imagePath }}" alt="{{ $item['path'] }}" class="photo-image">
@endif
</div>
@endforeach
@endif
@if (isset($formFoto['foto_rute_lainnya']))
@foreach ($formFoto['foto_rute_lainnya'] as $index => $item)
<div class="border photo-item">
<h2 class="text-gray-600 font-semibold text-xl">
{{ $item['name_rute_lainnya'] }}
</h2>
@php
$imagePath = storage_path('app/public/' . $item['foto_rute_lainnya']);
@endphp
@if ($statusLpj || file_exists(storage_path('app/public/' . $item['foto_rute_lainnya'])))
<img src="{{ $imagePath }}" alt="{{ $item['foto_rute_lainnya'] }}" class="photo-image">
@endif
</div>
@endforeach
@endif
@if (!empty($formFoto['object_jaminan']))
@foreach ($formFoto['object_jaminan'] as $item)
@php
$nameObjek = trim($item['name_objek'] ?? '');
$fotoObjek = trim($item['foto_objek'] ?? '');
$imagePath = storage_path('app/public/' . $fotoObjek);
@endphp
@if (!empty($nameObjek) || !empty($fotoObjek))
<div class="border photo-item">
@if (!empty($nameObjek))
<h2 class="text-gray-600 font-semibold text-xl">
{{ $nameObjek }}
</h2>
@endif
@if ($statusLpj || (!empty($fotoObjek) && file_exists($imagePath)))
<img src="{{ $imagePath }}" alt="{{ $nameObjek ?: 'Objek Foto' }}" class="photo-image">
@else
<p class="text-gray-500 italic">Foto tidak tersedia</p>
@endif
</div>
@endif
@endforeach
@else
<p class="text-gray-500 text-center italic">Tidak ada objek jaminan yang ditemukan</p>
@endif
@if (isset($formFoto['foto_lantai_unit']))
@foreach ($formFoto['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">
{{ $item['name'] ?? 'Foto Lantai ' . $floorNumber . ' - ' . ($index + 1) }}
</h2>
$hasPhotos = false;
@endphp
@foreach ($photoSections as $sectionKey => $sectionConfig)
@if ($sectionKey === 'single_photos')
@foreach ($sectionConfig as $photoKey => $photoName)
@if (isset($formFoto[$photoKey]) && !empty($formFoto[$photoKey]))
@php
$imagePath = storage_path('app/public/' . $item['path']);
$imagePath = storage_path('app/public/' . $formFoto[$photoKey]);
$hasPhotos = true;
@endphp
<div class="border photo-item">
<h2 class="text-gray-600 font-semibold text-xl">
{{ $photoName }}
</h2>
@if ($statusLpj || file_exists(storage_path('app/public/' . $item['path'])))
<img src="{{ $imagePath }}" alt="{{ $item['path'] }}" class="photo-image">
@endif
</div>
@endforeach
@endforeach
@endif
@if (isset($formFoto['foto_lingkungan']['foto_lingkungan']))
@foreach ($formFoto['foto_lingkungan']['foto_lingkungan'][0] as $index => $item)
<div class="border photo-item">
<h2 class="text-gray-600 font-semibold text-xl">
{{ $item['name'] . ' ' . $loop->index + 1 }}
</h2>
@php
$imagePath = storage_path('app/public/' . $item['path']);
@endphp
@if ($statusLpj || file_exists(storage_path('app/public/' . $item['path'])))
<img src="{{ $imagePath }}" alt="{{ $item['path'] }}" class="photo-image">
@if ($statusLpj || file_exists($imagePath))
<img src="{{ $imagePath }}" alt="{{ $photoName }}" class="photo-image">
@endif
</div>
@endif
</div>
@endforeach
@endif
@if (isset($formFoto['foto_basement']))
<div class="border photo-item">
<h2 class="text-gray-600 font-semibold text-xl">
Basement
</h2>
@endforeach
@else
@php
$imagePath = storage_path('app/public/' . $formFoto['foto_basement']);
$sectionData = $formFoto[$sectionKey] ?? null;
@endphp
@if ($statusLpj || file_exists(storage_path('app/public/' . $formFoto['foto_basement'])))
<img src="{{ $imagePath }}" alt="{{ $formFoto['foto_basement'] }}" class="photo-image">
@if (!empty($sectionData))
@if ($sectionConfig['nested'])
@if (isset($sectionData[$sectionConfig['key']][0]))
@foreach ($sectionData[$sectionConfig['key']][0] as $index => $item)
@php
$imagePath = storage_path('app/public/' . $item['path']);
$hasPhotos = true;
@endphp
<div class="border photo-item">
<h2 class="text-gray-600 font-semibold text-xl">
{{ $sectionConfig['name_prefix'] ?
($sectionConfig['name_prefix'] . ' ' . ($index + 1)) :
($item['name'] ?? 'Foto ' . ($index + 1))
}}
</h2>
@if ($statusLpj || file_exists($imagePath))
<img src="{{ $imagePath }}" alt="{{ $item['path'] }}" class="photo-image">
@endif
</div>
@endforeach
@endif
@else
@foreach ($sectionData as $index => $item)
@php
$name = $item[$sectionConfig['key']] ?? '';
$photoPath = $sectionKey === 'object_jaminan' ?
($item['foto_objek'] ?? '') :
($item['foto_rute_lainnya'] ?? '');
$imagePath = storage_path('app/public/' . $photoPath);
@endphp
@if (!empty($name) || !empty($photoPath))
@php $hasPhotos = true; @endphp
<div class="border photo-item">
@if (!empty($name))
<h2 class="text-gray-600 font-semibold text-xl">
{{ $name }}
</h2>
@endif
@if ($statusLpj || (file_exists($imagePath) && !empty($photoPath)))
<img src="{{ $imagePath }}" alt="{{ $name ?: 'Foto' }}" class="photo-image">
@endif
</div>
@endif
@endforeach
@endif
@endif
</div>
@endif
@endif
@endforeach
@if (isset($formFoto['foto_gerbang']))
<div class="border photo-item">
<h2 class="text-gray-600 font-semibold text-xl">
Gerbang
</h2>
@php
$imagePath = storage_path('app/public/' . $formFoto['foto_gerbang']);
@endphp
@if ($statusLpj || file_exists(storage_path('app/public/' . $formFoto['foto_gerbang'])))
<img src="{{ $imagePath }}" alt="{{ $formFoto['foto_gerbang'] }}" class="photo-image">
@endif
</div>
@endif
@if (isset($formFoto['pendamping']))
<div class="border photo-item">
<h2 class="text-gray-600 font-semibold text-xl">
Pendamping
</h2>
@php
$imagePath = storage_path('app/public/' . $formFoto['pendamping']);
@endphp
@if ($statusLpj || file_exists(storage_path('app/public/' . $formFoto['pendamping'])))
<img src="{{ $imagePath }}" alt="{{ $formFoto['pendamping'] }}" class="photo-image">
@endif
@if (!$hasPhotos)
<div class="text-center py-6 bg-gray-100 rounded-lg">
<p class="text-gray-500 italic">Tidak ada foto yang tersedia</p>
</div>
@endif
</div>

View File

@@ -1,3 +1,4 @@
@if (isset($formFoto['rute_menuju_lokasi']['rute_menuju_lokasi']))
<div class="card">
<div class="card-header bg-agi-50" id="basic_settings">
<h3 class="card-title">
@@ -22,6 +23,7 @@
@endif
</div>
</div>
@endif
@if (isset($formFoto['foto_rute_lainnya']))
<div class="card">
@@ -50,6 +52,7 @@
</div>
@endif
@if (isset($formFoto['object_jaminan']))
<div class="card">
<div class="card-header bg-agi-50" id="basic_settings">
<h3 class="card-title">
@@ -74,10 +77,11 @@
@endif
</div>
</div>
@endif
@if (isset($formFoto['foto_lantai_unit']))
<div class="card">
<div class="card-header" id="basic_settings">
<div class="card-header bg-agi-50" id="basic_settings">
<h3 class="card-title">Lantai</h3>
</div>
<div class="card-body">
@@ -90,7 +94,7 @@
<h3 class="text-gray-600 font-semibold text-lg">
{{ $item['name'] ?? 'Foto Lantai ' . ($floorIndex + 1) . ' - ' . ($index + 1) }}
</h3>
<div class="flex items-center">
<div class="flex items-center ">
<img src="{{ Storage::url($item['path']) }}"
alt="Gambar {{ $floorIndex + 1 }}-{{ $index + 1 }}"
class="w-full h-auto object-cover">
@@ -106,6 +110,7 @@
</div>
@endif
@if (isset($formFoto['foto_lingkungan']['foto_lingkungan']))
<div class="card">
<div class="card-header" id="basic_settings">
<h3 class="card-title">
@@ -128,8 +133,8 @@
@endforeach
@endif
</div>
</div>
@endif
@if (isset($formFoto['foto_basement']))
<div class="card">
@@ -147,7 +152,7 @@
<div class="flex items-center">
<img src="{{ Storage::url($formFoto['foto_basement']) }}" alt="">
<img src="{{ Storage::url($formFoto['foto_basement']) }}" alt="" class="w-full h-auto object-cover">
</div>
</div>
@@ -202,7 +207,7 @@
<div class="flex items-center">
<img src="{{ Storage::url($formFoto['foto_gerbang']) }}" alt="">
<img src="{{ Storage::url($formFoto['foto_gerbang']) }}" alt="" class="w-full h-auto object-cover">
</div>
</div>
@@ -231,7 +236,7 @@
<div class="flex items-center">
<img src="{{ Storage::url($formFoto['pendamping']) }}" alt="">
<img src="{{ Storage::url($formFoto['pendamping']) }}" alt="" class="w-full h-auto object-cover">
</div>
</div>
@@ -267,7 +272,7 @@ $adaFoto = false;
</h3>
</div>
<div class="card-body">
<div>
@if (isset($forminspeksi))
@forelse ($fotoTypes as $type)
@@ -278,7 +283,7 @@ $adaFoto = false;
@if ($imagePath && file_exists(storage_path('app/public/' . $imagePath)))
<img src="{{ Storage::url($imagePath) }}" alt="{{ $type }}"
class="photo-image">
class="w-full h-auto object-cover">
@endif
<p class="mt-2 text-sm">{{ Str::title(str_replace('_', ' ', $type)) }}</p>
</div>
@@ -289,4 +294,4 @@ $adaFoto = false;
</div>
</div>
</div>
@endif
@endif

View File

@@ -0,0 +1,344 @@
<!DOCTYPE html>
<html lang="en">
<head>
<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" />
<title>Laporan Penilai Jaminan</title>
<style>
* {
font-size: 6px;
}
h2 {
font-size: 10px
}
/** Define the header rules **/
@page {
margin-top: 120px;
/* Ruang untuk header */
margin-bottom: 50px;
/* Ruang untuk footer */
}
#header {
/* position: fixed; */
/* top: -100px; */
/* Posisi header di luar konten */
left: 0;
right: 0;
height: 90px;
text-align: center;
padding-bottom: 10px;
}
.header-logo {
position: absolute;
left: 20px;
top: 10px;
max-height: 80px;
max-width: 150px;
}
.header-title {
margin-top: 20px;
}
#footer {
position: fixed;
bottom: -50px;
left: 0;
right: 0;
height: 50px;
text-align: center;
border-top: 1px solid #ddd;
padding-top: 10px;
}
.page-number:after {
content: counter(page) " dari " counter(pages);
}
.content {
margin-top: 20px;
}
.page-break {
page-break-after: always;
}
footer {
position: fixed;
bottom: 0cm;
left: 0cm;
right: 0cm;
}
body {
margin-top: 3cm;
/* Tambahkan margin top sedikit lebih besar dari tinggi header */
margin-bottom: 120px;
position: relative;
z-index: 1;
/* Pastikan konten berada di bawah header */
}
.border {
border: 1px solid #000;
}
.photo-item {
text-align: center;
margin-bottom: 20px;
}
.photo-image {
max-width: 80%;
height: auto;
display: block;
margin: 0 auto;
}
</style>
</head>
<body style="width: 80%; margin: auto">
<header id="header">
<table style="width: 100%; border: none;">
<tr>
<td style="width: 20%; text-align: left;" class="header-left">
@include('lpj::component.logo-bag')
</td>
</tr>
</table>
</header>
<main class="content">
<table>
<tr>
<td>
<h2 style=" text-transform: uppercase;">MEMO ANTAR KANTOR</h2>
</td>
</tr>
</table>
<table style="width: 100%">
<tr>
<td style="width: 10%">Kepada</td>
<td>:</td>
<td>{{ $memo['kepada'] ?? '' }}</td>
</tr>
<tr>
<td>Dari</td>
<td>:</td>
<td>{{ $memo['dari'] ?? '' }}</td>
</tr>
<tr>
<td>No</td>
<td>:</td>
<td>{{ $memo['nomor_memo'] ?? '' }}</td>
</tr>
<tr>
<td>Tanggal</td>
<td>:</td>
<td></td>
</tr>
<tr>
<td>Perihal</td>
<td>:</td>
<td>{{ $memo['perihal'] ?? '' }}</td>
</tr>
</table>
<table>
<tr>
<td>
Menindak lanjuti permintann penilaian jaminan dari {{ $permohonan->user->name }} AO Cabang Ternate
tanggal , dapat di sampaikan sebagai berikut:
</td>
</tr>
</table>
<table>
<tr>
<td>
<h2 style=" text-transform: uppercase;">Identitas Deitur & Hubungan dan Penghuni</h2>
</td>
</tr>
</table>
<table style="width: 100%">
<tr>
<td style="width: 10%">Nama Calon Debiture</td>
<td>:</td>
<td >{{ $permohonan->debiture->name ?? '' }}</td>
</tr>
@if (@isset($dokumen))
@foreach ($dokumen->detail as $details)
<tr>
<td>{{ $details->jenisLegalitasJaminan->name ?? '' }}
</td>
<td>:</td>
<td>
@if (isset($detail->dokumen_jaminan))
@php
$dokumen_nomor = is_array(json_decode($detail->dokumen_nomor))
? json_decode($detail->dokumen_nomor)
: ($detail->dokumen_nomor
? [$detail->dokumen_nomor]
: []);
@endphp
@foreach ($dokumen_jaminan as $index => $dokumen)
<div>
@if (!empty($dokumen_nomor))
<span>
{{ $dokumen_nomor[$index] }}</span>
@endif
</div>
<br>
@endforeach
@endif
</td>
</tr>
@endforeach
@endif
<tr>
<td>Atas Nama</td>
<td>:</td>
<td>{{ $permohonan->debiture->name ?? '' }}</td>
</tr>
<tr>
<td>Tanggal Terbit Sertifikat</td>
<td>:</td>
<td></td>
</tr>
<tr>
<td>Surat Ukur No</td>
<td>:</td>
<td></td>
</tr>
<tr>
@php
$cekLuas = isset($forminspeksi['tanah']['luas_tanah']['tidak sesuai']) ? 'tidak sesuai' : 'sesuai';
$luas = $forminspeksi['tanah']['luas_tanah'][$cekLuas] ?? null;
@endphp
<td >Luas Tanah</td>
<td >:</td>
<td >{{ $luas ?? '' }}</td>
</tr>
</table>
<table>
<tr>
<td>
<h2 style=" text-transform: uppercase;">Loaksi Jaminan</h2>
</td>
</tr>
</table>
<table style="width: 100%">
<tr>
<td width="10%">Terletak di</td>
<td>:</td>
<td> {{ $alamat['address'] ?? '' }}</td>
</tr>
<tr>
<td>Kelurahan</td>
<td>:</td>
<td>{{ $alamat['village_code'] ?? '' }}</td>
</tr>
<tr>
<td>Kecamatan</td>
<td>:</td>
<td>{{ $alamat['district_code'] ?? '' }}</td>
</tr>
<tr>
<td>Kota</td>
<td>:</td>
<td> {{ $alamat['city_code'] ?? '' }}</td>
</tr>
<tr>
<td>Propinsi</td>
<td>:</td>
<td>{{ $alamat['province_code'] ?? '' }}</td>
</tr>
<tr>
<td>Titik Kordinat</td>
<td>:</td>
<td>{{ $alamat['province_code'] ?? '' }}</td>
</tr>
</table>
<table>
<tr>
<td>
<h2 style=" text-transform: uppercase;">HASIL INSPEKSI</h2>
</td>
</tr>
</table>
<table>
<tr>
<td>
<h2 style=" text-transform: uppercase;">KESIMPULAN DAN SARAN</h2>
</td>
</tr>
</table>
<table style="width: 100%">
<tr>
<td>Demikian Kami Sampaikan, aatas perhatiannya kami ucapkan terimakasih</td>
</tr>
<tr>
<table style="width: 100%; text-align: center;" border="1">
<tr>
<td style="height: 50px"></td>
<td style="height: 50px"></td>
<td style="height: 50px"></td>
<td style="height: 50px"></td>
</tr>
<tr>
<td>{{ $penilai->userPenilaiTeam->name ?? '' }}</br>
Appraisal
</td>
<td> {{ $senior_officer->name ?? '' }}</br>
SO Region
</td>
<td> {{ $senior_officer->name ?? '' }}</br>
EO Appraisal
</td>
<td> {{ $senior_officer->name ?? '' }}</br>
Deputy Director
</td>
</tr>
</table>
</tr>
</table>
<div class="page-break"></div>
<table style="width: 100%">
<tr>
<td style=" width: 100%; padding: 2px; border: 1px solid #000; text-align: center">FOTO JAMINAN</td>
</tr>
<tr>
<td>
@include('lpj::penilai.components.foto-jaminan')
</td>
</tr>
</table>
</main>
<footer>
</footer>
</body>
</html>

View File

@@ -0,0 +1,344 @@
<!DOCTYPE html>
<html lang="en">
<head>
<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" />
<title>Laporan Penilai Jaminan</title>
<style>
* {
font-size: 6px;
}
h2 {
font-size: 10px
}
/** Define the header rules **/
@page {
margin-top: 120px;
/* Ruang untuk header */
margin-bottom: 50px;
/* Ruang untuk footer */
}
#header {
/* position: fixed; */
/* top: -100px; */
/* Posisi header di luar konten */
left: 0;
right: 0;
height: 90px;
text-align: center;
padding-bottom: 10px;
}
.header-logo {
position: absolute;
left: 20px;
top: 10px;
max-height: 80px;
max-width: 150px;
}
.header-title {
margin-top: 20px;
}
#footer {
position: fixed;
bottom: -50px;
left: 0;
right: 0;
height: 50px;
text-align: center;
border-top: 1px solid #ddd;
padding-top: 10px;
}
.page-number:after {
content: counter(page) " dari " counter(pages);
}
.content {
margin-top: 20px;
}
.page-break {
page-break-after: always;
}
footer {
position: fixed;
bottom: 0cm;
left: 0cm;
right: 0cm;
}
body {
margin-top: 3cm;
/* Tambahkan margin top sedikit lebih besar dari tinggi header */
margin-bottom: 120px;
position: relative;
z-index: 1;
/* Pastikan konten berada di bawah header */
}
.border {
border: 1px solid #000;
}
.photo-item {
text-align: center;
margin-bottom: 20px;
}
.photo-image {
max-width: 80%;
height: auto;
display: block;
margin: 0 auto;
}
</style>
</head>
<body style="width: 80%; margin: auto">
<header id="header">
<table style="width: 100%; border: none;">
<tr>
<td style="width: 20%; text-align: left;" class="header-left">
@include('lpj::component.logo-bag')
</td>
</tr>
</table>
</header>
<main class="content">
<table>
<tr>
<td>
<h2 style=" text-transform: uppercase;">MEMO ANTAR KANTOR</h2>
</td>
</tr>
</table>
<table style="width: 100%">
<tr>
<td style="width: 10%">Kepada</td>
<td>:</td>
<td>{{ $memo['kepada'] ?? '' }}</td>
</tr>
<tr>
<td>Dari</td>
<td>:</td>
<td>{{ $memo['dari'] ?? '' }}</td>
</tr>
<tr>
<td>No</td>
<td>:</td>
<td>{{ $memo['nomor_memo'] ?? '' }}</td>
</tr>
<tr>
<td>Tanggal</td>
<td>:</td>
<td></td>
</tr>
<tr>
<td>Perihal</td>
<td>:</td>
<td>{{ $memo['perihal'] ?? '' }}</td>
</tr>
</table>
<table>
<tr>
<td>
Menindak lanjuti permintann penilaian jaminan dari {{ $permohonan->user->name }} AO Cabang Ternate
tanggal , dapat di sampaikan sebagai berikut:
</td>
</tr>
</table>
<table>
<tr>
<td>
<h2 style=" text-transform: uppercase;">Identitas Deitur & Hubungan dan Penghuni</h2>
</td>
</tr>
</table>
<table style="width: 100%">
<tr>
<td style="width: 10%">Nama Calon Debiture</td>
<td>:</td>
<td >{{ $permohonan->debiture->name ?? '' }}</td>
</tr>
@if (@isset($dokumen))
@foreach ($dokumen->detail as $details)
<tr>
<td>{{ $details->jenisLegalitasJaminan->name ?? '' }}
</td>
<td>:</td>
<td>
@if (isset($detail->dokumen_jaminan))
@php
$dokumen_nomor = is_array(json_decode($detail->dokumen_nomor))
? json_decode($detail->dokumen_nomor)
: ($detail->dokumen_nomor
? [$detail->dokumen_nomor]
: []);
@endphp
@foreach ($dokumen_jaminan as $index => $dokumen)
<div>
@if (!empty($dokumen_nomor))
<span>
{{ $dokumen_nomor[$index] }}</span>
@endif
</div>
<br>
@endforeach
@endif
</td>
</tr>
@endforeach
@endif
<tr>
<td>Atas Nama</td>
<td>:</td>
<td>{{ $permohonan->debiture->name ?? '' }}</td>
</tr>
<tr>
<td>Tanggal Terbit Sertifikat</td>
<td>:</td>
<td></td>
</tr>
<tr>
<td>Surat Ukur No</td>
<td>:</td>
<td></td>
</tr>
<tr>
@php
$cekLuas = isset($forminspeksi['tanah']['luas_tanah']['tidak sesuai']) ? 'tidak sesuai' : 'sesuai';
$luas = $forminspeksi['tanah']['luas_tanah'][$cekLuas] ?? null;
@endphp
<td >Luas Tanah</td>
<td >:</td>
<td >{{ $luas ?? '' }}</td>
</tr>
</table>
<table>
<tr>
<td>
<h2 style=" text-transform: uppercase;">Loaksi Jaminan</h2>
</td>
</tr>
</table>
<table style="width: 100%">
<tr>
<td width="10%">Terletak di</td>
<td>:</td>
<td> {{ $alamat['address'] ?? '' }}</td>
</tr>
<tr>
<td>Kelurahan</td>
<td>:</td>
<td>{{ $alamat['village_code'] ?? '' }}</td>
</tr>
<tr>
<td>Kecamatan</td>
<td>:</td>
<td>{{ $alamat['district_code'] ?? '' }}</td>
</tr>
<tr>
<td>Kota</td>
<td>:</td>
<td> {{ $alamat['city_code'] ?? '' }}</td>
</tr>
<tr>
<td>Propinsi</td>
<td>:</td>
<td>{{ $alamat['province_code'] ?? '' }}</td>
</tr>
<tr>
<td>Titik Kordinat</td>
<td>:</td>
<td>{{ $alamat['province_code'] ?? '' }}</td>
</tr>
</table>
<table>
<tr>
<td>
<h2 style=" text-transform: uppercase;">HASIL INSPEKSI</h2>
</td>
</tr>
</table>
<table>
<tr>
<td>
<h2 style=" text-transform: uppercase;">KESIMPULAN DAN SARAN</h2>
</td>
</tr>
</table>
<table style="width: 100%">
<tr>
<td>Demikian Kami Sampaikan, aatas perhatiannya kami ucapkan terimakasih</td>
</tr>
<tr>
<table style="width: 100%; text-align: center;" border="1">
<tr>
<td style="height: 50px"></td>
<td style="height: 50px"></td>
<td style="height: 50px"></td>
<td style="height: 50px"></td>
</tr>
<tr>
<td>{{ $penilai->userPenilaiTeam->name ?? '' }}</br>
Appraisal
</td>
<td> {{ $senior_officer->name ?? '' }}</br>
SO Region
</td>
<td> {{ $senior_officer->name ?? '' }}</br>
EO Appraisal
</td>
<td> {{ $senior_officer->name ?? '' }}</br>
Deputy Director
</td>
</tr>
</table>
</tr>
</table>
<div class="page-break"></div>
<table style="width: 100%">
<tr>
<td style=" width: 100%; padding: 2px; border: 1px solid #000; text-align: center">FOTO JAMINAN</td>
</tr>
<tr>
<td>
@include('lpj::penilai.components.foto-jaminan')
</td>
</tr>
</table>
</main>
<footer>
</footer>
</body>
</html>

View File

@@ -0,0 +1,301 @@
<!DOCTYPE html>
<html lang="en">
<head>
<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" />
<title>Laporan Penilai Jaminan</title>
<style>
* {
font-size: 6px;
}
h2 {
font-size: 10px
}
/** Define the header rules **/
@page {
margin-top: 120px;
/* Ruang untuk header */
margin-bottom: 50px;
/* Ruang untuk footer */
}
#header {
/* position: fixed; */
/* top: -100px; */
/* Posisi header di luar konten */
left: 0;
right: 0;
height: 90px;
text-align: center;
padding-bottom: 10px;
}
.header-logo {
position: absolute;
left: 20px;
top: 10px;
max-height: 80px;
max-width: 150px;
}
.header-title {
margin-top: 20px;
}
#footer {
position: fixed;
bottom: -50px;
left: 0;
right: 0;
height: 50px;
text-align: center;
border-top: 1px solid #ddd;
padding-top: 10px;
}
.page-number:after {
content: counter(page) " dari " counter(pages);
}
.content {
margin-top: 20px;
}
.page-break {
page-break-after: always;
}
footer {
position: fixed;
bottom: 0cm;
left: 0cm;
right: 0cm;
}
body {
margin-top: 3cm;
/* Tambahkan margin top sedikit lebih besar dari tinggi header */
margin-bottom: 120px;
position: relative;
z-index: 1;
/* Pastikan konten berada di bawah header */
}
.border {
border: 1px solid #000;
}
.photo-item {
text-align: center;
margin-bottom: 20px;
}
.photo-image {
max-width: 80%;
height: auto;
display: block;
margin: 0 auto;
}
</style>
</head>
<body style="width: 80%; margin: auto">
<header id="header">
<table style="width: 100%; border: none;">
<tr>
<td style="width: 20%; text-align: left;" class="header-left">
@include('lpj::component.logo-bag')
</td>
</tr>
</table>
</header>
<main class="content">
<table style="width: 100%">
<tr>
<td>
<h2 style="text-decoration: underline; text-transform: uppercase; text-align: center;">Resume
Penilaian
</h2>
</td>
</tr>
</table>
<table style="width: 100%">
<tr>
<td style="width: 10%">Pemohon</td>
<td>:</td>
<td></td>
</tr>
<tr>
<td>Atas Nama Cadeb</td>
<td>:</td>
<td></td>
</tr>
<tr>
<td>Aset</td>
<td>:</td>
<td></td>
</tr>
<tr>
<td>Lokasi Objek</td>
<td>:</td>
<td></td>
</tr>
<tr>
<td>Dokumen</td>
<td>:</td>
<td>
<table>
@if (@isset($dokumen))
@foreach ($dokumen->detail as $details)
<tr>
<td>{{ $details->jenisLegalitasJaminan->name ?? '' }}
@if (isset($detail->dokumen_jaminan))
@php
$dokumen_nomor = is_array(json_decode($detail->dokumen_nomor))
? json_decode($detail->dokumen_nomor)
: ($detail->dokumen_nomor
? [$detail->dokumen_nomor]
: []);
@endphp
@foreach ($dokumen_jaminan as $index => $dokumen)
<div>
@if (!empty($dokumen_nomor))
<span>
{{ $dokumen_nomor[$index] }}</span>
@endif
</div>
<br>
@endforeach
@endif
</td>
</tr>
@endforeach
@endif
</table>
</td>
</tr>
<tr>
<td>Luas Tanah</td>
<td>:</td>
<td></td>
</tr>
<tr>
<td>Tanggal Kunjungan</td>
<td>:</td>
<td></td>
</tr>
<tr>
<td>Luast Lahan</td>
<td>:</td>
<td></td>
</tr>
</table>
<table>
<tr>
<td>
<h2 style=" text-transform: uppercase;">Faktor Positif</h2>
</td>
</tr>
</table>
<table>
<tr>
<td>
<h2 style=" text-transform: uppercase;">Faktor negatif</h2>
</td>
</tr>
</table>
<table style="width: 100%">
<tr>
<td>
<h2 style=" text-transform: uppercase;">Nilai Pasar Wajar</h2>
</td>
</tr>
</table>
<table border="1" style="width: 100%">
<tr>
<td>
Keterangan
</td>
<td>
Nilai Pasar Wajar
</td>
<td>
Nilai Likudasi
</td>
</tr>
<tr>
<td>
</td>
<td>
Nilai Pasar Wajar
</td>
<td>
Nilai Likudasi
</td>
</tr>
</table>
<table>
<tr>
<td>
<h2 style=" text-transform: uppercase;">lain lain</h2>
</td>
</tr>
</table>
<table style="width: 100%">
<tr>
<td>Demikian Kami Sampaikan, atas perhatiannya kami ucapkan terimakasih</td>
</tr>
<tr>
<table style="width: 100%; text-align: center;" >
<tr>
<td style="height: 50px"></td>
<td style="height: 50px"></td>
</tr>
<tr>
<td>{{ $penilai->userPenilaiTeam->name ?? '' }}</br>
Appraisal
</td>
<td> {{ $senior_officer->name ?? '' }}</br>
SO Region
</td>
</tr>
</table>
</tr>
</table>
<div class="page-break"></div>
<table style="width: 100%">
<tr>
<td style=" width: 100%; padding: 2px; border: 1px solid #000; text-align: center">FOTO JAMINAN</td>
</tr>
<tr>
<td>
@include('lpj::penilai.components.foto-jaminan')
</td>
</tr>
</table>
</main>
<footer>
</footer>
</body>
</html>

View File

@@ -0,0 +1,15 @@
@extends('layouts.main')
@section('breadcrumbs')
{{-- {{ Breadcrumbs::render(request()->route()->getName()) }}
--}}
RAP
@endsection
@section('content')
<div class="w-full grid gap-5 lg:gap-7.5 mx-auto">
@include('lpj::assetsku.includenya')
@include('lpj::surveyor.components.header')
@include('lpj::surveyor.components.rap')
</div>
@endsection