| MEMBER NAME |
{{ $value1['full_name'] }} |
BIRTH DATE |
{{ date('d-m-Y', strtotime($value1['dob']))}} |
{{ $value1['gender'] === 'Female' ? 'Female' : ($value1['gender'] === 'Male' ? 'Male' : 'Firm') }} |
{{--General Insurance --}}
@if(in_array("General Insurance", $response['report_type']))
@php $policyRowDisplayed = false; @endphp
@foreach ($response['generalInsuranceData'] as $innerKey => $gValue)
@if($gValue['client_id'] == $value1['id'])
@if(!$policyRowDisplayed)
@php $policy_sr_no = 1; @endphp
|
GENERAL INSURANCE POLICY
|
@php $policyRowDisplayed = true; @endphp
@endif
{{--
| GENERAL INSURANCE POLICY |
--}}
{{-- division_id=3 VEHICLE --}}
@if($policy_sr_no >1)
|
@endif
@if($gValue['division_id']== 3)
| POLICY SR. NO. |
{{ $policy_sr_no++ }} |
DIVISION |
{{ $gValue['division'] }} |
SEGMENT |
{{ $gValue['segment'] }} |
| POLICY NO. |
{{ $gValue['current_policy_number'] }} |
RISKSTART DATE |
{{date('d-m-Y', strtotime($gValue['risk_from_date']))}} |
SUM ASSURED |
{{ $gValue['sum_assured'] }} |
REMARKS |
{{ substr($gValue['remark'], 0, 70) }} |
| INS.CO. NAME |
{{ $gValue['insurance_company'] }} |
RISK DUE DATE |
{{date('d-m-Y', strtotime($gValue['risk_to_date']))}} |
PREM.AMOUNT |
{{ $gValue['total_amount'] }} |
|
|
| NOMINEE NAME |
{{ $gValue['nomineeName'] }} |
VEHI.REG.NO. |
{{ $gValue['vehicle_no'] }} |
VEH.NAME |
{{ $gValue['vehicle_name'] }} |
|
|
@else
| POLICY SR. NO. |
{{ $policy_sr_no++ }} |
DIVISION |
{{ $gValue['division'] }} |
SEGMENT |
{{ $gValue['segment'] }} |
| POLICY NO. |
{{ $gValue['current_policy_number'] }} |
RISKSTART DATE |
{{date('d-m-Y', strtotime($gValue['risk_from_date']))}} |
SUM ASSURED |
{{ $gValue['sum_assured'] }} |
REMARKS |
{{ substr($gValue['remark'], 0, 70) }} |
| INS.CO. NAME |
{{ $gValue['insurance_company'] }} |
RISK DUE DATE |
{{date('d-m-Y', strtotime($gValue['risk_to_date']))}} |
PREM.AMOUNT |
{{ $gValue['total_amount'] }} |
|
|
| NOMINEE NAME |
{{ $gValue['nomineeName'] }} |
MEMBER COVERED |
|
|
|
|
|
@endif
@endif
@endforeach
@endif
{{-- life insurance --}}
@if(in_array("Life Insurance", $response['report_type']))
@php $lifeRowDisplayed = false; @endphp
@foreach ($response['lifeInsuranceData'] as $innerKey => $lifeInsValue)
@if($lifeInsValue['client_id'] == $value1['id'])
@if(!$lifeRowDisplayed)
@php $life_policy_sr_no = 1; @endphp
|
LIFE INSURANCE POLICY
|
@php $lifeRowDisplayed = true; @endphp
@endif
| POLICY SR. NO. |
{{ $life_policy_sr_no++ }} |
PLAN NO. /NAME |
- |
TERM |
{{ $lifeInsValue['risk_term'] }} |
| POLICY NO. |
{{ $lifeInsValue['policy_number'] }} |
RISKSTART DATE |
{{date('d-m-Y', strtotime($lifeInsValue['risk_from_date']))}} |
SUM ASSURED |
{{ $lifeInsValue['sum_assured'] }} |
REMARKS |
{{ substr($lifeInsValue['remark'], 0, 70) }} |
| INS.CO. NAME |
{{ $lifeInsValue['insurance_company'] }} |
MATURITY DATE |
{{date('d-m-Y', strtotime($lifeInsValue['maturity_date']))}} |
S.B. DUE DATE |
- |
BRANCH |
- |
| PREM. AMOUNT |
{{ $lifeInsValue['total_amount'] }} |
MODE |
{{ $lifeInsValue['mode'] }} |
PREM. DUE DATE |
- |
|
|
| NOMINEE NAME |
{{ $lifeInsValue['nomineeName'] }} |
LAST PREM.DATE |
{{date('d-m-Y', strtotime($lifeInsValue['last_payment_date']))}} |
S.B. DUE AMT |
|
|
|
@endif
@endforeach
@endif
{{-- investment --}}
@if(in_array("Investment", $response['report_type']))
@php $investRowDisplayed = false; @endphp
@foreach ($response['investmentData'] as $innerKey => $investValue)
@if($investValue['client_id'] == $value1['id'])
@if(!$investRowDisplayed)
@php $invest_policy_sr_no = 1; @endphp
|
INVESTMENT
|
@php $investRowDisplayed = true; @endphp
@endif
| INVESTMENT SR. NO. |
{{ $invest_policy_sr_no++ }} |
INVEST. TYPE |
{{ $investValue['investment_type'] }} |
INVEST. SAGMENT |
- |
| INVEST. DOC. NO. |
{{ $investValue['investment_document_number'] }} |
INVEST. DOC. DATE |
{{date('d-m-Y', strtotime($investValue['document_date']))}} |
TERM OF INV. |
{{ $investValue['term'] ? $investValue['term'] . ' YEAR' : '' }} |
REMARKS |
{{ $investValue['remark'] }} |
| INVESTED TO CO. |
- |
MATURITY DATE |
{{date('d-m-Y', strtotime($investValue['mature_date']))}} |
INVESTED AMT. |
{{ $investValue['invested_amount'] }} |
|
|
| NOMINEE NAME |
{{ $investValue['nomineeName'] }} |
RATE OF INTEREST % |
{{ $investValue['rate_of_interest'] }} |
MATURITY AMT. |
{{ $investValue['mature_value'] }} |
|
|
| MORG. TO |
- |
LOAN DATE |
- |
LOAN AMT. |
- |
|
|
|
|
|
- |
FD ENCASHED DT. |
- |
ENCASHED AMT. |
- |
@endif
@endforeach
@endif
{{-- Documents --}}
@php
$headerDisplayed = false; // Variable to track if header is displayed
$startIndex=1;
@endphp
@if(in_array("Documents", $response['report_type']))
@foreach ($response['clientDocuments'] as $innerKey => $documValue)
@if ($documValue['client_id'] == $value1['id'])
@if (!$headerDisplayed)
|
DOCUMENTS
|
| SR. NO. |
DOCUMENT TYPE |
DOCUMENT NAME |
DOCUMENT NO. |
DOC. DUE DATE |
REMARKS |
|
|
|
@php
$headerDisplayed = true; // Set headerDisplayed to true after displaying the header
@endphp
@endif
| {{$startIndex++}} |
{{ $documValue['document_type'] }} |
{{ $documValue['document_name'] }} |
{{ $documValue['document_number'] }} |
{{date('d-m-Y', strtotime($documValue['due_date']))}} |
{{ $documValue['remark'] }} |
|
|
|
@endif
@endforeach
@endif
{{-- claim--}}
@php
$headerDisplayed = false; // Variable to track if header is displayed
$startIndex=1;
@endphp
@if(in_array("Claims", $response['report_type']))
@php $claimRowDisplayed = false; @endphp
{{-- claim Data--}}
@foreach ($response['claimData'] as $innerKey => $claimValue)
@if($claimValue['client_id'] == $value1['id'])
@if(!$claimRowDisplayed)
@php $invest_policy_sr_no = 1; @endphp
|
CLAIMS
|
| SR. NO. |
Claim Tab Name |
Claim Type |
Policy Holder Name |
Transaction Date |
DOA & DOD |
Amount Rs. |
|
|
@php $claimRowDisplayed = true; @endphp
@endif
@endif
@if($claimValue['client_id'] == $value1['id'])
| {{$startIndex++}} |
Claim Intimation |
{{ $claimValue['claim_intimation_type'] }} |
{{ $claimValue['policy_holder_name'] }} |
{{date('d-m-Y', strtotime($claimValue['transaction_date']))}} |
{{date('d-m-Y', strtotime($claimValue['admission_date']))}} |
{{ $claimValue['total_expense'] }} |
|
|
@endif
@endforeach
{{-- claim Lodged--}}
@foreach ($response['claimLodged'] as $innerKey => $claimlodgValue)
@if($claimlodgValue['client_id'] == $value1['id'])
| {{$startIndex++}} |
Claim Lodged |
{{ $claimlodgValue['claim_lodged_type'] }} |
{{ $claimlodgValue['policy_holder_name'] }} |
{{date('d-m-Y', strtotime($claimlodgValue['transaction_date']))}} |
{{date('d-m-Y', strtotime($claimlodgValue['admission_date']))}}@if(isset($claimlodgValue['discharged_date']))& {{ date('d-m-Y', strtotime($claimlodgValue['discharged_date'])) }}@endif |
{{ $claimlodgValue['grand_total_amt'] }} |
|
|
@endif
@endforeach
{{-- cashlessClaim--}}
@foreach ($response['cashlessClaim'] as $innerKey => $claimCashlessValue)
@if($claimCashlessValue['client_id'] == $value1['id'])
| {{$startIndex++}} |
Cashless Claim |
{{ $claimCashlessValue['cashless_claim_type'] }} |
{{ $claimCashlessValue['policy_holder_name'] }} |
{{date('d-m-Y', strtotime($claimCashlessValue['transaction_date']))}} |
{{ $claimCashlessValue['admission_date'] }}@if(isset($claimCashlessValue['discharged_date'])) & {{ $claimCashlessValue['discharged_date'] }}@endif |
{{ $claimCashlessValue['settled_amt'] }} |
|
|
@endif
@endforeach
{{-- claimQuery--}}
@foreach ($response['claimQuery'] as $innerKey => $claimQueryValue)
@if($claimQueryValue['client_id'] == $value1['id'])
| {{$startIndex++}} |
Claim Query Status |
{{ $claimQueryValue['claim_intimation_type'] }} |
{{ $claimQueryValue['policy_holder_name'] }} |
{{date('d-m-Y', strtotime($claimQueryValue['transaction_date']))}} |
{{ $claimQueryValue['admission_date'] }}@if(isset($claimQueryValue['discharged_date'])) & {{ $claimQueryValue['discharged_date'] }}@endif |
@if($claimQueryValue['query_ans_status'] == 1)
Query Solved |
@else
Query Pending |
@endif
|
|
@endif
@endforeach
@endif