Date: {{ \Carbon\Carbon::now()->format('M d, Y') }}
{{ trim(($customer->customerFirstName ?? '') . ' ' . ($customer->customerLastName ?? '')) }}
@php $addressParts = []; if (!empty($customer->customerAddresLine)) { $addressParts[] = ucwords($customer->customerAddresLine); } if (!empty($customer->customerCity)) { $addressParts[] = ucwords($customer->customerCity); } if (!empty($customer->customerProvince)) { $addressParts[] = strtoupper($customer->customerProvince); } if (!empty($customer->customerPostalCode)) { $addressParts[] = strtoupper($customer->customerPostalCode); } $fullAddress = implode(', ', $addressParts); @endphp @if($fullAddress){{ $fullAddress }}
@endif|
@if(!empty($firstPolicy['policyNumber']))
Policy Number: {{ $firstPolicy['policyNumber'] }} @endif @if(!empty($firstPolicy['policyInsuranceCompanyId']))Company: {{ $firstPolicy['policyInsuranceCompanyName'] }} @endif @if(!empty($firstPolicy['policyIssueDate']))Issue: {{ \Carbon\Carbon::parse($firstPolicy['policyIssueDate'])->format('M d, Y') }} @endif
@if(!empty($firstPolicy['policyPayor']))
Payor Name: {{ $firstPolicy['policyPayor'] }} @endif @if(!empty($firstPolicy['policyDrawDay']))Draw Day: {{ $firstPolicy['policyDrawDay'] }} @endif |
||
|---|---|---|
| Details | Coverage Amount | Premium |
|
@if(!empty($policy['policyProductId']))
{{ strtoupper($policy['policyProductName']) }}
@endif
@php
$insuredNames = collect($policy['policyInsuredDetailsName'] ?? [])
->map(fn($i) => is_array($i) ? ($i['name'] ?? '') : $i)
->filter(fn($name) => !empty($name))
->values();
@endphp
@if(!empty($policy['policyInsuredDetailsName']))
Insured: @foreach($policy['policyInsuredDetailsName'] as $i => $insured) {{ $insured['name'] }}@if($i < count($policy['policyInsuredDetailsName']) - 1),@endif @endforeach @endif @if(!empty($policy['policyIsLifeTimeExpiryDate']) || !empty($policy['policyExpiryDate']))Expires: @if($policy['policyIsLifeTimeExpiryDate']) Death @else {{ \Carbon\Carbon::parse($policy['policyExpiryDate'])->format('M d, Y') }} @endif @endif @if(!empty($policy['policyPrimaryBenificariesNew']))Beneficiaries: @foreach($policy['policyPrimaryBenificariesNew'] as $i => $benef) {{ $benef['client_name'] ?? '' }} @if(!empty($benef['payoutPercentage']))- {{ $benef['payoutPercentage'] }}%@endif @if($i < count($policy['policyPrimaryBenificariesNew']) - 1),@endif @endforeach @endif @if(!empty($policy['policyRemark']))Remarks: {!! $policy['policyRemark'] !!}
@endif
|
{{ number_format((float) ($policy['policyCoverageAmount'] ?? 0), 2) }} | {{ number_format((float) ($policy['policyPremiumDetails'] ?? 0), 2) }} |
| No data available | ||
| Total Premium | {{ number_format((float) ($firstPolicy['policyPremium'] ?? 0), 2) }} | |