Policy Information

{{--
--}}
{{-- Policy Section --}}
Product {{ $lead->product }}
Cover amount PKR {{ $lead?->policies_information?->cover_amount }}
Goal Name {{ $lead?->policies_information?->goal_name }}
Premium PKR {{ $lead?->policies_information?->premium }}/Yr
First Contribution PKR {{ $lead?->policies_information?->first_contribution }}
Embedded Protection PKR {{ $lead?->policies_information?->embedded_protection }}
Rate PKR {{ $lead?->policies_information?->rate }}
Payment Frequency {{ ucfirst($lead?->policies_information?->payment_frequency) }}
Add ons @php $addonsData = $lead?->policies_information?->addons; // Normalize addon data into an array of objects if (is_string($addonsData)) { $addons = json_decode($addonsData); // If still string (invalid JSON), force empty array if (!is_array($addons)) { $addons = []; } } elseif (is_array($addonsData)) { $addons = $addonsData; } else { $addons = []; } @endphp @if (!empty($addons)) @foreach ($addons as $addon) @php // Convert string to object if (is_string($addon)) { $addon = json_decode($addon); } @endphp @if (is_object($addon)) {{ $addon->rider_code ?? 'N/A' }} | Sum Assured: {{ 'PKR ' . number_format($addon->sum_assured_value ?? 0) }} | Premium: {{ 'PKR ' . number_format($addon->premium_amount ?? 0) }} @endif @endforeach @else N/A @endif
Donation Amount PKR {{ ucfirst($lead?->policies_information?->donation_amount) }}
Start Date {{ \Carbon\Carbon::parse($lead?->policies_information?->start_date)->format('D, jS M Y') }}
End Date {{ \Carbon\Carbon::parse($lead?->policies_information?->end_date)->format('D, jS M Y') }}
Payment Frequency {{ ucfirst($lead?->policies_information?->payment_frequency) }}
{{-- Policy Holder Section --}} {{-- Beneficiary Section --}}