@php $counts = $counts ?? ['all'=>0,'whatsapp'=>0,'email'=>0,'not_crm'=>0]; @endphp {{-- Leaflet (free OpenStreetMap map — no API key). Loaded from CDN. --}}
{{-- Header --}}
{{ __('Audience · Prospecting') }}

{{ __('Lead') }} {{ __('finder') }}

{{ __('Pull businesses from the map by category and city, grab their WhatsApp number & email, then add them to Contacts or launch a campaign.') }}

@if ($hasGoogle ?? false) {{ __('Google Places') }} @else {{ __('OpenStreetMap · free') }} @endif
{{-- Data-source settings modal (BYOK Google key) --}} {{-- Search bar --}} {{-- Advanced: range + click-to-scan --}}
{{ __('Zoom to a place → click it, or use “Scan this area”. Leads load automatically.') }}
{{-- MAP --}}
{{ __('Live map') }} · {{ __('OpenStreetMap') }}
{{-- RESULTS --}}
{{-- List --}}
{{-- Empty / loading state --}}
{{ __('Search to find leads') }}

{{ __('Type a business category and a city, then hit Find on map.') }}

{{ __('Leads are saved to your workspace. Use responsibly, follow each platform’s terms, and respect consent before messaging.') }}
{{-- Bulk action bar (hidden until selection) --}}
{{-- Bootstrap saved leads for first paint --}} @php $lfSeed = $leads->map(fn ($l) => [ 'id' => $l->id, 'name' => $l->name, 'category' => $l->category, 'phone' => $l->phone, 'phone_e164' => $l->phone_e164, 'email' => $l->email, 'website' => $l->website, 'address' => $l->address, 'lat' => $l->lat, 'lng' => $l->lng, 'in_crm' => (bool) $l->in_crm, ])->values(); @endphp