@extends('admin.layouts.app') @section('title', 'Leads') @section('page-title', 'Lead Management') @section('content') {{-- Stats row --}}
@php $statCards = [ ['Total', $stats['total'], 'bg-blue-50 text-blue-700 border-blue-100'], ['New', $stats['new'], 'bg-indigo-50 text-indigo-700 border-indigo-100'], ['Contacted', $stats['contacted'], 'bg-yellow-50 text-yellow-700 border-yellow-100'], ['Enrolled', $stats['enrolled'], 'bg-green-50 text-green-700 border-green-100'], ['Today', $stats['today'], 'bg-purple-50 text-purple-700 border-purple-100'], ]; @endphp @foreach($statCards as [$label, $val, $classes])

{{ $val }}

{{ $label }}

@endforeach
{{-- Filters --}}
@if(request()->hasAny(['search','status','country_id','assigned_to'])) Clear @endif
{{-- Table --}}
{{ $leads->total() }} leads found
@if($leads->isEmpty())

No leads found.

@else
@foreach($leads as $lead) @endforeach
# Contact Status Actions
#{{ $lead->id }}

{{ $lead->name ?: '—' }}

{{ $lead->phone }}

@if($lead->email)

{{ $lead->email }}

@endif
{{ $lead->statusLabel() }}
@csrf @method('DELETE')
@if($leads->hasPages())
{{ $leads->links() }}
@endif @endif
@endsection