fix(penilai): perbaikkan keterangan freeze dan ubah name kjjp ke kjpp, handle key foto memo

This commit is contained in:
majid
2025-03-11 11:51:01 +07:00
parent 25e7016486
commit 5a8b93b5f7
9 changed files with 196 additions and 113 deletions

View File

@@ -295,9 +295,11 @@
</table>
</main>
<div class="page-break"></div>
@if (isset($memo['foto']))
<table width="100%" border="0" style="align-content: center; text-align: center; margin-bottom: 20px">
@foreach ($memo['foto'] as $item)
@php
@php
$cleanedPath = str_replace('/storage/', '', $item);
$imagePath = storage_path('app/public/' . $cleanedPath);
@endphp
@@ -307,7 +309,7 @@
</td>
</tr>
@endforeach
</table>
@endif
@include('lpj::penilai.components.footer')

View File

@@ -232,7 +232,7 @@
actions: {
title: 'Action',
render: (item, data) => {
if (data.status === 'survey-completed' || data.status === 'proses-laporan' || data.status === 'paparan' || data.status === 'proses-paparan' || data.status === 'paparan' || data.status == 'revisi-laporan' || data.status === 'done' || data.status === 'revisi-paparan') {
if (data.status === 'survey-completed' || data.status === 'proses-laporan' || data.status === 'paparan' || data.status === 'proses-paparan' || data.status === 'paparan' || data.status == 'revisi-laporan' || data.status === 'done' || data.status === 'revisi-paparan' || data.status === 'reject-freeze' || data.status === 'freeze' || data.status === 'request-freeze') {
return `
<div class="flex flex-nowrap justify-center gap-1.5">
<a class="btn btn-sm btn-icon btn-clear btn-info" href="penilai/${data.id}/show">
@@ -298,7 +298,7 @@ Swal.fire({
url: `/surveyor/storeFreeze/${permohonanId}`,
type: 'POST',
data: {
message: userMessage
keterangan: userMessage
},
success: (response) => {
Swal.fire('Berhasil!',