@extends('portal.layouts.app') @section('title', $product->name) @section('subtitle', $product->code.' · '.$product->coverage_term_label.' · Free look '.$product->free_look_days.' days') @section('content')

{{ $product->scope_of_cover }}

@if ($product->highlights) @endif
@foreach ([ 'Who is covered' => $product->who_is_covered, 'Cover type' => $product->cover_type, 'Enrollment age' => $product->enrollment_age_min.' to '.$product->enrollment_age_max.' years', 'Coverage age' => 'up to '.$product->coverage_age_max.' years', 'Waiting period' => $product->waiting_period_days ? $product->waiting_period_days.' days' : 'None', 'Review period' => $product->review_period, 'Underwriters' => collect($product->underwriters)->map(fn ($u) => config("takaful.underwriters.$u"))->join(', '), 'Bank remuneration' => collect($product->bankRemuneration())->map(fn ($v, $k) => str($k)->headline().': '.$v.'%')->join(' · '), ] as $label => $value)
{{ $label }}
{{ $value }}
@endforeach
@php $benefitHeads = $product->plans->flatMap->benefits->unique('id')->values(); @endphp
@foreach ($benefitHeads as $head) @endforeach @foreach ($product->plans as $plan) @foreach ($benefitHeads as $head) @php $pivot = $plan->benefits->firstWhere('id', $head->id)?->pivot; @endphp @endforeach @endforeach
Category{{ $head->short_name ?? $head->name }}Annual Monthly Daily
{{ $plan->label() }} @if ($pivot === null) @else {{ $pivot->display_value ?? number_format((float) $pivot->sum_covered) }} @endif {{ $plan->annual_contribution ? number_format((float) $plan->annual_contribution) : '–' }} {{ $plan->monthly_contribution ? number_format((float) $plan->monthly_contribution) : '–' }} {{ $plan->daily_contribution ? number_format((float) $plan->daily_contribution) : '–' }}

Contributions are inclusive of Federal Takaful Fee {{ config('takaful.levies.federal_takaful_fee') * 100 }}%, Sales Tax on Services {{ $product->salesTaxRate() * 100 }}%, Stamp Duty PKR {{ number_format(config('takaful.levies.stamp_duty')) }} and the administrative surcharge.

@if (auth()->user()->isAdmin()) @endif @foreach ($product->plans as $plan) @if (auth()->user()->isAdmin()) @csrf @endif @if (auth()->user()->isAdmin()) @endif @endforeach
Category EFU Life EFU General Gross
{{ $plan->label() }} {{ number_format((float) $plan->efu_life_contribution) }} {{ number_format((float) $plan->efu_general_contribution) }} {{ number_format((float) ($plan->annual_contribution ?? $plan->daily_contribution)) }} {{ $plan->is_active ? 'Available' : 'Off' }}
@if ($product->special_conditions) @foreach ($product->special_conditions as $block)

{{ $block['heading'] }}

@endforeach
@endif @foreach ($product->exclusions ?? [] as $block)

{{ $block['heading'] }}

@endforeach
@endsection