{{-- @include('insurance.quotations._table', ['quotations' => $paginator, 'selectable' => bool, 'showCreator' => bool]) --}} @php $selectable ??= false; $showCreator ??= true; $money = fn ($v) => \App\Services\Insurance\QuotationPresenter::money(is_numeric($v) ? (float) $v : 0); @endphp
@if ($selectable) @endif @if ($showCreator)@endif @foreach ($quotations as $q) @if ($selectable) @endif @if ($showCreator) @endif @endforeach
Vehicle Actions
{{ $q->quotation_no ?: '#'.$q->id }}
@if ($q->is_tata) TATA AIG · {{ \Illuminate\Support\Str::limit($q->plan_label, 18) }} @else HDFC ERGO @endif
{{ $q->name ?: '—' }}
{{ $q->mobileno }}@if ($q->email) · {{ \Illuminate\Support\Str::limit($q->email, 26) }}@endif
{{ trim($q->manufacturer_name.' '.$q->vehicle_model) ?: '—' }}
{{ $q->car?->sub_model }}@if ($q->reg_no) · {{ strtoupper($q->reg_no) }}@endif
{{ $money($q->total_cost) }}{{ $q->creator_name ?? ($q->user_id ? 'Former user #'.$q->user_id : '—') }}
{{ $q->created_date?->format('d M Y') }}
{{ $q->created_date?->format('h:i A') }}