Update TTD

This commit is contained in:
ivan-sim
2024-01-15 12:58:55 +07:00
parent d5d5584ffa
commit 74b109ee58
4 changed files with 29 additions and 19 deletions

View File

@@ -448,6 +448,11 @@ class RequestLogController extends Controller
LEFT JOIN corporate_employees ON corporate_employees.corporate_id = corporates.id LEFT JOIN corporate_employees ON corporate_employees.corporate_id = corporates.id
WHERE corporate_employees.member_id = members.id LIMIT 1) AS id_perusahaan WHERE corporate_employees.member_id = members.id LIMIT 1) AS id_perusahaan
'), '),
DB::raw('
(Select corporates.code FROM corporates
LEFT JOIN corporate_employees ON corporate_employees.corporate_id = corporates.id
WHERE corporate_employees.member_id = members.id LIMIT 1) AS code_perusahaan
'),
DB::raw(' DB::raw('
(Select services.name FROM services (Select services.name FROM services
WHERE services.code = "'.$dataRequestLog->service_code.'" LIMIT 1) AS jenis_perwatan WHERE services.code = "'.$dataRequestLog->service_code.'" LIMIT 1) AS jenis_perwatan
@@ -596,6 +601,11 @@ class RequestLogController extends Controller
LEFT JOIN corporate_employees ON corporate_employees.corporate_id = corporates.id LEFT JOIN corporate_employees ON corporate_employees.corporate_id = corporates.id
WHERE corporate_employees.member_id = members.id LIMIT 1) AS id_perusahaan WHERE corporate_employees.member_id = members.id LIMIT 1) AS id_perusahaan
'), '),
DB::raw('
(Select corporates.code FROM corporates
LEFT JOIN corporate_employees ON corporate_employees.corporate_id = corporates.id
WHERE corporate_employees.member_id = members.id LIMIT 1) AS code_perusahaan
'),
DB::raw(' DB::raw('
(Select services.name FROM services (Select services.name FROM services
WHERE services.code = "'.$dataRequestLog->service_code.'" LIMIT 1) AS jenis_perwatan WHERE services.code = "'.$dataRequestLog->service_code.'" LIMIT 1) AS jenis_perwatan

View File

@@ -427,19 +427,19 @@
</table> </table>
<div class="corner-text-<?php echo now()->timestamp; ?> bottom-left-<?php echo now()->timestamp; ?>"> <div class="corner-text-<?php echo now()->timestamp; ?> bottom-left-<?php echo now()->timestamp; ?>">
@php @php
if (!empty($logoPerusahaan->code) == 'VALEIND') { if (!empty($dataMember->code_perusahaan) == 'VALEIND') {
@endphp @endphp
<b>Alarm Center Vale MKS (LinkSehat) Office</b><br> <b>Alarm Center Vale MKS (LinkSehat) Office</b><br>
<b>{{ !empty($logoPerusahaan->name) ? $logoPerusahaan->name : '' }}</b><br> <b>{{ !empty($dataMember->nama_perusahaan) ? $dataMember->nama_perusahaan : '' }}</b><br>
Lt. 1, Jalan Somba Opu 281, Ujung Pandang, Losari, <br> Kec. Makassar, Kota Makassar, Sulawesi Selatan 90113 Lt. 1, Jalan Somba Opu 281, Ujung Pandang, Losari, <br> Kec. Makassar, Kota Makassar, Sulawesi Selatan 90113
@php @php
} else if(!empty($logoPerusahaan->code) == 'PETROLAB') { } else if(!empty($dataMember->code_perusahaan) == 'PETROLAB') {
@endphp @endphp
<b>Alarm Center Vale MKS (LinkSehat) Office</b><br> <b>Alarm Center Vale MKS (LinkSehat) Office</b><br>
<b>{{ !empty($logoPerusahaan->name) ? $logoPerusahaan->name : '' }}</b><br> <b>{{ !empty($dataMember->nama_perusahaan) ? $dataMember->nama_perusahaan : '' }}</b><br>
Jalan Pisangan Lama 3 Nomor 28 Jatinegara, RT.9/RW.3, <br>Pisangan Tim., Kec. Pulo Gadung, Kota Jakarta Timur, Daerah Khusus Ibukota Jakarta 13230 Jalan Pisangan Lama 3 Nomor 28 Jatinegara, RT.9/RW.3, <br>Pisangan Tim., Kec. Pulo Gadung, Kota Jakarta Timur, Daerah Khusus Ibukota Jakarta 13230
@php @php
@@ -447,7 +447,7 @@
@endphp @endphp
<b>Alarm Center Vale MKS (LinkSehat) Office</b><br> <b>Alarm Center Vale MKS (LinkSehat) Office</b><br>
<b>{{ !empty($logoPerusahaan->name) ? $logoPerusahaan->name : '' }}</b><br> <b>{{ !empty($dataMember->nama_perusahaan) ? $dataMember->nama_perusahaan : '' }}</b><br>
@php @php

View File

@@ -271,7 +271,7 @@
} }
@endphp --> @endphp -->
@php @php
if(!empty($logoPerusahaan->code) == 'VALEIND') { if(!empty($dataMember->code_perusahaan) == 'VALEIND') {
$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 . '">';
} }
@@ -279,7 +279,7 @@
</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($logoPerusahaan->code) == 'VALEIND') { if (!empty($dataMember->code_perusahaan) == 'VALEIND') {
@endphp @endphp
<u><b>Dr. Hery Hermas, M.Kes</b></u> <u><b>Dr. Hery Hermas, M.Kes</b></u>
@php @php
@@ -315,19 +315,19 @@
</div> </div>
<div class="corner-text-<?php echo now()->timestamp; ?> bottom-left-<?php echo now()->timestamp; ?>"> <div class="corner-text-<?php echo now()->timestamp; ?> bottom-left-<?php echo now()->timestamp; ?>">
@php @php
if (!empty($logoPerusahaan->code) == 'VALEIND') { if (!empty($dataMember->code_perusahaan) == 'VALEIND') {
@endphp @endphp
<b>Alarm Center Vale MKS (LinkSehat) Office</b><br> <b>Alarm Center Vale MKS (LinkSehat) Office</b><br>
<b>{{ !empty($logoPerusahaan->name) ? $logoPerusahaan->name : '' }}</b><br> <b>{{ !empty($dataMember->name_perusahaan) ? $dataMember->name_perusahaan : '' }}</b><br>
Lt. 1, Jalan Somba Opu 281, Ujung Pandang, Losari, <br> Kec. Makassar, Kota Makassar, Sulawesi Selatan 90113 Lt. 1, Jalan Somba Opu 281, Ujung Pandang, Losari, <br> Kec. Makassar, Kota Makassar, Sulawesi Selatan 90113
@php @php
} else if(!empty($logoPerusahaan->code) == 'PETROLAB') { } else if(!empty($dataMember->code_perusahaan) == 'PETROLAB') {
@endphp @endphp
<b>Alarm Center Petrolab (LinkSehat) Office</b><br> <b>Alarm Center Petrolab (LinkSehat) Office</b><br>
<b>{{ !empty($logoPerusahaan->name) ? $logoPerusahaan->name : '' }}</b><br> <b>{{ !empty($dataMember->name_perusahaan) ? $dataMember->name_perusahaan : '' }}</b><br>
Jalan Pisangan Lama 3 Nomor 28 Jatinegara, RT.9/RW.3, <br>Pisangan Tim., Kec. Pulo Gadung, Kota Jakarta Timur, Daerah Khusus Ibukota Jakarta 13230 Jalan Pisangan Lama 3 Nomor 28 Jatinegara, RT.9/RW.3, <br>Pisangan Tim., Kec. Pulo Gadung, Kota Jakarta Timur, Daerah Khusus Ibukota Jakarta 13230
@php @php
@@ -335,7 +335,7 @@
@endphp @endphp
<b>Alarm Center (LinkSehat) Office</b><br> <b>Alarm Center (LinkSehat) Office</b><br>
<b>{{ !empty($logoPerusahaan->name) ? $logoPerusahaan->name : '' }}</b><br> <b>{{ !empty($dataMember->name_perusahaan) ? $dataMember->name_perusahaan : '' }}</b><br>
@php @php

View File

@@ -437,7 +437,7 @@
} }
@endphp --> @endphp -->
@php @php
if(!empty($logoPerusahaan->code) == 'VALEIND') { if(!empty($dataMember->code_perusahaan) == 'VALEIND') {
$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 . '">';
} }
@@ -445,7 +445,7 @@
</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($logoPerusahaan->code) == 'VALEIND') { if (!empty($dataMember->code_perusahaan) == 'VALEIND') {
@endphp @endphp
<u><b>Dr. Hery Hermas, M.Kes</b></u> <u><b>Dr. Hery Hermas, M.Kes</b></u>
@php @php
@@ -478,19 +478,19 @@
</div> </div>
<div class="corner-text-<?php echo now()->timestamp; ?> bottom-left-<?php echo now()->timestamp; ?>"> <div class="corner-text-<?php echo now()->timestamp; ?> bottom-left-<?php echo now()->timestamp; ?>">
@php @php
if (!empty($logoPerusahaan->code) == 'VALEIND') { if (!empty($dataMember->code_perusahaan) == 'VALEIND') {
@endphp @endphp
<b>Alarm Center Vale MKS (LinkSehat) Office</b><br> <b>Alarm Center Vale MKS (LinkSehat) Office</b><br>
<b>{{ !empty($logoPerusahaan->name) ? $logoPerusahaan->name : '' }}</b><br> <b>{{ !empty($dataMember->nama_perusahaan) ? $dataMember->nama_perusahaan : '' }}</b><br>
Lt. 1, Jalan Somba Opu 281, Ujung Pandang, Losari, <br> Kec. Makassar, Kota Makassar, Sulawesi Selatan 90113 Lt. 1, Jalan Somba Opu 281, Ujung Pandang, Losari, <br> Kec. Makassar, Kota Makassar, Sulawesi Selatan 90113
@php @php
} else if(!empty($logoPerusahaan->code) == 'PETROLAB') { } else if(!empty($dataMember->code_perusahaan) == 'PETROLAB') {
@endphp @endphp
<b>Alarm Center Petrolab (LinkSehat) Office</b><br> <b>Alarm Center Petrolab (LinkSehat) Office</b><br>
<b>{{ !empty($logoPerusahaan->name) ? $logoPerusahaan->name : ''}}</b><br> <b>{{ !empty($dataMember->nama_perusahaan) ? $dataMember->nama_perusahaan : ''}}</b><br>
Jalan Pisangan Lama 3 Nomor 28 Jatinegara, RT.9/RW.3, <br>Pisangan Tim., Kec. Pulo Gadung, Kota Jakarta Timur, Daerah Khusus Ibukota Jakarta 13230 Jalan Pisangan Lama 3 Nomor 28 Jatinegara, RT.9/RW.3, <br>Pisangan Tim., Kec. Pulo Gadung, Kota Jakarta Timur, Daerah Khusus Ibukota Jakarta 13230
@php @php
@@ -498,7 +498,7 @@
@endphp @endphp
<b>Alarm Center (LinkSehat) Office</b><br> <b>Alarm Center (LinkSehat) Office</b><br>
<b>{{ !empty($logoPerusahaan->name) ? $logoPerusahaan->name : '' }}</b><br> <b>{{ !empty($dataMember->nama_perusahaan) ? $dataMember->nama_perusahaan : '' }}</b><br>
@php @php