fix(surveyor): perbaikkan foto dan print out hasil inspeksi
This commit is contained in:
@@ -236,6 +236,7 @@ class SurveyorController extends Controller
|
|||||||
'alat-berat' => 'getAlatBeratData',
|
'alat-berat' => 'getAlatBeratData',
|
||||||
'lingkungan' => 'getLingkunganData',
|
'lingkungan' => 'getLingkunganData',
|
||||||
'fakta' => 'getFactData',
|
'fakta' => 'getFactData',
|
||||||
|
'informasi' => 'getFactData',
|
||||||
'rap' => 'getRapData',
|
'rap' => 'getRapData',
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -2668,7 +2669,8 @@ class SurveyorController extends Controller
|
|||||||
'foto_bhumi',
|
'foto_bhumi',
|
||||||
'foto_argis_region',
|
'foto_argis_region',
|
||||||
'foto_tempat',
|
'foto_tempat',
|
||||||
'foto_sentuh_tanahku'
|
'foto_sentuh_tanahku',
|
||||||
|
'upload_gs'
|
||||||
];
|
];
|
||||||
|
|
||||||
if ($inspeksi) {
|
if ($inspeksi) {
|
||||||
@@ -3638,7 +3640,7 @@ class SurveyorController extends Controller
|
|||||||
$namaDebiture = $permohonan->debiture->name . '-' . $permohonan->nomor_registrasi;
|
$namaDebiture = $permohonan->debiture->name . '-' . $permohonan->nomor_registrasi;
|
||||||
$fileName = 'inspeksi-' . $namaDebiture . '-data.pdf';
|
$fileName = 'inspeksi-' . $namaDebiture . '-data.pdf';
|
||||||
|
|
||||||
return $pdf->download($fileName);
|
return $pdf->stream($fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function approveReschedule(Request $request, $id)
|
public function approveReschedule(Request $request, $id)
|
||||||
|
|||||||
@@ -30,8 +30,9 @@
|
|||||||
|
|
||||||
/* Image Styling */
|
/* Image Styling */
|
||||||
.photo-item img {
|
.photo-item img {
|
||||||
width: 300px;
|
width: auto;
|
||||||
height: 300px;
|
height: 400px;
|
||||||
|
max-height: 400px;
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
background-color: #f0f0f0;
|
background-color: #f0f0f0;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
@@ -50,16 +51,19 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
}
|
}
|
||||||
|
|
||||||
td {
|
td {
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
page-break-inside: avoid;
|
page-break-inside: avoid;
|
||||||
}
|
}
|
||||||
|
|
||||||
.photo-image {
|
.photo-image {
|
||||||
width: auto;
|
width: auto;
|
||||||
height: 400px;
|
height: 400px;
|
||||||
max-height: 400px;
|
max-height: 400px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-break {
|
.page-break {
|
||||||
page-break-after: always;
|
page-break-after: always;
|
||||||
}
|
}
|
||||||
@@ -81,8 +85,6 @@
|
|||||||
@if ($groupedPhotos->isEmpty())
|
@if ($groupedPhotos->isEmpty())
|
||||||
<p class="text-gray-500">Tidak ada foto yang tersedia.</p>
|
<p class="text-gray-500">Tidak ada foto yang tersedia.</p>
|
||||||
@else
|
@else
|
||||||
|
|
||||||
|
|
||||||
@foreach ($mainPhotos as $category => $photos)
|
@foreach ($mainPhotos as $category => $photos)
|
||||||
@php
|
@php
|
||||||
$groupedBySubcategory = $photos->groupBy('sub');
|
$groupedBySubcategory = $photos->groupBy('sub');
|
||||||
@@ -91,7 +93,8 @@
|
|||||||
@foreach ($groupedBySubcategory as $subcategory => $subPhotos)
|
@foreach ($groupedBySubcategory as $subcategory => $subPhotos)
|
||||||
@if (count($subPhotos) > 0)
|
@if (count($subPhotos) > 0)
|
||||||
@foreach ($subPhotos->chunk(2) as $chunkedPhotos)
|
@foreach ($subPhotos->chunk(2) as $chunkedPhotos)
|
||||||
<table width="100%" border="0" style="align-content: center; text-align: center; margin-bottom: 20px">
|
<table width="100%" border="0"
|
||||||
|
style="align-content: center; text-align: center; margin-bottom: 20px">
|
||||||
@foreach ($chunkedPhotos as $item)
|
@foreach ($chunkedPhotos as $item)
|
||||||
@php
|
@php
|
||||||
$imagePath = storage_path('app/public/' . $item['path']);
|
$imagePath = storage_path('app/public/' . $item['path']);
|
||||||
@@ -129,7 +132,8 @@
|
|||||||
@foreach ($otherPhotos->groupBy('sub') as $subcategory => $subPhotos)
|
@foreach ($otherPhotos->groupBy('sub') as $subcategory => $subPhotos)
|
||||||
@if (count($subPhotos) > 0)
|
@if (count($subPhotos) > 0)
|
||||||
@foreach ($subPhotos->chunk(2) as $chunkedPhotos)
|
@foreach ($subPhotos->chunk(2) as $chunkedPhotos)
|
||||||
<table width="100%" border="0" style="align-content: center; text-align: center; margin-bottom: 20px">
|
<table width="100%" border="0"
|
||||||
|
style="align-content: center; text-align: center; margin-bottom: 20px">
|
||||||
@foreach ($chunkedPhotos as $item)
|
@foreach ($chunkedPhotos as $item)
|
||||||
@php
|
@php
|
||||||
$imagePath = storage_path('app/public/' . $item['path']);
|
$imagePath = storage_path('app/public/' . $item['path']);
|
||||||
@@ -163,4 +167,3 @@
|
|||||||
@endif
|
@endif
|
||||||
@endif
|
@endif
|
||||||
@endisset
|
@endisset
|
||||||
|
|
||||||
|
|||||||
@@ -365,7 +365,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td style="text-align: center; margin-top: 5px; ">
|
<td style="text-align: center; margin-top: 5px; ">
|
||||||
<h2 style=" text-transform: uppercase; text-align: center; margin: 0;">
|
<h2 style=" text-transform: uppercase; text-align: center; margin: 0;">
|
||||||
Jaminan
|
STATUS KEPEMILIKAN, HUBUNGAN DAN PENGHUNI
|
||||||
</h2>
|
</h2>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
Reference in New Issue
Block a user