My Leads

New Lead
@foreach($statusStats as $stat) @php $statusClass = 'stat-' . strtolower(str_replace([' ', '_'], '', $stat['name'])); $isLost = isset($stat['is_lost']) && $stat['is_lost'] === true; $isJunk = isset($stat['is_junk']) && $stat['is_junk'] === true; $statusId = $stat['id']; // ✅ Use ID directly from controller @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
@include('components.datatable')