@php $labels = ['LOGIN' => 'Login', 'DISB' => 'Disbursed', 'APPROVED' => 'Approved', 'REJECT' => 'Rejected']; $title = ($labels[$status] ?? $status).' cases'; $exportParams = array_filter(['status' => $status, 'month' => $month ?? 'all', 'user' => $userId, 'q' => request('q')], fn ($v) => $v !== null && $v !== ''); @endphp Export CSV Dashboard
@foreach ($labels as $key => $label) $key === $status, 'btn-secondary' => $key !== $status])>{{ $label }} @endforeach
@if ($users->isNotEmpty())
@endif
@if ($rows->isEmpty()) @else
@foreach ($rows as $a) @endforeach
Contact Sales manager Inq status Field manager Login month
{{ $a->displayName() ?? '—' }}
{{ $a->displayMobile() }} @if ($a->loanData?->car_reg_no) · {{ $a->loanData->car_reg_no }} @endif
{{ $a->subject ?: '—' }} {{ $a->user?->name ?? '—' }} {{ $a->inq_status }} {{ $a->clean('field_manager') ?? '—' }} {{ $a->clean('login_month') ?? '—' }} $amountColumn === 'valuation_ammount'])>{{ $a->valuation_ammount ? '₹'.number_format($a->valuation_ammount) : '—' }} $amountColumn === 'disb_loan_amount'])>{{ $a->disb_loan_amount ? '₹'.number_format($a->disb_loan_amount) : '—' }} $amountColumn === 'loanamount'])>{{ $a->loanamount ? '₹'.number_format($a->loanamount) : '—' }}
@endif