Update customer service

This commit is contained in:
2023-12-19 08:56:18 +07:00
parent e76c480ce9
commit 40371bd53a
42 changed files with 1027 additions and 2328 deletions

View File

@@ -123,8 +123,8 @@
<tr>
<td>
<div class="text-sm text-gray">Date of Admission</div>
@if (isset($claimRequest))
<div class="text-md">{{ !empty($claimRequest->submission_date) ? \Carbon\Carbon::parse($claimRequest->submission_date)->format('d/m/Y') : now()->format('d/m/Y') }}</div>
@if (isset($requestLog))
<div class="text-md">{{ !empty($requestLog->submission_date) ? \Carbon\Carbon::parse($requestLog->submission_date)->format('d/m/Y') : now()->format('d/m/Y') }}</div>
@else
<div class="text-md">{{ $dateOfAdmission->format('d/m/Y') }}</div>
@endif
@@ -140,7 +140,7 @@
<table id="benefit-table">
<tr>
<th class="text-lg" style="font-weight: 600">Detail Benefit</th>
<th class="text-lg" style="font-weight: 600">Limit</th>
<!-- <th class="text-lg" style="font-weight: 600">Limit</th> -->
</tr>
@@ -148,18 +148,34 @@
<td class="text-lg">Medical Check Up</td>
<td class="text-lg">As Charged</td>
</tr> --}}
@if ($member->currentPlan)
@foreach ($member->currentPlan->corporateBenefits as $corporateBenefit)
<tr>
<td>{{ @$corporateBenefit->benefit->description ?? '' }}</td>
</tr>
@endforeach
@endif
</table>
</div>
@foreach ($member->currentPlan->corporateBenefits as $corporateBenefit)
<tr>
<td>{{ @$corporateBenefit->benefit->description ?? '' }}</td>
@if($corporateBenefit->limit_amount == 999999999)
<td style="align-right">As Charged</td>
@else
<td style="align-right">IDR {{ number_format($corporateBenefit->limit_amount, 0, ',', '.') ?? '' }}</td>
@endif
</tr>
@endforeach
<div class="benefit-table-wrapper" style="margin-top: 20px; width: 100%;">
<table id="benefit-table">
<tr>
<th class="text-lg" style="font-weight: 600">Term on Condition</th>
<!-- <th class="text-lg" style="font-weight: 600">Limit</th> -->
</tr>
@if ($member->currentPlan)
@foreach ($member->currentPlan->corporateBenefits as $corporateBenefit)
<tr>
<td>{{ @$corporateBenefit->benefit->description ?? '' }}</td>
</tr>
@endforeach
@endif
</table>
</div>