fix(print-out) : prbaikan tampilan memo, resume, sederhana, standard, rap

This commit is contained in:
majid
2025-01-22 16:10:30 +07:00
parent c0aafdd827
commit b18c25819e
5 changed files with 178 additions and 96 deletions

View File

@@ -1547,7 +1547,7 @@
</table>
<table style="width: 100%; border-collapse: collapse; text-align: center;" border="1">
<table style="width: 100%; border-collapse: collapse; text-align: center;" >
@php
use Modules\Usermanagement\Models\User;
@@ -1563,52 +1563,65 @@
$imagePathDD = storage_path('app/public/signatures/' . User::role('DD Appraisal')->first()->id . '/'. User::role('DD Appraisal')->first()->sign);
@endphp
<tr>
<td style="border: 1px solid #000; padding: 4px;height: 50px">
<td style=" padding: 4px;height: 50px">
@if (file_exists($imagePathPenilai))
<img src="{{ $imagePathPenilai }}" alt="{{ $imagePathPenilai }}" width="80px">
@endif
</td>
<td style="border: 1px solid #000; padding: 4px;height: 50px">
@if ($permohonan->approval_so != null)
<td style=" padding: 4px;height: 50px">
@if (file_exists($imagePathSo))
<img src="{{ $imagePathSo }}" alt="{{ $imagePathSo }}" width="80px">
@endif
</td>
<td style="border: 1px solid #000; padding: 4px;height: 50px">
@endif
@if ($permohonan->approval_eo != null)
<td style=" padding: 4px;height: 50px">
@if (file_exists($imagePathEO))
<img src="{{ $imagePathEO }}" alt="{{ $imagePathEO }}" width="80px">
@endif
</td>
<td style="border: 1px solid #000; padding: 4px;height: 50px">
@endif
@if ($permohonan->approval_dd != null)
<td style=" padding: 4px;height: 50px">
@if (file_exists($imagePathDD))
<img src="{{ $imagePathDD }}" alt="{{ $imagePathDD }}" width="80px">
@endif
</td>
@endif
</tr>
<tr>
<td style="border: 1px solid #000; padding: 4px;">{{ $penilai->userPenilaiTeam->name ?? '' }}</br>
<strong style="font-weight: bold; ">
PENILAI
</strong>
<td style=" padding: 4px;">{{ $penilai->userPenilaiTeam->name ?? '' }}</br>
<span >
{{ ucwords(strtolower('PENILAI'))}}
</span>
</td>
<td style="border: 1px solid #000; padding: 4px;"> {{ $senior_officer->name ?? '' }}</br>
<strong style="font-weight: bold; ">
SENIOR OFFICER
</strong>
@if ($permohonan->approval_so != null)
<td style=" padding: 4px;">
{{ $senior_officer->name ?? '' }}</br>
<span >
{{ ucwords(strtolower('SENIOR OFFICER'))}}
</span>
</td>
@endif
<td style="border: 1px solid #000; padding: 4px;">
@if ($permohonan->approval_eo != null)
<td style=" padding: 4px;">
{{ User::role('EO Appraisal')->first()->name ?? '' }}</br>
<strong style="font-weight: bold; ">
EXECUTIVE OFFICER
</strong>
<span >
{{ ucwords(strtolower('EXECUTIVE OFFICER'))}}
</span>
</td>
<td style="border: 1px solid #000; padding: 4px;">
@endif
@if ($permohonan->approval_dd != null)
<td style=" padding: 4px;">
{{ User::role('DD Appraisal')->first()->name ?? '' }}</br>
<strong style="font-weight: bold; ">
DEPUTY DIRECTOR
</strong>
<span >
{{ ucwords(strtolower('DEPUTY DIRECTOR'))}}
</span>
</td>
@endif
</tr>
</table>