@php $totalValue = 0; $voucher_states = config('enum.voucher_consent_states'); @endphp
@forelse($leads as $lead) @php $areaValue = $lead->address && $lead->getArea() ? $lead->getArea()->max_residential_value : 0; $totalValue += $areaValue; @endphp @empty @endforelse
# Customer Name Address Voucher Status Voucher Value
{{ $loop->iteration }} {{ $lead->user ? $lead->user->name : 'N/A' }} {{ $lead->address ? $lead->address->short() : 'No Address' }} {{ $voucher_states[$lead->voucher_consent ] ?? 'Unknown' }} £{{ number_format($areaValue, 2) }}
No leads found in this category.
Total: {{ count($leads) }} Lead(s) £{{ number_format($totalValue, 2) }}