Update Final LOG
This commit is contained in:
@@ -732,6 +732,23 @@ class RequestLogController extends Controller
|
||||
|
||||
$data['signatureAd'] = $signatureAd;
|
||||
|
||||
$dataDiagnosis = [];
|
||||
if($dataRequestLog->diagnosis)
|
||||
{
|
||||
$dataDiagnosiCodes = explode(',', $dataRequestLog->diagnosis);
|
||||
foreach ($dataDiagnosiCodes as $diagnosisCode)
|
||||
{
|
||||
$diagnoisis = DB::table('icd')
|
||||
->where('icd.code', '=', $diagnosisCode)
|
||||
->select('icd.name')
|
||||
->first();
|
||||
array_push($dataDiagnosis, $diagnoisis);
|
||||
}
|
||||
}
|
||||
|
||||
$data['dataDiagnosis'] = $dataDiagnosis;
|
||||
|
||||
|
||||
$pdf = new Dompdf();
|
||||
|
||||
$options = new Options();
|
||||
|
||||
@@ -424,6 +424,36 @@
|
||||
</tfoot>
|
||||
|
||||
</table>
|
||||
<table class="claim-info-<?php echo now()->timestamp; ?>">
|
||||
<thead>
|
||||
<tr style="background-color: #F4F6F8;">
|
||||
<td colspan="5" style="width: 5%; text-align: left;"><b>Diagnosis</b></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@php
|
||||
if(count($dataDiagnosis))
|
||||
{
|
||||
foreach ($dataDiagnosis as $valDiagnosis)
|
||||
{
|
||||
@endphp
|
||||
<tr>
|
||||
<td colspan="5" style="width: 5%; text-align: left;">{{ !empty($valDiagnosis->name) ? ' - '.$valDiagnosis->name : '-'}}</td>
|
||||
</tr>
|
||||
@php
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@endphp
|
||||
<tr>
|
||||
<td colspan="5" style="width: 5%; text-align: left;">-</td>
|
||||
</tr>
|
||||
@php
|
||||
}
|
||||
@endphp
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="claim-info-<?php echo now()->timestamp; ?>">
|
||||
<thead>
|
||||
<tr style="background-color: #F4F6F8;">
|
||||
@@ -432,7 +462,7 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td colspan="5" style="width: 5%; text-align: left;">{{ !empty($dataRequestLog->catatan) ? $dataRequestLog->catatan : ''}}</td>
|
||||
<td colspan="5" style="width: 5%; text-align: left;">{{ !empty($dataRequestLog->catatan) ? $dataRequestLog->catatan : '-'}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user