Leads

@foreach($statusStats as $stat) @php $statusClass = 'stat-' . strtolower(str_replace([' ', '_'], '', $stat['name'])); $isLost = isset($stat['is_lost']) && $stat['is_lost']; $isJunk = isset($stat['is_junk']) && $stat['is_junk']; $statusId = $stat['id'] ?? null; @endphp
@if($stat['name'] === 'Followup') @elseif($stat['name'] === 'Lead') @elseif($stat['name'] === 'Customer') @elseif($isLost) @elseif($isJunk) @else @endif
{{ $stat['count'] }}
{{ strtoupper($stat['name']) }}
@if($isLost && isset($stat['percentage']))
{{ $stat['percentage'] }}% of total
@endif
@endforeach
New Lead Filtered
@php $dataRoute = route('admin.leads.all-leads.data'); $queryParams = []; if(request('status')) $queryParams['status'] = request('status'); if(request('lost')) $queryParams['lost'] = request('lost'); if(request('junk')) $queryParams['junk'] = request('junk'); if(!empty($queryParams)) { $dataRoute .= '?' . http_build_query($queryParams); } @endphp
@include('components.datatable')