{{ number_format($totalContacts) }} {{ __('contacts total') }}
{{ __('Swipe to see more columns') }}
| {{ __('Name') }} @if($sortField === 'first_name') {{ $sortDirection === 'asc' ? '▲' : '▼' }} @endif | {{ __('Email') }} @if($sortField === 'email') {{ $sortDirection === 'asc' ? '▲' : '▼' }} @endif | {{ __('Score') }} @if($sortField === 'lead_score') {{ $sortDirection === 'asc' ? '▲' : '▼' }} @endif | ||
|---|---|---|---|---|
|
{{ $contact->initials }}
{{ $contact->full_name }}
|
{{ $contact->email }} |
@php
$score = $contact->lead_score ?? 0;
$scoreLabel = $score >= 80 ? 'Hot' : ($score >= 50 ? 'Warm' : 'Cold');
$scoreColor = match($scoreLabel) {
'Hot' => 'bg-danger/15 text-danger',
'Warm' => 'bg-warning/15 text-warning',
'Cold' => 'bg-info/15 text-info',
};
$barColor = match($scoreLabel) {
'Hot' => 'bg-danger/100',
'Warm' => 'bg-warning/100',
'Cold' => 'bg-info/100',
};
@endphp
|
|