@php $money = fn ($v) => \App\Services\Insurance\QuotationPresenter::money($v); $t = $p['totals']; @endphp Print Download PDF
@csrf
Edit
{{-- Hero --}}
{{ $p['insurerLabel'] }} @if ($p['planLabel']){{ $p['planLabel'] }}@endif @if ($q->contact_id > 0)Bulk generated@endif
{{ $q->vehicle_label ?: 'Vehicle not set' }}
{{ $q->fuel_type }} @if ($q->fuel_type_cc) · {{ $q->fuel_type_cc }} cc @endif @if ($q->reg_no) · {{ strtoupper($q->reg_no) }} @endif
Total payable
{{ $money($t['totalCost']) }}
incl. GST {{ $money($t['gst']) }}
@unless ($p['consistent'])
This legacy quotation was saved by the old system with figures that do not fully reconcile; the saved totals are shown with an explicit adjustment line. Editing and saving recalculates it.
@endunless
@foreach (['Name' => $q->name, 'Mobile' => $q->mobileno, 'Email' => $q->email, 'Contact person' => trim($q->person_name.' '.($q->person_mobile ? '· '.$q->person_mobile : ''))] as $label => $value)
{{ $label }}
{{ $value ?: '—' }}
@endforeach
Executive
{{ $p['executive']['name'] ?? ($q->user_id ? 'Former user #'.$q->user_id : '—') }}
@foreach ($p['vehicle'] as $label => $value) @continue(in_array($label, ['Make', 'Model'], true))
{{ $label }}
{{ $value ?? '—' }}
@endforeach
@foreach (['Vehicle IDV' => $p['idv']['vehicle'], 'Electrical accessories' => $p['idv']['electrical'], 'CNG / LPG kit' => $p['idv']['kit'], 'Total IDV' => $p['idv']['total']] as $label => $value)
{{ $label }}
{{ $money($value) }}
@endforeach
Own damage
@foreach ($p['od'] as $row)
($row[3] ?? null) === 'subtotal', 'text-ink-600 dark:text-ink-300' => ($row[3] ?? null) !== 'subtotal'])>
{{ $row[0] }} @if (($row[2] ?? null) === 'Add-on cover')add-on@endif
{{ $money($row[1]) }}
@endforeach
Net own-damage premium
{{ $money($t['finalOd']) }}
Third party
@foreach ($p['tp'] as $row)
{{ $row[0] }}
{{ $money($row[1]) }}
@endforeach
Third-party package
{{ $money($t['tpPackage']) }}
@foreach ($p['summary'] as $row)
($row[2] ?? null) === 'subtotal', 'text-ink-600 dark:text-ink-300' => ($row[2] ?? null) !== 'subtotal'])>
{{ $row[0] }}
{{ $money($row[1]) }}
@endforeach
Total payable
{{ $money($t['totalCost']) }}
@if ($p['covers'])
    @foreach ($p['covers'] as $cover)
  • {{ $cover }}
  • @endforeach
@endif
{{-- Follow-ups --}}
@csrf
@if ($tasks->isEmpty()) @else
    @foreach ($tasks as $task)
  1. {{ $task->task }}
    @if ($task->comment)

    {{ $task->comment }}

    @endif
    {{ $task->date_parsed?->format('d M Y, h:i A') ?? $task->date }} @if ($task->user) · {{ $task->user->name }} @endif
  2. @endforeach
@endif