Compare commits
6 Commits
e28da750c7
...
fc466f6087
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fc466f6087 | ||
|
|
1e8ce1d6d9 | ||
|
|
589e06dc00 | ||
|
|
7936c3e275 | ||
|
|
5e946cdfa7 | ||
|
|
b53b94e27d |
@@ -31,7 +31,8 @@
|
||||
/* Image Styling */
|
||||
.photo-item img {
|
||||
width: auto;
|
||||
height: 400px;
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
max-height: 400px;
|
||||
object-fit: contain;
|
||||
background-color: #f0f0f0;
|
||||
@@ -59,7 +60,6 @@
|
||||
}
|
||||
|
||||
.photo-image {
|
||||
width: 100;
|
||||
height: 400px;
|
||||
max-height: 400px;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,36 @@
|
||||
@include('lpj::penilai.components.header')
|
||||
|
||||
@php
|
||||
$data = '';
|
||||
foreach ($permohonan->documents as $dokumen) {
|
||||
$data .= $dokumen->jenisJaminan->name . ', ';
|
||||
|
||||
$penilai = $permohonan->penilaian->userPenilai->where('role', 'penilai')->first();
|
||||
$surveyor = $permohonan->penilaian->userPenilai->where('role', 'surveyor')->first();
|
||||
$teams = $permohonan->region->teams;
|
||||
|
||||
if ($teams) {
|
||||
foreach ($teams as $team) {
|
||||
$team_users = $team->teamsUsers;
|
||||
// print_r($team_users);
|
||||
if ($team_users) {
|
||||
foreach ($team_users as $team_user) {
|
||||
$user = $team_user->user;
|
||||
|
||||
if ($user && $user->hasRole('senior-officer')) {
|
||||
$senior_officer = $user;
|
||||
break 3;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
use Modules\Usermanagement\Models\User;
|
||||
$penilaiUser = User::where('id', $penilai->userPenilaiTeam->id)->first();
|
||||
|
||||
$data = rtrim($data, ', ');
|
||||
@endphp
|
||||
|
||||
<main class="content">
|
||||
<table style="width: 100%">
|
||||
|
||||
@@ -309,7 +309,7 @@
|
||||
}
|
||||
|
||||
|
||||
function checkLaporan(permohonanId, documentId, inspeksiId, jaminanId, statusLpj) {
|
||||
function checkLaporan(permohonanId, documentId, inspeksiId, statusLpj) {
|
||||
// showLoadingSwal('Tunggu...');
|
||||
fetch(
|
||||
`{{ url('/penilai/check-laporan') }}?permohonanId=${permohonanId}&documentId=${documentId}&inspeksiId=${inspeksiId}`
|
||||
@@ -318,7 +318,7 @@
|
||||
.then(data => {
|
||||
if (data.status) {
|
||||
window.location.href =
|
||||
`{{ route('penilai.print-out') }}?permohonanId=${permohonanId}&documentId=${documentId}&inspeksiId=${inspeksiId}&jaminanId=${jaminanId}&statusLpj=${statusLpj}&type=${data.status}`;
|
||||
`{{ route('penilai.print-out') }}?permohonanId=${permohonanId}&documentId=${documentId}&inspeksiId=${inspeksiId}&statusLpj=${statusLpj}&type=${data.status}`;
|
||||
} else {
|
||||
// Jika laporan belum ada, tampilkan pesan peringatan
|
||||
Swal.fire({
|
||||
|
||||
Reference in New Issue
Block a user