fix(print-out): perbaikkan print out foto dan print out resume

This commit is contained in:
majid
2025-04-21 15:59:56 +07:00
parent 55036bf581
commit 43b086f3ea
2 changed files with 33 additions and 2 deletions

View File

@@ -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;
}

View File

@@ -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%">