{{ $pageTitle }} @if($myLeads) — assigned to me @endif
@if($myLeads) Your personal lead pipeline @else All leads across the team @endif
{{ $leads->total() }} Leads
| Lead | Source | Interested In | Budget | Status | Assigned | Last Activity | Actions |
|---|---|---|---|---|---|---|---|
|
{{ $lead->name }}
{{ $lead->phone }}
@if($lead->email)
{{ $lead->email }}
@endif
|
{{ $src['icon'] }} {{ $src['label'] }} | {{ $lead->interested_in ?: '—' }} | {{ $lead->budgetRange($currency) }} |
{{ $sc['label'] }}
@if($lead->latestFollowUp)
{{ $lead->latestFollowUp->typeConfig()['icon'] }}
{{ $lead->latestFollowUp->created_at->diffForHumans() }}
@endif
|
{{ $lead->assignedAgent?->name ?? '—' }} | {{ $lead->last_contacted_at ? $lead->last_contacted_at->diffForHumans() : $lead->created_at->diffForHumans() }} | |
| No leads found. Create one → | |||||||
Landing Page API Integration Click to expand — give this to your developer
| Field | Type | Required | Description |
|---|---|---|---|
{{ $f }} |
{{ $t }} | {{ $r }} | {{ $d }} |
{
"success": true,
"message": "Thank you! We will contact you shortly."
}
{
"error": "Unauthorized."
}
// 429 - Too many attempts:
{
"error": "Too many submissions. Try again in 45 seconds."
}
async function submitLead(data) {
const res = await fetch('{{ url('/api/landing/lead') }}', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-Landing-Key': 'YOUR_API_KEY_HERE',
},
body: JSON.stringify({
name: data.name, // required
phone: data.phone, // required
country_code: '+91',
email: data.email,
interested_in: data.interested_in,
preferred_contact_time: data.contact_time,
notes: data.message,
utm_source: new URLSearchParams(location.search).get('utm_source'),
utm_medium: new URLSearchParams(location.search).get('utm_medium'),
utm_campaign: new URLSearchParams(location.search).get('utm_campaign'),
landing_page: 'your-page-name-here',
}),
});
const json = await res.json();
if (res.ok) alert(json.message);
}