{{--
@foreach ($groupedComparativeReport as $insurerName => $locations) @foreach ($locations as $location) @endforeach @endforeach

Comparative Analysis Report

{{ $insurerName }}
{{ strtoupper($location->insurer_name) }}
Previous Year {{now()->startOfYear()->subYear()->format('Y')}} Current Year {{now()->format('Y')}} Variance
Count Total Sum Insured Total Premium Count Total Sum Insured Total Premium Count Total Sum Insured Total Premium
{{ number_format($location->last_year_certificate_type_count) }} {{ number_format($location->last_year_total_sum_insured_sum,2) }} {{ number_format($location->last_year_total_premium_sum,2) }} {{ number_format($location->current_year_certificate_type_count) }} {{ number_format($location->current_year_total_sum_insured_sum,2) }} {{ number_format($location->current_year_total_premium_sum,2) }} {{ number_format($location->variance_certificate_type_count) }} {{ number_format($location->variance_total_sum_insured,2) }} {{ number_format($location->variance_total_premium_sum,2) }}



--}}
{{-- Grand Total --}}
@foreach ($perLocation as $location) @endforeach @foreach ($grandTotal as $grandTotal) @endforeach

Grand Total Per Location

Previous Year {{ now()->startOfYear()->subYear()->format('Y') }} Current Year {{ now()->format('Y') }} Variance
Location Count Total Sum Insured Total Premium Count Total Sum Insured Total Premium Count Total Sum Insured Total Premium
{{ $location->location_description }} {{ number_format($location->last_year_certificate_type_count) }} {{ number_format($location->last_year_total_sum_insured_sum, 2) }} {{ number_format($location->last_year_total_premium_sum, 2) }} {{ number_format($location->current_year_certificate_type_count) }} {{ number_format($location->current_year_total_sum_insured_sum, 2) }} {{ number_format($location->current_year_total_premium_sum, 2) }} {{ number_format($location->variance_certificate_type_count) }} {{ number_format($location->variance_total_sum_insured, 2) }} {{ number_format($location->variance_total_premium_sum, 2) }}
Grand Total {{ number_format($grandTotal->grandtotal_last_year_certificate_type_count) }} {{ number_format($grandTotal->grandtotal_last_year_total_sum_insured_sum, 2) }} {{ number_format($grandTotal->grandtotal_last_year_total_premium_sum, 2) }} {{ number_format($grandTotal->grandtotal_current_year_certificate_type_count) }} {{ number_format($grandTotal->grandtotal_current_year_total_sum_insured_sum, 2) }} {{ number_format($grandTotal->grandtotal_current_year_total_premium_sum, 2) }} {{ number_format($grandTotal->grandtotal_variance_certificate_type_count) }} {{ number_format($grandTotal->grandtotal_variance_total_sum_insured, 2) }} {{ number_format($grandTotal->grandtotal_variance_total_premium_sum, 2) }}
{{-- @foreach ($data as $item)

{{ $item->location_description }}

As of Year 2024


Policy Count: {{ number_format($item->COI) }}
Premium: {{ number_format($item->SUM_COI, 2) }}

Today


Policy Count: {{ number_format($item->perDayTransaction) }}
Premium: {{ number_format($item->perDayPremium, 2) }}
@endforeach --}}