perbaikan signature di print out
This commit is contained in:
@@ -254,49 +254,90 @@
|
|||||||
<td>Demikian Kami Sampaikan, atas perhatiannya kami ucapkan terimakasih</td>
|
<td>Demikian Kami Sampaikan, atas perhatiannya kami ucapkan terimakasih</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<table style="width: 100%; text-align: center;">
|
<table style="width: 100%; border-collapse: collapse; text-align: center;">
|
||||||
|
|
||||||
<tr>
|
|
||||||
<td style="height: 50px"></td>
|
|
||||||
<td style="height: 50px"></td>
|
|
||||||
<td style="height: 50px"></td>
|
|
||||||
<td style="height: 50px"></td>
|
|
||||||
</tr>
|
|
||||||
@php
|
@php
|
||||||
use Modules\Usermanagement\Models\User;
|
use Modules\Usermanagement\Models\User;
|
||||||
|
|
||||||
|
$penilaiUser = User::where('id', $penilai->userPenilaiTeam->id)->first();
|
||||||
|
$imagePathPenilai = storage_path('app/public/signatures/' . $penilaiUser->id . '/' . $penilaiUser->sign);
|
||||||
|
|
||||||
|
$soUser = User::where('id', $senior_officer->id)->first();
|
||||||
|
$imagePathSo = storage_path('app/public/signatures/' . $soUser->id . '/' . $soUser->sign);
|
||||||
|
|
||||||
|
$imagePathEO = storage_path(
|
||||||
|
'app/public/signatures/' .
|
||||||
|
User::role('EO Appraisal')->first()->id .
|
||||||
|
'/' .
|
||||||
|
User::role('EO Appraisal')->first()->sign,
|
||||||
|
);
|
||||||
|
|
||||||
|
$imagePathDD = storage_path(
|
||||||
|
'app/public/signatures/' .
|
||||||
|
User::role('DD Appraisal')->first()->id .
|
||||||
|
'/' .
|
||||||
|
User::role('DD Appraisal')->first()->sign,
|
||||||
|
);
|
||||||
@endphp
|
@endphp
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ $penilai->userPenilaiTeam->name ?? '' }}</br>
|
<td style=" padding: 4px;height: 50px">
|
||||||
<span style=" margin: 0; ">
|
@if (file_exists($imagePathPenilai))
|
||||||
|
<img src="{{ $imagePathPenilai }}" alt="{{ $imagePathPenilai }}" width="80px">
|
||||||
|
@endif
|
||||||
|
</td>
|
||||||
|
@if ($permohonan->approval_so != null)
|
||||||
|
<td style=" padding: 4px;height: 50px">
|
||||||
|
@if (file_exists($imagePathSo))
|
||||||
|
<img src="{{ $imagePathSo }}" alt="{{ $imagePathSo }}" width="80px">
|
||||||
|
@endif
|
||||||
|
</td>
|
||||||
|
@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>
|
||||||
|
@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=" padding: 4px;">{{ $penilai->userPenilaiTeam->name ?? '' }}</br>
|
||||||
|
<span>
|
||||||
{{ ucwords(strtolower('PENILAI')) }}
|
{{ ucwords(strtolower('PENILAI')) }}
|
||||||
</span>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
@if ($permohonan->approval_so != null)
|
||||||
@if ($permohonan->approval_so != null)
|
<td style=" padding: 4px;">
|
||||||
{{ $senior_officer->name ?? '' }}</br>
|
{{ $senior_officer->name ?? '' }}</br>
|
||||||
<span style=" margin: 0; ">
|
<span>
|
||||||
{{ ucwords(strtolower('SENIOR OFFICER')) }}
|
{{ ucwords(strtolower('SENIOR OFFICER')) }}
|
||||||
</span>
|
</span>
|
||||||
@endif
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
@if ($permohonan->approval_eo != null)
|
|
||||||
{{ User::role('EO Appraisal')->first()->name ?? '' }}</br>
|
|
||||||
<span style=" margin: 0; ">
|
|
||||||
|
|
||||||
|
</td>
|
||||||
|
@endif
|
||||||
|
|
||||||
|
@if ($permohonan->approval_eo != null)
|
||||||
|
<td style=" padding: 4px;">
|
||||||
|
{{ User::role('EO Appraisal')->first()->name ?? '' }}</br>
|
||||||
|
<span>
|
||||||
{{ ucwords(strtolower('EXECUTIVE OFFICER')) }}
|
{{ ucwords(strtolower('EXECUTIVE OFFICER')) }}
|
||||||
</span>
|
</span>
|
||||||
@endif
|
</td>
|
||||||
</td>
|
@endif
|
||||||
<td>
|
@if ($permohonan->approval_dd != null)
|
||||||
@if ($permohonan->approval_dd != null)
|
<td style=" padding: 4px;">
|
||||||
{{ User::role('DD Appraisal')->first()->name ?? '' }}</br>
|
{{ User::role('DD Appraisal')->first()->name ?? '' }}</br>
|
||||||
<span style=" margin: 0; ">
|
<span>
|
||||||
{{ ucwords(strtolower('DEPUTY DIRECTOR')) }}
|
{{ ucwords(strtolower('DEPUTY DIRECTOR')) }}
|
||||||
</span>
|
</span>
|
||||||
@endif
|
</td>
|
||||||
</td>
|
@endif
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ $data = rtrim($data, ', ');
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<table style="width: 100%;">
|
<table style="width: 100%;">
|
||||||
<tr>
|
<tr>
|
||||||
<td style="width: 20%; padding: 2px; vertical-align: top;">Kepada</td>
|
<td style="width: 20%; padding: 2px; vertical-align: top;">Kepada</td>
|
||||||
@@ -131,7 +131,7 @@ $data = rtrim($data, ', ');
|
|||||||
</table>
|
</table>
|
||||||
<h2 style="text-transform: uppercase;">DOKUMEN TERLAMPIR</h2>
|
<h2 style="text-transform: uppercase;">DOKUMEN TERLAMPIR</h2>
|
||||||
<table style="width: 100%;">
|
<table style="width: 100%;">
|
||||||
|
|
||||||
@if (@isset($dokumen))
|
@if (@isset($dokumen))
|
||||||
@foreach ($dokumen->detail as $detail)
|
@foreach ($dokumen->detail as $detail)
|
||||||
<tr>
|
<tr>
|
||||||
@@ -458,9 +458,10 @@ $data = rtrim($data, ', ');
|
|||||||
@endisset
|
@endisset
|
||||||
<p>Demikian kami sampaikan, atas perhatiannya kami ucapkan terima kasih.</p>
|
<p>Demikian kami sampaikan, atas perhatiannya kami ucapkan terima kasih.</p>
|
||||||
|
|
||||||
<table style="width: 100%; text-align: center;">
|
<table style="width: 100%; border-collapse: collapse; text-align: center;">
|
||||||
@php
|
@php
|
||||||
use Modules\Usermanagement\Models\User;
|
use Modules\Usermanagement\Models\User;
|
||||||
|
|
||||||
$penilaiUser = User::where('id', $penilai->userPenilaiTeam->id)->first();
|
$penilaiUser = User::where('id', $penilai->userPenilaiTeam->id)->first();
|
||||||
$imagePathPenilai = storage_path('app/public/signatures/' . $penilaiUser->id . '/' . $penilaiUser->sign);
|
$imagePathPenilai = storage_path('app/public/signatures/' . $penilaiUser->id . '/' . $penilaiUser->sign);
|
||||||
|
|
||||||
@@ -509,11 +510,11 @@ $data = rtrim($data, ', ');
|
|||||||
</td>
|
</td>
|
||||||
@endif
|
@endif
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td></td>
|
<td style=" padding: 4px;">{{ $penilai->userPenilaiTeam->name ?? '' }}</br>
|
||||||
<td>{{ $penilai->userPenilaiTeam->name ?? '' }}
|
<span>
|
||||||
<br>{{ ucwords(strtolower('PENILAI')) }}
|
{{ ucwords(strtolower('PENILAI')) }}
|
||||||
|
</span>
|
||||||
</td>
|
</td>
|
||||||
@if ($permohonan->approval_so != null)
|
@if ($permohonan->approval_so != null)
|
||||||
<td style=" padding: 4px;">
|
<td style=" padding: 4px;">
|
||||||
@@ -524,6 +525,7 @@ $data = rtrim($data, ', ');
|
|||||||
|
|
||||||
</td>
|
</td>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if ($permohonan->approval_eo != null)
|
@if ($permohonan->approval_eo != null)
|
||||||
<td style=" padding: 4px;">
|
<td style=" padding: 4px;">
|
||||||
{{ User::role('EO Appraisal')->first()->name ?? '' }}</br>
|
{{ User::role('EO Appraisal')->first()->name ?? '' }}</br>
|
||||||
@@ -532,7 +534,6 @@ $data = rtrim($data, ', ');
|
|||||||
</span>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if ($permohonan->approval_dd != null)
|
@if ($permohonan->approval_dd != null)
|
||||||
<td style=" padding: 4px;">
|
<td style=" padding: 4px;">
|
||||||
{{ User::role('DD Appraisal')->first()->name ?? '' }}</br>
|
{{ User::role('DD Appraisal')->first()->name ?? '' }}</br>
|
||||||
|
|||||||
@@ -368,37 +368,91 @@
|
|||||||
<table style="width: 100%;">
|
<table style="width: 100%;">
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<table style="width: 100%; text-align: center;">
|
<table style="width: 100%; border-collapse: collapse; text-align: center;">
|
||||||
|
@php
|
||||||
|
use Modules\Usermanagement\Models\User;
|
||||||
|
$penilaiUser = User::where('id', $penilai->userPenilaiTeam->id)->first();
|
||||||
|
$imagePathPenilai = storage_path(
|
||||||
|
'app/public/signatures/' . $penilaiUser->id . '/' . $penilaiUser->sign,
|
||||||
|
);
|
||||||
|
|
||||||
|
$soUser = User::where('id', $senior_officer->id)->first();
|
||||||
|
$imagePathSo = storage_path('app/public/signatures/' . $soUser->id . '/' . $soUser->sign);
|
||||||
|
|
||||||
|
$imagePathEO = storage_path(
|
||||||
|
'app/public/signatures/' .
|
||||||
|
User::role('EO Appraisal')->first()->id .
|
||||||
|
'/' .
|
||||||
|
User::role('EO Appraisal')->first()->sign,
|
||||||
|
);
|
||||||
|
|
||||||
|
$imagePathDD = storage_path(
|
||||||
|
'app/public/signatures/' .
|
||||||
|
User::role('DD Appraisal')->first()->id .
|
||||||
|
'/' .
|
||||||
|
User::role('DD Appraisal')->first()->sign,
|
||||||
|
);
|
||||||
|
@endphp
|
||||||
<tr>
|
<tr>
|
||||||
<td style="height: 50px"></td>
|
<td style=" padding: 4px;height: 50px">
|
||||||
<td style="height: 50px"></td>
|
@if (file_exists($imagePathPenilai))
|
||||||
|
<img src="{{ $imagePathPenilai }}" alt="{{ $imagePathPenilai }}" width="80px">
|
||||||
|
@endif
|
||||||
|
</td>
|
||||||
|
@if ($permohonan->approval_so != null)
|
||||||
|
<td style=" padding: 4px;height: 50px">
|
||||||
|
@if (file_exists($imagePathSo))
|
||||||
|
<img src="{{ $imagePathSo }}" alt="{{ $imagePathSo }}" width="80px">
|
||||||
|
@endif
|
||||||
|
</td>
|
||||||
|
@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>
|
||||||
|
@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>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ $penilai->userPenilaiTeam->name ?? '' }}<br>
|
<td style=" padding: 4px;">{{ $penilai->userPenilaiTeam->name ?? '' }}</br>
|
||||||
{{ ucwords(strtolower('PENILAI')) }}
|
<span>
|
||||||
</td>
|
{{ ucwords(strtolower('PENILAI')) }}
|
||||||
<td>
|
</span>
|
||||||
@if ($permohonan->approval_so)
|
|
||||||
{{ $senior_officer->name ?? '' }}<br>
|
|
||||||
{{ ucwords(strtolower('SENIOR OFFICER')) }}
|
|
||||||
@endif
|
|
||||||
</td>
|
|
||||||
@php
|
|
||||||
$eoUser = \Modules\Usermanagement\Models\User::role('EO Appraisal')->first();
|
|
||||||
$ddUser = \Modules\Usermanagement\Models\User::role('DD Appraisal')->first();
|
|
||||||
@endphp
|
|
||||||
<td>
|
|
||||||
@if ($permohonan->approval_eo != null)
|
|
||||||
{{ $eoUser->name ?? '' }}<br>
|
|
||||||
{{ ucwords(strtolower('EXECUTIVE OFFICER')) }}
|
|
||||||
@endif
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
@if ($permohonan->approval_eo != null)
|
|
||||||
{{ $ddUser->name ?? '' }}<br>
|
|
||||||
{{ ucwords(strtolower('DEPUTY DIRECTOR')) }}
|
|
||||||
@endif
|
|
||||||
</td>
|
</td>
|
||||||
|
@if ($permohonan->approval_so != null)
|
||||||
|
<td style=" padding: 4px;">
|
||||||
|
{{ $senior_officer->name ?? '' }}</br>
|
||||||
|
<span>
|
||||||
|
{{ ucwords(strtolower('SENIOR OFFICER')) }}
|
||||||
|
</span>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
@endif
|
||||||
|
|
||||||
|
@if ($permohonan->approval_eo != null)
|
||||||
|
<td style=" padding: 4px;">
|
||||||
|
{{ User::role('EO Appraisal')->first()->name ?? '' }}</br>
|
||||||
|
<span>
|
||||||
|
{{ ucwords(strtolower('EXECUTIVE OFFICER')) }}
|
||||||
|
</span>
|
||||||
|
</td>
|
||||||
|
@endif
|
||||||
|
@if ($permohonan->approval_dd != null)
|
||||||
|
<td style=" padding: 4px;">
|
||||||
|
{{ User::role('DD Appraisal')->first()->name ?? '' }}</br>
|
||||||
|
<span>
|
||||||
|
{{ ucwords(strtolower('DEPUTY DIRECTOR')) }}
|
||||||
|
</span>
|
||||||
|
</td>
|
||||||
|
@endif
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
Reference in New Issue
Block a user