diff --git a/resources/views/penilai/components/print-memo.blade.php b/resources/views/penilai/components/print-memo.blade.php
index 9a1e7cd..18cc547 100644
--- a/resources/views/penilai/components/print-memo.blade.php
+++ b/resources/views/penilai/components/print-memo.blade.php
@@ -193,94 +193,7 @@
Demikian Kami Sampaikan, atas perhatiannya kami ucapkan terimakasih |
-
- @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
-
-
- @if (file_exists($imagePathPenilai))
-
- @endif
- |
- @if ($permohonan->approval_so != null)
-
- @if (file_exists($imagePathSo))
-
- @endif
- |
- @endif
- @if ($permohonan->approval_eo != null)
-
- @if (file_exists($imagePathEO))
-
- @endif
- |
- @endif
- @if ($permohonan->approval_dd != null)
-
- @if (file_exists($imagePathDD))
-
- @endif
- |
- @endif
-
-
- | {{ $penilai->userPenilaiTeam->name ?? '' }}
-
- {{ ucwords(strtolower('PENILAI')) }}
-
- |
- @if ($permohonan->approval_so != null)
-
- {{ $senior_officer->name ?? '' }}
-
- {{ ucwords(strtolower('SENIOR OFFICER')) }}
-
-
- |
- @endif
-
- @if ($permohonan->approval_eo != null)
-
- {{ User::role('EO Appraisal')->first()->name ?? '' }}
-
- {{ ucwords(strtolower('EXECUTIVE OFFICER')) }}
-
- |
- @endif
- @if ($permohonan->approval_dd != null)
-
- {{ User::role('DD Appraisal')->first()->name ?? '' }}
-
- {{ ucwords(strtolower('DEPUTY DIRECTOR')) }}
-
- |
- @endif
-
-
+ @include('lpj::penilai.components.signature-approval')
diff --git a/resources/views/penilai/components/print-out-call-report.blade.php b/resources/views/penilai/components/print-out-call-report.blade.php
index 00303af..82a669a 100644
--- a/resources/views/penilai/components/print-out-call-report.blade.php
+++ b/resources/views/penilai/components/print-out-call-report.blade.php
@@ -229,93 +229,7 @@
Demikian Kami Sampaikan, atas perhatiannya kami ucapkan terimakasih |
-
- @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
-
-
- @if (file_exists($imagePathPenilai))
-
- @endif
- |
- @if ($permohonan->approval_so != null)
-
- @if (file_exists($imagePathSo))
-
- @endif
- |
- @endif
- @if ($permohonan->approval_eo != null)
-
- @if (file_exists($imagePathEO))
-
- @endif
- |
- @endif
- @if ($permohonan->approval_dd != null)
-
- @if (file_exists($imagePathDD))
-
- @endif
- |
- @endif
-
-
- | {{ $penilai->userPenilaiTeam->name ?? '' }}
-
- {{ ucwords(strtolower('PENILAI')) }}
-
- |
- @if ($permohonan->approval_so != null)
-
- {{ $senior_officer->name ?? '' }}
-
- {{ ucwords(strtolower('SENIOR OFFICER')) }}
-
-
- |
- @endif
-
- @if ($permohonan->approval_eo != null)
-
- {{ User::role('EO Appraisal')->first()->name ?? '' }}
-
- {{ ucwords(strtolower('EXECUTIVE OFFICER')) }}
-
- |
- @endif
- @if ($permohonan->approval_dd != null)
-
- {{ User::role('DD Appraisal')->first()->name ?? '' }}
-
- {{ ucwords(strtolower('DEPUTY DIRECTOR')) }}
-
- |
- @endif
-
-
+ @include('lpj::penilai.components.signature-approval')
diff --git a/resources/views/penilai/components/print-out-rap.blade.php b/resources/views/penilai/components/print-out-rap.blade.php
index 32e7432..4647d60 100644
--- a/resources/views/penilai/components/print-out-rap.blade.php
+++ b/resources/views/penilai/components/print-out-rap.blade.php
@@ -412,91 +412,6 @@
@endisset
Demikian kami sampaikan, atas perhatiannya kami ucapkan terima kasih.
-
- @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
-
-
- @if (file_exists($imagePathPenilai))
-
- @endif
- |
- @if ($permohonan->approval_so != null)
-
- @if (file_exists($imagePathSo))
-
- @endif
- |
- @endif
- @if ($permohonan->approval_eo != null)
-
- @if (file_exists($imagePathEO))
-
- @endif
- |
- @endif
- @if ($permohonan->approval_dd != null)
-
- @if (file_exists($imagePathDD))
-
- @endif
- |
- @endif
-
-
- | {{ $penilai->userPenilaiTeam->name ?? '' }}
-
- {{ ucwords(strtolower('PENILAI')) }}
-
- |
- @if ($permohonan->approval_so != null)
-
- {{ $senior_officer->name ?? '' }}
-
- {{ ucwords(strtolower('SENIOR OFFICER')) }}
-
-
- |
- @endif
-
- @if ($permohonan->approval_eo != null)
-
- {{ User::role('EO Appraisal')->first()->name ?? '' }}
-
- {{ ucwords(strtolower('EXECUTIVE OFFICER')) }}
-
- |
- @endif
- @if ($permohonan->approval_dd != null)
-
- {{ User::role('DD Appraisal')->first()->name ?? '' }}
-
- {{ ucwords(strtolower('DEPUTY DIRECTOR')) }}
-
- |
- @endif
-
-
+ @include('lpj::penilai.components.signature-approval')
@include('lpj::penilai.components.footer')
diff --git a/resources/views/penilai/components/print-out-standar.blade.php b/resources/views/penilai/components/print-out-standar.blade.php
index 3c35cb3..84f4481 100644
--- a/resources/views/penilai/components/print-out-standar.blade.php
+++ b/resources/views/penilai/components/print-out-standar.blade.php
@@ -374,94 +374,7 @@
-
- @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
-
-
- @if (file_exists($imagePathPenilai))
-
- @endif
- |
- @if ($permohonan->approval_so != null)
-
- @if (file_exists($imagePathSo))
-
- @endif
- |
- @endif
- @if ($permohonan->approval_eo != null)
-
- @if (file_exists($imagePathEO))
-
- @endif
- |
- @endif
- @if ($permohonan->approval_dd != null)
-
- @if (file_exists($imagePathDD))
-
- @endif
- |
- @endif
-
-
- | {{ $penilai->userPenilaiTeam->name ?? '' }}
-
- {{ ucwords(strtolower('PENILAI')) }}
-
- |
- @if ($permohonan->approval_so != null)
-
- {{ $senior_officer->name ?? '' }}
-
- {{ ucwords(strtolower('SENIOR OFFICER')) }}
-
-
- |
- @endif
-
- @if ($permohonan->approval_eo != null)
-
- {{ User::role('EO Appraisal')->first()->name ?? '' }}
-
- {{ ucwords(strtolower('EXECUTIVE OFFICER')) }}
-
- |
- @endif
- @if ($permohonan->approval_dd != null)
-
- {{ User::role('DD Appraisal')->first()->name ?? '' }}
-
- {{ ucwords(strtolower('DEPUTY DIRECTOR')) }}
-
- |
- @endif
-
-
+ @include('lpj::penilai.components.signature-approval')
diff --git a/resources/views/penilai/components/signature-approval.blade.php b/resources/views/penilai/components/signature-approval.blade.php
new file mode 100644
index 0000000..f71d05c
--- /dev/null
+++ b/resources/views/penilai/components/signature-approval.blade.php
@@ -0,0 +1,105 @@
+
+ @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
+
+
+ @if (file_exists($imagePathPenilai))
+
+ @endif
+ |
+ @if ($permohonan->approval_so != null)
+
+ @if (file_exists($imagePathSo))
+
+ @endif
+ |
+ @endif
+ @if ($permohonan->approval_eo != null)
+
+ @if (file_exists($imagePathEO))
+
+ @endif
+ |
+ @endif
+ @if ($permohonan->approval_dd != null)
+
+ @if (file_exists($imagePathDD))
+
+ @endif
+ |
+ @endif
+
+
+ | {{ $penilai->userPenilaiTeam->name ?? '' }}
+
+ {{ ucwords(strtolower('PENILAI')) }}
+
+
+
+ {{ isset($penilai->updated_at) ? formatTanggalIndonesia($penilai->updated_at) : '' }}
+
+ |
+ @if ($permohonan->approval_so != null)
+
+ {{ $senior_officer->name ?? '' }}
+
+ {{ ucwords(strtolower('SENIOR OFFICER')) }}
+
+
+
+ {{ isset($permohonan->approval_so_at) ? formatTanggalIndonesia($permohonan->approval_so_at) : '' }}
+
+ |
+ @endif
+
+ @if ($permohonan->approval_eo != null)
+
+ {{ User::role('EO Appraisal')->first()->name ?? '' }}
+
+ {{ ucwords(strtolower('EXECUTIVE OFFICER')) }}
+
+
+
+ {{ isset($permohonan->approval_eo_at) ? formatTanggalIndonesia($permohonan->approval_eo_at) : '' }}
+
+ |
+ @endif
+ @if ($permohonan->approval_dd != null)
+
+ {{ User::role('DD Appraisal')->first()->name ?? '' }}
+
+ {{ ucwords(strtolower('DEPUTY DIRECTOR')) }}
+
+
+
+ {{
+ isset($permohonan->approval_dd_at) ?
+ formatTanggalIndonesia($permohonan->approval_dd_at) : '' }}
+
+ |
+ @endif
+
+