@extends(request()->routeIs('admin.*') ? 'layouts.admin' : 'layouts.user') @section('content')

Lead Management

Track and manage potential security contracts.

@if(!request()->routeIs('admin.*')) + New Lead @endif

New Leads

{{ $counts['new'] }}

Active Pipeline

{{ $counts['active'] }}

Won Deals

{{ $counts['won'] }}

@forelse($leads as $lead) @empty @endforelse
Lead Name Company / Site Status Created By Next Action
{{ $lead->name }}
{{ $lead->job_title ?? 'No Title' }}
@if($lead->company_name)
{{ $lead->company_name }}
@endif
{{ $lead->site_location ?? 'No Location' }}
@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) }}
{{ $lead->creator->name ?? 'System' }}
{{ $lead->created_at->format('M d, Y') }}
@if($lead->next_follow_up_date)
{{ $lead->next_follow_up_date->format('M d') }}
{{ $lead->next_action ?? 'Follow Up' }}
@else No scheduled action @endif

No leads found in this view.

Try adjusting filters or create a new lead.

{{ $leads->links() }}
@endsection