@if($policy_data['product_code'] == 'COMP')
LKR
@if (isset($calc_policy_data[$policy_data['mode']]) && $calc_policy_data['mode'] == \App\Insurance\Calculations::DAILY)
{{number_format($calc_policy_data[$calc_policy_data['mode']]['base']['basic_premium']['calculated'] ,2)}}
@else
{{ number_format($policy_data['basic_premium'],2) }}
@endif
LKR
{{ number_format($policy_data['natural_disaster_amount'],2) }}
@if($policy_data['vehicle_type_id'] == config('app.conf_mt')['bike'])
Srcc Riot & Civil Commotion Cover
LKR
{{ number_format($policy_data['srcc_amount'],2) }}
@endif
@endif
@if(collect($added_services[0]['coverPlans'])->all() && $policy_data['product_code'] == 'CUST')
Cover Plans
@foreach($added_services[0]['coverPlans'] as $cp)
LKR
{{ number_format($cp['pivot']['amount'],2) }}
@endforeach
@endif
@if(collect($added_services[0]['extensions'])->all() && ($policy_data['vehicle_type_id'] != config('app.conf_mt')['bike']))
Extension Packs
@foreach($added_services[0]['extensions'] as $ext)
{{ $ext['title'] }}
{{ $ext['description'] }}
LKR
{{ number_format($ext['pivot']['amount'],2) }}
@endforeach
@endif
@if($policy_data['deductible_id'] > 0)
LKR
({{ number_format($policy_data['deductible_amount'],2) }})
@endif
Gross Premium
@if($policy_data['discount_applied'] == 'Yes')
LKR{{number_format(($policy_data['gross_premium']),2)}}
@endif
LKR
@if (isset($calc_policy_data[$policy_data['mode']]) && $calc_policy_data['mode'] == \App\Insurance\Calculations::DAILY)
{{number_format($calc_policy_data[$calc_policy_data['mode']]['gross_premium_discount']['calculated'],2)}}
@else
{{number_format($calc_policy_data['gross_premium_discount'],2)}}
@endif
@if($policy_data['discount_applied'] == 'Yes' && ($policy_data['product_code'] == 'COMP' || $policy_data['product_code'] == 'CUST'))
Discount
LKR
({{number_format($policy_data['discount_amount'],2)}})
@endif
Taxes and Other Charges
LKR
{{number_format($policy_data['total_tax'],2)}}
Total Premium
{{--@if($policy_data['discount_applied'] == 'Yes')
LKR{{number_format($policy_data['total_activation_fee'],2)}}
@endif--}}
LKR
{{number_format($policy_data['total_activation_fee'] ,2)}}
@if (isset($calc_policy_data['mode']) && $calc_policy_data['mode'] == \App\Insurance\Calculations::ANNUALLY)
{{ $calc_policy_data['policy_mode_desc'] }}
LKR
{{number_format($calc_policy_data[$calc_policy_data['mode']]['total_premium']['fixed'] ,2)}}
{{ $calc_policy_data['policy_mode_sub_desc'] }}
@endif