Merge remote-tracking branch 'origin/staging' into origin/production
This commit is contained in:
@@ -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
|
||||||
@@ -528,7 +533,14 @@ class RequestLogController extends Controller
|
|||||||
->where('files.fileable_type', '=', 'App\Models\Signature')
|
->where('files.fileable_type', '=', 'App\Models\Signature')
|
||||||
->where('signatures.type', '=', 2)
|
->where('signatures.type', '=', 2)
|
||||||
->where('signatures.user_id', '=', $dataRequestLog->approved_by)
|
->where('signatures.user_id', '=', $dataRequestLog->approved_by)
|
||||||
->select('files.path')
|
->select(
|
||||||
|
'files.path',
|
||||||
|
DB::raw('
|
||||||
|
(Select persons.name FROM users
|
||||||
|
LEFT JOIN persons ON users.person_id = persons.id
|
||||||
|
WHERE users.id = "'.$dataRequestLog->approved_by.'" LIMIT 1) AS name_approve
|
||||||
|
')
|
||||||
|
)
|
||||||
->first();
|
->first();
|
||||||
|
|
||||||
$data['signatureAd'] = $signatureAd;
|
$data['signatureAd'] = $signatureAd;
|
||||||
@@ -596,6 +608,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
|
||||||
@@ -695,7 +712,14 @@ class RequestLogController extends Controller
|
|||||||
->where('files.fileable_type', '=', 'App\Models\Signature')
|
->where('files.fileable_type', '=', 'App\Models\Signature')
|
||||||
->where('signatures.type', '=', 2)
|
->where('signatures.type', '=', 2)
|
||||||
->where('signatures.user_id', '=', $dataRequestLog->approved_by)
|
->where('signatures.user_id', '=', $dataRequestLog->approved_by)
|
||||||
->select('files.path')
|
->select(
|
||||||
|
'files.path',
|
||||||
|
DB::raw('
|
||||||
|
(Select persons.name FROM users
|
||||||
|
LEFT JOIN persons ON users.person_id = persons.id
|
||||||
|
WHERE users.id = "'.$dataRequestLog->approved_by.'" LIMIT 1) AS name_approve
|
||||||
|
')
|
||||||
|
)
|
||||||
->first();
|
->first();
|
||||||
|
|
||||||
$data['signatureAd'] = $signatureAd;
|
$data['signatureAd'] = $signatureAd;
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 51 KiB |
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
@@ -304,8 +304,18 @@
|
|||||||
@endphp
|
@endphp
|
||||||
</div>
|
</div>
|
||||||
<div class="corner-text-<?php echo now()->timestamp; ?> bottom-right-ttd-<?php echo now()->timestamp; ?> ">
|
<div class="corner-text-<?php echo now()->timestamp; ?> bottom-right-ttd-<?php echo now()->timestamp; ?> ">
|
||||||
(.......................................)<br>
|
@php
|
||||||
<b>Customer Service Team</b>
|
if (!empty($signatureAd->name_approve)) {
|
||||||
|
@endphp
|
||||||
|
<u><b>{{ $signatureAd->name_approve }}</b></u>
|
||||||
|
@php
|
||||||
|
} else {
|
||||||
|
@endphp
|
||||||
|
(.......................................)
|
||||||
|
@php
|
||||||
|
}
|
||||||
|
@endphp
|
||||||
|
<br><b>Customer Service Team</b>
|
||||||
</div>
|
</div>
|
||||||
<div class="corner-text-<?php echo now()->timestamp; ?> bottom-left1-ttd-<?php echo now()->timestamp; ?> ">
|
<div class="corner-text-<?php echo now()->timestamp; ?> bottom-left1-ttd-<?php echo now()->timestamp; ?> ">
|
||||||
(.......................................)
|
(.......................................)
|
||||||
@@ -315,19 +325,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 +345,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
|
||||||
|
|||||||
@@ -444,7 +444,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 . '">';
|
||||||
}
|
}
|
||||||
@@ -452,7 +452,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
|
||||||
@@ -477,27 +477,37 @@
|
|||||||
@endphp
|
@endphp
|
||||||
</div>
|
</div>
|
||||||
<div class="corner-text-<?php echo now()->timestamp; ?> bottom-right-ttd-<?php echo now()->timestamp; ?> ">
|
<div class="corner-text-<?php echo now()->timestamp; ?> bottom-right-ttd-<?php echo now()->timestamp; ?> ">
|
||||||
(.......................................)<br>
|
@php
|
||||||
<b>Customer Service Team</b>
|
if (!empty($signatureAd->name_approve)) {
|
||||||
|
@endphp
|
||||||
|
<u><b>{{ $signatureAd->name_approve }}</b></u>
|
||||||
|
@php
|
||||||
|
} else {
|
||||||
|
@endphp
|
||||||
|
(.......................................)
|
||||||
|
@php
|
||||||
|
}
|
||||||
|
@endphp
|
||||||
|
<br><b>Customer Service Team</b>
|
||||||
</div>
|
</div>
|
||||||
<div class="corner-text-<?php echo now()->timestamp; ?> bottom-right1-ttd-<?php echo now()->timestamp; ?> ">
|
<div class="corner-text-<?php echo now()->timestamp; ?> bottom-right1-ttd-<?php echo now()->timestamp; ?> ">
|
||||||
<b>{{ $dataMember->name }}</b>
|
<b>{{ $dataMember->name }}</b>
|
||||||
</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
|
||||||
@@ -505,7 +515,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
|
||||||
|
|||||||
Reference in New Issue
Block a user