@include('agent.leads.partials.assigned')
@include('agent.leads.partials.personal')
{{-- ==================== PURCHASED LEADS TAB ==================== --}}
@php
// Expected from controller; fallbacks supported
$pLife = $purchasedLifeLeads ?? ($lifePurchasedLeads ?? collect());
$pMortgage = $purchasedMortgageLeads ?? ($mortgagePurchasedLeads ?? collect());
$pHealth = $purchasedHealthLeads ?? ($healthPurchasedLeads ?? collect());
$currentPurchasedTab = request('ptype', 'life'); // 'life' | 'mortgage' | 'health'
// Status set aligns with your example (capitalized)
$statusOptions = ['New', 'Contacted', 'Qualified', 'Closed', 'Unresponsive'];
$insuranceOptions = [
'Term Life' => 'Term Life',
'Whole Life' => 'Whole Life',
'Universal Life' => 'Universal Life',
'Final Expense' => 'Final Expense',
'Mortgage Protection' => 'Mortgage Protection',
'Other' => 'Other',
];
@endphp
{{-- Header actions for Purchased --}}
{{-- Search / Filter (keeps user on Purchased tab with #purchased) --}}
{{-- Sub-tabs for purchased types --}}
{{-- Write changes --}}
{{-- ================== /PURCHASED LEADS TAB ================== --}}
@include('agent.leads.partials.social')