@extends('client.layouts.dashboard') @section('title', 'Leads & Pipeline') @section('styles') @endsection @section('content') {{-- KPI Summary Cards --}}
{{ $leads->total() }}
Total Leads Matching
{{ $pipelineData['callback']['count'] + $pipelineData['follow_up']['count'] }}
Actionable Statuses
{{ $pipelineData['converted']['count'] }}
Converted Leads
{{ \App\Models\Reminder::where('client_id', $client->id)->overdue()->count() }}
Overdue Reminders
{{-- Filters Card --}}
{{-- Leads Table --}}
Leads & Contact Pipeline
@forelse($leads as $lead) @empty @endforelse
Lead Contact Assigned User (Agent) Status Priority Activity Metrics Next Follow-up Last Interaction Actions
{{ $lead->contact_name ?: 'Unknown Contact' }}
{{ $lead->phone_number }}
@if($lead->user)
{{ strtoupper(substr($lead->user->name, 0, 1)) }}
{{ $lead->user->name }}
@else Unassigned @endif
{{ \App\Models\Lead::statusLabel($lead->status_key) }} @if($lead->priority) {{ $lead->priority }} @else @endif
{{ $lead->total_calls }} {{ $lead->total_sms }} {{ $lead->total_whatsapp }}
@if($lead->next_follow_up_at) @php $isOverdue = $lead->hasOverdueFollowUp(); @endphp {{ $lead->next_follow_up_at->format('M d, g:i A') }} @if($isOverdue) (Overdue) @endif @else None Scheduled @endif @if($lead->last_interaction_at) {{ $lead->last_interaction_at->diffForHumans() }} @else @endif
View
No Leads Found

Try adjusting your filters or wait for employees to log caller annotations.

@if($leads->hasPages()) @endif
{{-- Update Status Modal --}} @endsection @section('scripts') @endsection