Update TTD

This commit is contained in:
ivan-sim
2024-01-15 13:38:00 +07:00
parent 74b109ee58
commit 7f031e3a48
3 changed files with 40 additions and 6 deletions

View File

@@ -533,7 +533,14 @@ class RequestLogController extends Controller
->where('files.fileable_type', '=', 'App\Models\Signature')
->where('signatures.type', '=', 2)
->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();
$data['signatureAd'] = $signatureAd;
@@ -705,7 +712,14 @@ class RequestLogController extends Controller
->where('files.fileable_type', '=', 'App\Models\Signature')
->where('signatures.type', '=', 2)
->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();
$data['signatureAd'] = $signatureAd;

View File

@@ -304,8 +304,18 @@
@endphp
</div>
<div class="corner-text-<?php echo now()->timestamp; ?> bottom-right-ttd-<?php echo now()->timestamp; ?> ">
(.......................................)<br>
<b>Customer Service Team</b>
@php
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 class="corner-text-<?php echo now()->timestamp; ?> bottom-left1-ttd-<?php echo now()->timestamp; ?> ">
(.......................................)

View File

@@ -470,8 +470,18 @@
@endphp
</div>
<div class="corner-text-<?php echo now()->timestamp; ?> bottom-right-ttd-<?php echo now()->timestamp; ?> ">
(.......................................)<br>
<b>Customer Service Team</b>
@php
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 class="corner-text-<?php echo now()->timestamp; ?> bottom-right1-ttd-<?php echo now()->timestamp; ?> ">
<b>{{ $dataMember->name }}</b>