@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'] == 'COMP') @if($policy_data['step'] == 2)
Please select your Deductible Plan

Deductibles

"We want you to have maximum ease of purchase when you decide to get our comprehensive insurance. And that is why, you could also ""pitch in"" to it. Decide on the portion that you could pool in from the following. And you will save on your premium. But at the time of an accident, our payment to you will be ""minus"" to what you committed. "
@foreach($policy_data['deductibles'] as $deductible)
Save
LKR {{number_format($policy_data['covers'][$policy_data['selected_cover_code']]['base']['basic_premium'] * ($deductible['discount'] / 100),2) }}
{{$deductible['excess'] }} % - LKR {{number_format((($deductible['excess']) * ($policy_data['covers'][$policy_data['selected_cover_code']]['base']['sum_insured']))/100, 2) }}
{{--@if($deductible['id'] != $policy_data['deductible_id']) Remove @endif--}}

{{$deductible['title']}}

{{--In the event of a claim you will have to bear this amount.--}} {!! $deductible_desc !!}
{{--{{dd($policy_data['covers'][$policy_data['selected_cover_code']]['base']['basic_premium'])}}--}}
@endforeach
@elseif($policy_data['step'] == 1)
@php $coverVal = $policy_data['covers'][$policy_data['selected_cover_code']]['base']['sum_insured'] @endphp @php $riskPremium = $policy_data['covers'][$policy_data['selected_cover_code']]['base']['risk_premium'] @endphp @php $agentRepairFix = $policy_data['agent_repair_fix'] @endphp @php $naturalDisaster = $policy_data['covers'][$policy_data['selected_cover_code']]['natural_disaster'] @endphp
Please select your Extension Packs

Extension Packs

We offer a range of extension packs to help enhance your cover even further. Create the perfect cover according to the extensions you prefer most.
@foreach($policy_data['extensions'] as $extension) @if ($extension['code'] == 'AGENT' && (!in_array($quote_data['vehicle_age'], range(4, 5)))) @php continue @endphp @endif @if($extension['is_default'] == 0) @if ($extension['code'] == 'SRCC') @php $srccId = $extension['id'] @endphp @endif @if ($extension['code'] != 'TC')
@else
@endif
{{$extension['title']}}
{{$extension['title']}}
{{$extension['short_description']}}
@php $amount = 0 @endphp @if($extension['code'] == 'TC') @php $amount = $tcAmount = ($coverVal * $extension['value'] / 100) @endphp @elseif($extension['code'] == 'SRCC') @php $amount = $srccAmount = ($coverVal * $extension['value'] / 100) @endphp @elseif($extension['code'] == 'AGENT') @php $amount = $agentAmount = ($riskPremium + $naturalDisaster) * ($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)--}}
{{--@endif--}} {{--@if($extension['is_percentage']){{$extension['value']}}% @else {{$extension['value']}} @endif--}}
@else @endif @endforeach
{{----}} @if($policy_data['step'] == 2) @endif @if($policy_data['step'] == 1) @endif
@endif @endif @include('front.includes.terms') @include('front.includes.other-policies') {{--@include('front.includes.stickybar')--}} @endsection