@php /** Shared template for the PDF (dompdf) and the browser print view — tables + CSS 2.1 only. */ $money = fn ($v) => \App\Services\Insurance\QuotationPresenter::money($v); $q = $quotation; $t = $totals; $logo = \App\Services\Insurance\DocumentImages::dataUri('logo-full.png', 420); $banner = $insurer === 'tata' ? \App\Services\Insurance\DocumentImages::dataUri('tata_car_insurance.jpg', 710) : null; $accent = $insurer === 'tata' ? '#1d4ed8' : '#d97706'; $date = $q->created_date ?? now(); @endphp Quotation {{ $q->quotation_no }}
@if ($mode === 'print')
@endif
@if ($logo)Top Gear@elseTOP GEAR@endif {{ strtoupper($insurerLabel) }}
Private Car Insurance Quotation
Quotation {{ $q->quotation_no ?: '#'.$q->id }}  ·  {{ $date->format('d M Y') }}
@if ($planLabel)
Plan: {{ $planLabel }}
@endif
@if ($banner) TATA AIG @endif

Dear {{ $q->name ?: 'Customer' }}@if ($q->mobileno) ({{ $q->mobileno }})@endif,

Thank you for approaching {{ $insurerLabel }} through Top Gear for your private car insurance. Please find the quotation for your vehicle below. Your total premium payable is {{ $money($t['totalCost']) }} (including GST).

Customer
Name{{ $q->name ?: '—' }}
Mobile{{ $q->mobileno ?: '—' }}
Email{{ $q->email ?: '—' }}
Your executive
Name{{ $executive['name'] ?: 'Top Gear' }}
Mobile{{ $executive['mobile'] ?: '—' }}
Valid until{{ $date->copy()->addDays(3)->format('d M Y') }}

Vehicle details

@php($vehicleRows = array_chunk(array_filter($vehicle, fn ($v) => $v !== null && $v !== ''), 2, true)) @foreach ($vehicleRows as $pair) @foreach ($pair as $label => $value) @endforeach @if (count($pair) === 1)@endif @endforeach
{{ $label }}{{ $value }}

Insured declared value (IDV)

Vehicle IDVElectrical accessoriesCNG / LPG kitTotal IDV
{{ $money($idv['vehicle']) }}{{ $money($idv['electrical']) }}{{ $money($idv['kit']) }}{{ $money($idv['total']) }}

Premium breakdown

@foreach ($od as $row) ($row[3] ?? null) === 'subtotal'])> @endforeach
Own damage
{{ $row[0] }}{{ $money($row[1]) }}
Net own-damage premium{{ $money($t['finalOd']) }}
@foreach ($tp as $row) @endforeach
Third party
{{ $row[0] }}{{ $money($row[1]) }}
Third-party package{{ $money($t['tpPackage']) }}
@foreach ($summary as $row) ($row[2] ?? null) === 'subtotal'])> @endforeach
{{ $row[0] }}{{ $money($row[1]) }}
Total premium payable{{ $money($t['totalCost']) }}
@if (! $consistent)
This quotation was created by the previous system; the saved amounts are shown as originally calculated.
@endif @if ($covers)

Covers included

@foreach ($covers as $cover)✓ {{ $cover }}@endforeach
@endif

Terms

This quotation is valid for 3 days from the date of quote generation, subject to continuity up to the last date of the previous year's policy. Add-on covers are available at an additional cost — please choose the coverage you wish to buy and add the premium to the total premium payable. For the detailed description, terms and conditions please refer to the policy wordings of {{ $insurerLabel }}; the terms and conditions of the policy prevail in case of any conflict. The premium is indicative and subject to the insurer's underwriting at the time of issuance.

Thanks & regards,
Top Gear Multiple Services Pvt. Ltd. — {{ $insurerLabel }} partner

@if ($mode === 'print') @endif