{{-- Flash messages --}} @if(session('success')) @endif {{-- Top bar --}}

{{ __('Contacts') }}

{{ number_format($totalContacts) }} {{ __('contacts total') }}

{{-- Search --}}
{{-- Tag filter --}} {{-- Group filter --}} {{-- Import --}} {{-- Export --}} {{-- Add contact --}}
{{-- Bulk action bar --}} @if(count($selectedIds) > 0)
{{ count($selectedIds) }} {{ __('contact(s) selected') }}
@if($bulkAction === 'tag') @endif @if($bulkAction === 'add_to_group' || $bulkAction === 'remove_from_group') @endif
@endif {{-- Loading indicator --}}
{{ __('Loading...') }}
{{-- Table --}} @if($contacts->count() > 0)

{{ __('Swipe to see more columns') }}

@foreach($contacts as $contact) @endforeach
{{ __('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
{{ $score }}
{{-- Pagination --}}
{{ $contacts->links() }}
@else {{-- Empty state --}} @if($search || $selectedTag || $selectedGroup) @else @endif @endif {{-- Contact Form Modal --}} @if($showForm) @endif {{-- Import Modal --}} @if($showImport) @endif