@if(Session::has('quote') && Session::get('quote')['insurance_types'] == 'IT')
Select your base cover
@else
Select your Plan
@endif
@if(Session::has('quote') && Session::get('quote')['insurance_types'] == 'MT')
@foreach($policies as $policy)
@php $cover_code = $policy['cover_code'] @endphp
@php $div_fclass = '' @endphp
@php $div_mclass = 'left' @endphp
@php $btn_text = '' @endphp
@php $enhance = '' @endphp
@php $discount_applied = 'No' @endphp
@if($cover_code == 'CUST')
Make Your Own
@if($discount_applied == 'Yes')
@endif
@if (isset($rates['DEFAULT']['subscription_type']) && $rates['DEFAULT']['subscription_type'] != \App\Insurance\Calculations::SUBS_YEARLY)
@if(isset($rates[$cover_code]['mode']))
(
{{ $rates[$cover_code]['policy_mode_text'] }} LKR
{{number_format($rates[$cover_code][$rates[$cover_code]['mode']]['total_premium_without_discount']['fixed'],2)}}
)
@else
@endif
@endif
@else
@if($discount_applied == 'Yes' && $cover_code == 'TP')
@elseif($discount_applied == 'Yes' && ( $cover_code != 'TP' || $cover_code != 'CUST' ))
LKR
{{number_format($rates[$cover_code]['total_premium_without_discount'],2)}}
@endif
LKR {{number_format($rates[$cover_code]['total_premium'],2)}}
@if (isset($rates['DEFAULT']['subscription_type']) && $rates['DEFAULT']['subscription_type'] != \App\Insurance\Calculations::SUBS_YEARLY)
@if(isset($rates[$cover_code]['mode']))
(
{{ $rates[$cover_code]['policy_mode_text'] }} LKR
@if($discount_applied == 'Yes')
{{number_format($rates[$cover_code][$rates[$cover_code]['mode']]['total_premium']['fixed'],2)}}
@else
{{number_format($rates[$cover_code][$rates[$cover_code]['mode']]['total_premium_without_discount']['fixed'],2)}}
@endif
)
@else
@endif
@endif
@endif
@endforeach
@endif
@if(Session::has('quote') && Session::get('quote')['insurance_types'] == 'PT')
@foreach($policies as $policy)
@php $cover_code = $policy['cover_code'] @endphp
@php $div_fclass = '' @endphp
@php $div_mclass = 'left' @endphp
@php $btn_text = '' @endphp
@php $enhance = '' @endphp
@if($rates[$cover_code]['discount_applied'] == 'Yes')
LKR{{number_format($rates[$cover_code]['total_premium_without_discount'],2)}}
@endif
Total : LKR
{{number_format($rates[$cover_code]['total_premium'],2)}}
@if (isset($rates[$cover_code]['mode']))
(
{{ $rates[$cover_code]['policy_mode_text'] }} LKR
{{number_format($rates[$cover_code][$rates[$cover_code]['mode']]['total_premium']['fixed'],2)}}
)
@endif
@endforeach
@endif
@if(Session::has('quote') && Session::get('quote')['insurance_types'] == 'PA')
@foreach($policies as $policy)
@php $cover_code = $policy['cover_code'] @endphp
@php $div_fclass = '' @endphp
@php $div_mclass = 'left' @endphp
@php $btn_text = '' @endphp
@php $enhance = '' @endphp
@php $btn_note = '' @endphp
@if($rates[$cover_code]['discount_applied'] == 'Yes')
LKR{{number_format($rates[$cover_code]['total_premium_without_discount'],2)}}
@endif
Total : LKR
{{number_format($rates[$cover_code]['total_premium'],2)}}
@if (isset($rates[$cover_code]['mode']))
(
{{ $rates[$cover_code]['policy_mode_text'] }} LKR
{{number_format($rates[$cover_code][$rates[$cover_code]['mode']]['total_premium']['fixed'],2)}}
)
@endif
@endforeach
@endif
@if(Session::has('quote') && Session::get('quote')['insurance_types'] == 'LS')
@foreach($policies as $policy)
@php $cover_code = $policy['cover_code'] @endphp
@php $div_fclass = '' @endphp
@php $div_mclass = 'left' @endphp
@php $btn_text = '' @endphp
@php $enhance = '' @endphp
@php $btn_note = '' @endphp
@if($rates[$cover_code]['discount_applied'] == 'Yes')
LKR{{number_format($rates[$cover_code]['total_premium_without_discount'],2)}}
@endif
Total : LKR
{{number_format($rates[$cover_code]['total_premium'],2)}}
@if (isset($rates[$cover_code]['mode']))
(
{{ $rates[$cover_code]['policy_mode_text'] }} LKR
{{number_format($rates[$cover_code][$rates[$cover_code]['mode']]['total_premium']['fixed'],2)}}
)
@endif
@endforeach
@endif
@if(Session::has('quote') && Session::get('quote')['insurance_types'] == 'TR')
@if(!is_object($policies->plan))
@foreach($policies->plan as $policy)
@php $cover_code = $policy->planName @endphp
@php $div_fclass = '' @endphp
@php $div_mclass = 'left' @endphp
@php $btn_text = '' @endphp
@php $enhance = '' @endphp
@php $btn_note = '' @endphp
LKR
{{number_format($policy->premium,2)}}
@endforeach
@else
@php $cover_code = $policies->plan->planName @endphp
@php $div_fclass = '' @endphp
@php $div_mclass = 'left' @endphp
@php $btn_text = '' @endphp
@php $enhance = '' @endphp
@php $btn_note = '' @endphp
LKR
{{number_format($policies->plan->premium,2)}}
@endif
@endif
@if(Session::has('quote') && Session::get('quote')['insurance_types'] == 'IT')
@php $last_key = count($policies); @endphp
@foreach($policies as $key => $policy)
@php $cover_code = $policy['cover_code'] @endphp
@php $div_fclass = '' @endphp
@php $div_mclass = 'left' @endphp
@php $btn_text = '' @endphp
@php $enhance = '' @endphp
@php $btn_note = '' @endphp
@if($rates[$cover_code]['discount_applied'] == 'Yes')
USD{{number_format($rates[$cover_code]['total_premium_without_discount'],2)}}
@endif
USD
{{number_format($rates[$cover_code]['total_premium'],2)}}
@if (isset($rates[$cover_code]['mode']))
(
{{ $rates[$cover_code]['policy_mode_text'] }} USD
{{number_format($rates[$cover_code][$rates[$cover_code]['mode']]['total_premium']['fixed'],2)}}
)
@endif
@endforeach
@endif
@if(Session::has('quote') && Session::get('quote')['insurance_types'] == 'MB')
@php $last_key = count($policies); @endphp
@foreach($policies as $key => $policy)
@php $cover_code = $policy['cover_code'] @endphp
@php $div_fclass = '' @endphp
@php $div_mclass = 'left' @endphp
@php $btn_text = '' @endphp
@php $enhance = '' @endphp
@php $btn_note = '' @endphp
@if($rates[$cover_code]['discount_applied'] == 'Yes')
LKR{{number_format($rates[$cover_code]['total_premium_without_discount'],2)}}
@endif
LKR
{{number_format($rates[$cover_code]['total_premium'],2)}}
@if (isset($rates[$cover_code]['mode']))
(
{{ $rates[$cover_code]['policy_mode_text'] }} LKR
{{number_format($rates[$cover_code][$rates[$cover_code]['mode']]['total_premium']['fixed'],2)}}
)
@endif
@endforeach
@endif