@php $categoryIcons = [ 'NEEDS_RESPONSE' => ['path' => 'M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z', 'bg' => 'bg-red-50', 'icon' => 'text-red-500'], 'FOLLOWUP_DUE' => ['path' => 'M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z', 'bg' => 'bg-amber-50', 'icon' => 'text-amber-500'], 'OVERDUE' => ['path' => 'M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z', 'bg' => 'bg-red-50', 'icon' => 'text-red-600'], 'HOT' => ['path' => 'M17.657 18.657A8 8 0 016.343 7.343S7 9 9 10c0-2 .5-5 2.986-7C14 5 16.09 5.777 17.656 7.343A7.975 7.975 0 0120 13a7.975 7.975 0 01-2.343 5.657z', 'bg' => 'bg-orange-50', 'icon' => 'text-orange-500'], 'AUTOMATION_FAILED' => ['path' => 'M18.364 18.364A9 9 0 005.636 5.636m12.728 12.728A9 9 0 015.636 5.636m12.728 12.728L5.636 5.636', 'bg' => 'bg-red-50', 'icon' => 'text-red-600'], 'STALE' => ['path' => 'M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z', 'bg' => 'bg-slate-50', 'icon' => 'text-slate-400'], ]; $iconDef = $categoryIcons[$item->category] ?? $categoryIcons['STALE']; $categoryLabels = [ 'NEEDS_RESPONSE' => 'Needs Response', 'FOLLOWUP_DUE' => 'Follow-up Due', 'OVERDUE' => 'Overdue', 'HOT' => 'Hot Lead', 'AUTOMATION_FAILED' => 'Automation Failed', 'STALE' => 'Stale', ]; @endphp
{{-- Icon --}}
{{-- Lead Info --}}
{{ $item->lead_name }} @if($item->lead_company) · {{ $item->lead_company }} @endif {{ $badgeLabel }}
@if($item->stage_name) {{ $item->stage_name }} @endif @if($item->lead_score) Score {{ $item->lead_score }} @if($item->temperature) · {{ ucfirst(strtolower($item->temperature)) }} @endif @endif {{ $categoryLabels[$item->category] ?? $item->category }}

{{ $item->description }}

{{-- Actions --}}
@if($item->category === 'FOLLOWUP_DUE' || $item->category === 'OVERDUE') Send Follow-up @elseif($item->category === 'NEEDS_RESPONSE') Respond Now @endif Open Lead