@extends('layouts.app') @section('content')

{{$policy_data['selected'][0]['title']}}

{{$policy_data['selected'][0]['description']}}

{{-- --}}

Overview

@if($policy_data['selected'][0]['plan_include'])

Your Plan Includes

{!! $policy_data['selected'][0]['plan_include'] !!}
@endif @if($policy_data['selected'][0]['plan_exclude'])

Your Plan Excludes

{!! $policy_data['selected'][0]['plan_exclude'] !!}
@endif
@if($policy_data['step'] == 1)
@else @endif {{ csrf_field() }} @if($policy_data['selected_cover_code'] == 'CUST')

Default Cover

Total Loss (Added)
{{ $policy_data['covers']['CUSTDEFAULT']['default_description'] }}
LKR {{number_format(($policy_data['covers']['CUSTDEFAULT']['gross_premium']) ,2)}}
@if($policy_data['step'] == 2)

Cover Plans

@endif @if($policy_data['step'] == 1)
Please select one or more Cover Plans

Cover Plans

@foreach($policy_data['cover_plans'] as $coverPlan)
{{$coverPlan['title']}}
{{$coverPlan['title']}}

{{$coverPlan['short_description']}}

{{$coverPlan['title']}}
@php $basicPremium = $policy_data['covers'][$policy_data['selected_cover_code']]['base']['basic_premium'] @endphp
{{--@if($coverPlan['is_percentage']) {{$coverPlan['value'] }} % @else {{number_format($coverPlan['value'], 2)}} @endif--}} @endforeach {{----}}
@if($policy_data['selected_cover_code'] == 'CUST'){{'Total Loss (Added)'}}@endif
{{--@if($policy_data['covers'][$policy_data['selected_cover_code']]['discount_applied'] == 'Yes')--}} {{--
LKR{{number_format($policy_data['covers'][$policy_data['selected_cover_code']]['gross_premium'],2)}}
--}} {{--@endif--}} LKR {{number_format($policy_data['covers'][$policy_data['selected_cover_code']]['gross_premium_discount'],2)}}
@if($policy_data['covers'][$policy_data['selected_cover_code']]['discount_applied'] == 'Yes')
Gross premium
LKR{{number_format($policy_data['covers'][$policy_data['selected_cover_code']]['gross_premium'],2)}}
LKR {{number_format($policy_data['covers'][$policy_data['selected_cover_code']]['gross_premium_discount'],2)}}
@endif
Taxes and Other Charges LKR {{ $policy_data['covers']['CUST']['tax']['total_tax'] }}
Total
LKR
@endif @if($policy_data['step'] == 2)
Please select your Extension Packs

Extension Packs

@foreach($policy_data['extensions'] as $extension)
{{$extension['title']}}
{{$extension['title']}}
{{$extension['short_description']}}
@php $coverVal = $policy_data['covers'][$policy_data['selected_cover_code']]['base']['sum_insured'] @endphp @php $basicPremium = $policy_data['covers'][$policy_data['selected_cover_code']]['base']['basic_premium'] @endphp @php $agentRepairFix = $policy_data['agent_repair_fix'] @endphp @php $amount = 0 @endphp @if($extension['code'] == 'TC') @php $amount = ($coverVal * $extension['value'] / 100) @endphp @elseif($extension['code'] == 'SRCC') @php $amount = ($coverVal * $extension['value'] / 100) @endphp @elseif($extension['code'] == 'AGENT') @php $amount = ($basicPremium * $agentRepairFix / 100) @endphp @elseif($extension['code'] == 'OTHER') @php $amount = $extension['value'] @endphp @elseif($extension['code'] == 'ELEC') @php $amount = $extension['value'] @endphp @endif
@if($extension['is_default'] == 0)
@else @endif {{--@if($extension['is_percentage']){{$extension['value']}}% @else {{$extension['value']}} @endif--}}
@endforeach
{{----}}
@if($policy_data['selected_cover_code'] == 'CUST'){{'Total Loss (Added)'}}@endif
{{--@if($policy_data['covers'][$policy_data['selected_cover_code']]['discount_applied'] == 'Yes')--}} {{--
LKR{{number_format($policy_data['covers'][$policy_data['selected_cover_code']]['gross_premium'],2)}}
--}} {{--@endif--}} LKR {{number_format($policy_data['covers'][$policy_data['selected_cover_code']]['gross_premium'],2)}}
@if($policy_data['covers'][$policy_data['selected_cover_code']]['discount_applied'] == 'Yes')
Gross premium
LKR
LKR{{number_format($policy_data['covers'][$policy_data['selected_cover_code']]['gross_premium'],2)}}
LKR {{number_format($policy_data['covers'][$policy_data['selected_cover_code']]['gross_premium_discount'],2)}}
@endif
Taxes and Other Charges LKR {{ $policy_data['covers']['CUST']['tax']['total_tax'] }}
Total
LKR 6,0001
{{----}} @if($policy_data['step'] == 1) @endif @if($policy_data['step'] == 2) @endif
@endif @endif @include('front.includes.terms') {{--@include('front.includes.stickybar')--}} @endsection