Merge branch 'feature/report-primayan'
This commit is contained in:
@@ -625,16 +625,20 @@ class RequestLogController extends Controller
|
||||
$ttdImage = null;
|
||||
|
||||
if ($isVale) {
|
||||
if ($dataRequestLog->submission_date <= '2025-05-12') {
|
||||
$ttdNama = 'Dr. Hery Hermas, M.Kes';
|
||||
$ttdImage = public_path('images/ttd_dr_vale.png');
|
||||
if (trim($data['penjamin']) === 'LinkSehat') {
|
||||
$ttdNama = 'Fariz Ariyadi';
|
||||
$ttdJabatan = 'Chief Executive Officer';
|
||||
$ttdImage = public_path('images/ttd_fariz.png');
|
||||
} else {
|
||||
$ttdNama = 'dr. Irmawati Baso, S. Ked., MM';
|
||||
$ttdImage = public_path('images/ttd_dr_irma_2.png');
|
||||
if ($dataRequestLog->submission_date <= '2025-05-12') {
|
||||
$ttdNama = 'Dr. Hery Hermas, M.Kes';
|
||||
$ttdImage = public_path('images/ttd_dr_vale.png');
|
||||
} else {
|
||||
$ttdNama = 'dr. Irmawati Baso, S. Ked., MM';
|
||||
$ttdImage = public_path('images/ttd_dr_irma_2.png');
|
||||
}
|
||||
$ttdJabatan = 'Offsite Medical Treatment';
|
||||
}
|
||||
|
||||
$ttdJabatan = 'Offsite Medical Treatment';
|
||||
|
||||
} else {
|
||||
$ttdNama = 'Fariz Ariyadi';
|
||||
$ttdJabatan = 'Chief Executive Officer';
|
||||
@@ -883,16 +887,20 @@ class RequestLogController extends Controller
|
||||
$ttdImage = null;
|
||||
|
||||
if ($isVale) {
|
||||
if ($dataRequestLog->submission_date <= '2025-05-12') {
|
||||
$ttdNama = 'Dr. Hery Hermas, M.Kes';
|
||||
$ttdImage = public_path('images/ttd_dr_vale.png');
|
||||
if (trim($data['penjamin']) === 'LinkSehat') {
|
||||
$ttdNama = 'Fariz Ariyadi';
|
||||
$ttdJabatan = 'Chief Executive Officer';
|
||||
$ttdImage = public_path('images/ttd_fariz.png');
|
||||
} else {
|
||||
$ttdNama = 'dr. Irmawati Baso, S. Ked., MM';
|
||||
$ttdImage = public_path('images/ttd_dr_irma_2.png');
|
||||
if ($dataRequestLog->submission_date <= '2025-05-12') {
|
||||
$ttdNama = 'Dr. Hery Hermas, M.Kes';
|
||||
$ttdImage = public_path('images/ttd_dr_vale.png');
|
||||
} else {
|
||||
$ttdNama = 'dr. Irmawati Baso, S. Ked., MM';
|
||||
$ttdImage = public_path('images/ttd_dr_irma_2.png');
|
||||
}
|
||||
$ttdJabatan = 'Offsite Medical Treatment';
|
||||
}
|
||||
|
||||
$ttdJabatan = 'Offsite Medical Treatment';
|
||||
|
||||
} else {
|
||||
$ttdNama = 'Fariz Ariyadi';
|
||||
$ttdJabatan = 'Chief Executive Officer';
|
||||
|
||||
@@ -437,31 +437,18 @@
|
||||
{{ $dataMember->nama_perusahaan }}
|
||||
</div>
|
||||
<div class="corner-text-<?php echo now()->timestamp; ?> bottom-left-ttd-2-<?php echo now()->timestamp; ?> ">
|
||||
<!-- @php
|
||||
if(!empty($signatureDr->path)) {
|
||||
$imgSrc = 'data:image/png;base64,' . base64_encode(file_get_contents(storage_path('app/public/' . $signatureDr->path)));
|
||||
@php
|
||||
if(!empty($ttdImage) && file_exists($ttdImage)) {
|
||||
$imgSrc = 'data:image/png;base64,' . base64_encode(file_get_contents($ttdImage));
|
||||
echo '<img style="width: 65px; height: 48px;" src="' . $imgSrc . '">';
|
||||
}
|
||||
@endphp -->
|
||||
@php
|
||||
if(!empty($dataMember->code_perusahaan) == 'VALEIND' && $dataRequestLog->submission_date <= '2025-05-12') {
|
||||
$imgSrc = 'data:image/png;base64,' . base64_encode(file_get_contents(public_path('images/ttd_dr_vale.png')));
|
||||
echo '<img style="width: 65px; height: 48px;" src="' . $imgSrc . '">';
|
||||
} else if(!empty($dataMember->code_perusahaan) == 'VALEIND'){
|
||||
$imgSrc = 'data:image/png;base64,' . base64_encode(file_get_contents(public_path('images/ttd_dr_irma_2.png')));
|
||||
echo '<img style="width: 65px; height: 48px;" src="' . $imgSrc . '">';
|
||||
}
|
||||
@endphp
|
||||
</div>
|
||||
<div class="corner-text-<?php echo now()->timestamp; ?> bottom-left-ttd-<?php echo now()->timestamp; ?> ">
|
||||
@php
|
||||
if ($dataMember->code_perusahaan == 'VALEIND' && $dataRequestLog->submission_date <= '2025-05-12') {
|
||||
if (!empty($ttdNama)) {
|
||||
@endphp
|
||||
<u><b>Dr. Hery Hermas, M.Kes</b></u>
|
||||
@php
|
||||
} elseif ($dataMember->code_perusahaan == 'VALEIND') {
|
||||
@endphp
|
||||
<u><b>dr. Irmawati Baso, S. Ked., MM</b></u>
|
||||
<u><b>{{ $ttdNama }}</b></u>
|
||||
@php
|
||||
} else {
|
||||
@endphp
|
||||
@@ -470,7 +457,7 @@
|
||||
}
|
||||
@endphp
|
||||
|
||||
<br><b>Offsite Medical Treatment</b>
|
||||
<br><b>{{ $ttdJabatan ?? 'Offsite Medical Treatment' }}</b>
|
||||
</div>
|
||||
<div class="corner-text-<?php echo now()->timestamp; ?> bottom-right-ttd-1-<?php echo now()->timestamp; ?> ">
|
||||
{{ \Carbon\Carbon::parse($request_logs->approved_at)->format('d M Y') }},<br>
|
||||
|
||||
Reference in New Issue
Block a user