update final log

This commit is contained in:
2025-05-13 08:36:41 +07:00
parent a3e0c72908
commit 84caa2265d
2 changed files with 24 additions and 9 deletions

17
resources/views/pdf/final_log_page_2.blade.php Normal file → Executable file
View File

@@ -270,22 +270,29 @@
echo '<img style="width: 65px; height: 48px;" src="' . $imgSrc . '">'; echo '<img style="width: 65px; height: 48px;" src="' . $imgSrc . '">';
} }
@endphp --> @endphp -->
@php @php
if(!empty($dataMember->code_perusahaan) == 'VALEIND') { 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'))); $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 . '">'; 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.png')));
echo '<img style="width: 65px; height: 48px;" src="' . $imgSrc . '">';
}
@endphp @endphp
</div> </div>
<div class="corner-text-<?php echo now()->timestamp; ?> bottom-left-ttd-<?php echo now()->timestamp; ?> "> <div class="corner-text-<?php echo now()->timestamp; ?> bottom-left-ttd-<?php echo now()->timestamp; ?> ">
@php @php
if (!empty($dataMember->code_perusahaan) == 'VALEIND') { if ($dataMember->code_perusahaan == 'VALEIND' && $dataRequestLog->submission_date >= '2025-05-12') {
@endphp @endphp
<u><b>Dr. Hery Hermas, M.Kes</b></u> <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>
@php @php
} else { } else {
@endphp @endphp
(.......................................) (.......................................)
@php @php
} }
@endphp @endphp

16
resources/views/pdf/req_log_page_1.blade.php Normal file → Executable file
View File

@@ -444,24 +444,32 @@
} }
@endphp --> @endphp -->
@php @php
if(!empty($dataMember->code_perusahaan) == 'VALEIND') { 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'))); $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 . '">'; 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.png')));
echo '<img style="width: 65px; height: 48px;" src="' . $imgSrc . '">';
}
@endphp @endphp
</div> </div>
<div class="corner-text-<?php echo now()->timestamp; ?> bottom-left-ttd-<?php echo now()->timestamp; ?> "> <div class="corner-text-<?php echo now()->timestamp; ?> bottom-left-ttd-<?php echo now()->timestamp; ?> ">
@php @php
if (!empty($dataMember->code_perusahaan) == 'VALEIND') { if ($dataMember->code_perusahaan == 'VALEIND' && $dataRequestLog->submission_date >= '2025-05-12') {
@endphp @endphp
<u><b>Dr. Hery Hermas, M.Kes</b></u> <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>
@php @php
} else { } else {
@endphp @endphp
(.......................................) (.......................................)
@php @php
} }
@endphp @endphp
<br><b>Offsite Medical Treatment</b> <br><b>Offsite Medical Treatment</b>
</div> </div>
<div class="corner-text-<?php echo now()->timestamp; ?> bottom-right-ttd-1-<?php echo now()->timestamp; ?> "> <div class="corner-text-<?php echo now()->timestamp; ?> bottom-right-ttd-1-<?php echo now()->timestamp; ?> ">