@foreach ($response['data'] as $key => $value) Reachassuree - Life Invoice
Header Avatar @if ($response['path'] == 'life-policies' || $response['path'] == 'deleted-life-policies' || $response['path'] == 'manage')

:: Life Insurance Management Report (D/L) ::

@else

:: Life Insurance Management(Renewal) Report (D/L) ::

@endif

@if($response['start_date'] != 'not selected') From Date :- {{ $response['start_date'] }} @endif | {{ $response['date_type'] }} | @if($response['end_date'] != 'not selected') To Date :- {{ $response['end_date'] }} @endif

Page :- {{ $key + 1 }} > {{ $response['count'] }}
@php $sumAssuredTotal = 0; $basicPremiumTotal = 0; $taxAmountTotal = 0; $totalPremiumTotal = 0; $byusPayoutTotal = 0; $partyPayoutTotal = 0; $accidentRiskTotal = 0; $commisionable_amount = 0; @endphp @foreach ($value as $key1 => $value1) @php $sumAssuredTotal = $sumAssuredTotal + $value1['sum_assured']; $accidentRiskTotal = $accidentRiskTotal + $value1['accident_risk_amount']; $basicPremiumTotal = $basicPremiumTotal + $value1['basic_amount']; $taxAmountTotal = $taxAmountTotal + $value1['tax_amount']; $totalPremiumTotal = $totalPremiumTotal + $value1['total_amount']; $partyPayoutTotal = $partyPayoutTotal + $value1['party_payout_amount']; $byusPayoutTotal = $byusPayoutTotal + $value1['byus_payout_amount']; $commisionable_amount = $commisionable_amount + $value1['commisionable_amount']; @endphp @if ($key1 % 2 == 0) @else @endif
Sr.No. Transaction Date Policy Holder Name Insurance Company Plan Name Risk Start Date Basic Premium Policy Status
{{ $key1 + 1 }}{{ $key1 + 1 }}{{ dateDMYFormat($value1['transaction_date']) }} {{ $value1['policy_holder_name'] }} {{ $value1['insurance_company'] }} {{ $value1['insurance_plan'] }} {{ $value1['risk_from_date'] ? dateDMYFormat($value1['risk_from_date']) : '-' }} {{ $value1['basic_amount'] }} {{ $value1['life_policy_status'] }}
Broker Group Name Sub Agent Plan Detail Maturity Date Tax Amount Next Due Date (FUP)
{{ $value1['broker'] }} {{ $value1['group'] }} {{ $value1['sub_agent'] }} {{ $value1['risk_term'] }}-{{ $value1['premium_paying_term'] }} {{ $value1['maturity_date'] ? dateDMYFormat($value1['maturity_date']) : '-' }} {{ number_format($value1['tax_amount'], 2) }} {{ $value1['risk_to_date'] ? dateDMYFormat($value1['risk_to_date']) : '-' }}
Agency Mob No. / W App No. Branch Sum Assured Last Prem.Date Total Amount Commissionable Amt
{{ $value1['agency'] }} {{ $value1['mobile_number'] }} / {{ $value1['whatsapp_number'] }} {{ $value1['branch'] }} {{ number_format($value1['sum_assured'], 2) }} {{ $value1['last_payment_date'] ? dateDMYFormat($value1['last_payment_date']) : '-' }} {{ $value1['total_amount'] }} {{ $value1['commisionable_amount'] }}
Mode E-Mail Id Policy No. Accident Risk Remarks
{{ $value1['mode'] }} {{ $value1['email'] }} {{ $value1['policy_number'] }} {{ number_format($value1['accident_risk_amount'], 2) }} {{ substr($value1['remark'], 0, 150) }}
@endforeach
Page total Sum Assured Basic Premium Tax Amount Total Amount Commissionable Amt
{{ number_format($sumAssuredTotal, 2) }} {{ number_format($basicPremiumTotal, 2) }} {{ number_format($taxAmountTotal, 2) }} {{ number_format($totalPremiumTotal, 2) }} {{ number_format($commisionable_amount, 2) }}
@if ($key + 1 == $response['count'])
REPORT TOTAL Sum Assured Basic Premium Tax Amount Total Amount For Comm. Amount
{{ number_format($response['total']['total_sum_assured'], 2) }} {{ number_format($response['total']['total_basic_amount'], 2) }} {{ number_format($response['total']['total_tax_amount'], 2) }} {{ number_format($response['total']['total_total_amount'], 2) }} {{ number_format($response['total']['total_commisionable_amount'], 2) }}
@endif
@endforeach