|
@@ -1,43 +1,48 @@
|
|
|
<?php
|
|
|
- $displayData = [
|
|
|
- 'icd_1' => [
|
|
|
- 'title' => 'ICD 1',
|
|
|
- 'reason' => $record->rm_reason_icd1,
|
|
|
- 'description' => $record->rm_reason_icd1description
|
|
|
- ],
|
|
|
- 'icd_2' => [
|
|
|
- 'title' => 'ICD 2',
|
|
|
- 'reason' => $record->rm_reason_icd2,
|
|
|
- 'description' => $record->rm_reason_icd2description
|
|
|
- ],
|
|
|
- 'icd_3' => [
|
|
|
- 'title' => 'ICD 3',
|
|
|
- 'reason' => $record->rm_reason_icd3,
|
|
|
- 'description' => $record->rm_reason_icd3description
|
|
|
- ],
|
|
|
- 'icd_4' => [
|
|
|
- 'title' => 'ICD 4',
|
|
|
- 'reason' => $record->rm_reason_icd4,
|
|
|
- 'description' => $record->rm_reason_icd4description
|
|
|
- ],
|
|
|
- ];
|
|
|
+$displayData = [
|
|
|
+ 'icd_1' => [
|
|
|
+ 'title' => 'ICD 1',
|
|
|
+ 'reason' => $record->rm_reason_icd1,
|
|
|
+ 'description' => $record->rm_reason_icd1description
|
|
|
+ ],
|
|
|
+ 'icd_2' => [
|
|
|
+ 'title' => 'ICD 2',
|
|
|
+ 'reason' => $record->rm_reason_icd2,
|
|
|
+ 'description' => $record->rm_reason_icd2description
|
|
|
+ ],
|
|
|
+ 'icd_3' => [
|
|
|
+ 'title' => 'ICD 3',
|
|
|
+ 'reason' => $record->rm_reason_icd3,
|
|
|
+ 'description' => $record->rm_reason_icd3description
|
|
|
+ ],
|
|
|
+ 'icd_4' => [
|
|
|
+ 'title' => 'ICD 4',
|
|
|
+ 'reason' => $record->rm_reason_icd4,
|
|
|
+ 'description' => $record->rm_reason_icd4description
|
|
|
+ ],
|
|
|
+];
|
|
|
?>
|
|
|
-<table class="table table-sm table-striped table-bordered mb-0">
|
|
|
- <tbody>
|
|
|
+<div>
|
|
|
+ <div class="d-flex flex-wrap">
|
|
|
+ <?php $emptyICDs = true; ?>
|
|
|
@foreach($displayData as $rmKey=>$rmData)
|
|
|
- <tr>
|
|
|
- <td class="text-nowrap">{{ $rmData['title'] }}</td>
|
|
|
- <td>
|
|
|
- <div class="d-flex">
|
|
|
- <span class="font-weight-bold text-sm mr-2" style="min-width: 60px;">{{ $rmData['reason'] ? $rmData['reason']. ':':'' }}</span>
|
|
|
- <small class="text-muted text-sm">{{ $rmData['description'] }}</small>
|
|
|
- </div>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
+ <?php
|
|
|
+ $emptyICD = true;
|
|
|
+ if (!empty($rmData['reason']) || !empty($rmData['description'])) {
|
|
|
+ $emptyICDs = false;
|
|
|
+ $emptyICD = false;
|
|
|
+ }
|
|
|
+ ?>
|
|
|
+ @if(!$emptyICD)
|
|
|
+ <span class="mb-1 mr-2"><i class="fas fa-star text-warning"></i> {{$rmData['reason']}} @if(!empty($rmData['description']))({{ $rmData['description'] }})@endif</span>
|
|
|
+ @endif
|
|
|
@endforeach
|
|
|
- <tr>
|
|
|
- <td class="text-nowrap">Memo</td>
|
|
|
- <td class="text-muted text-sm">{{ $record->rm_reason_memo }}</td>
|
|
|
- </tr>
|
|
|
- </tbody>
|
|
|
-</table>
|
|
|
+ @if($emptyICDs)
|
|
|
+ <small class="text-dark">-</small>
|
|
|
+ @endif
|
|
|
+ </div>
|
|
|
+ <div class="d-flex">
|
|
|
+ <span class="mr-2"><b>Memo:</b></span>
|
|
|
+ <small class="text-muted">{{ $record->rm_reason_memo }}</small>
|
|
|
+ </div>
|
|
|
+</div>
|