@extends('layouts.admin') @section('title', 'Admin - Lead Management') @section('page_title', 'All Leads') @section('content')

All Leads

Monitor and manage all leads across the system.

Reset
@forelse($leads as $lead) @empty @endforelse
Lead Name Company Created Date Status Assigned To Action
{{ $lead->name }}
{{ $lead->job_title }}
{{ $lead->company_name ?? '-' }}
{{ $lead->site_location }}
{{ $lead->created_at->format('M d, Y') }} @php $colors = [ 'new' => 'bg-blue-100 text-blue-700', 'contacted' => 'bg-amber-100 text-amber-700', 'matured' => 'bg-purple-100 text-purple-700', 'proposal' => 'bg-indigo-100 text-indigo-700', 'won' => 'bg-emerald-100 text-emerald-700', 'lost' => 'bg-gray-100 text-gray-500', 'disqualified' => 'bg-red-100 text-red-700', ]; @endphp {{ ucfirst($lead->status) }} @if($lead->assignee)
{{ substr($lead->assignee->name, 0, 1) }}
{{ $lead->assignee->name }}
@else Unassigned @endif
View
No leads found matching your criteria.
{{ $leads->withQueryString()->links() }}
@endsection