{{-- resources/views/agent/leads/partials/assigned.blade.php --}} @php // Fallback life options if not provided by controller $lifeInsuranceTypes = $lifeInsuranceTypes ?? ($insuranceTypes ?? [ 'term_life' => 'Term Life', 'whole_life' => 'Whole Life', 'final_expense' => 'Final Expense', 'iul' => 'Index Universal Life (IUL)', ]); $mortgageOptionKey = $mortgageInsuranceType ?? 'mortgage_protection'; $mortgageOptionLabel = 'Mortgage Protection'; @endphp
Assigned Leads
{{-- Life Leads Tab --}}
@if ($assignedLifeLeads->isEmpty())

No assigned life leads available.

@else
{{-- NEW: Lead Type header --}} @foreach ($assignedLifeLeads as $lead) {{-- ✅ Convert to Client (Life): select + button --}} {{-- NEW: Lead Type cell --}} @endforeach
First Name Last Name Phone Email Age Date of Birth Address City State Zipcode County Insurance TypeLead Type Status
{{ $lead->first_name }} {{ $lead->last_name }} {{ $lead->phone_number }} {{ $lead->email }} {{ $lead->age }} {{ $lead->date_of_birth }} {{ $lead->address }} {{ $lead->city }} {{ $lead->state }} {{ $lead->zipcode }} {{ $lead->county }}
@csrf
Assigned
@endif
{{-- Mortgage Protection Leads Tab --}}
@if ($assignedMortgageLeads->isEmpty())

No assigned mortgage protection leads available.

@else
{{-- NEW: Lead Type header --}} @foreach ($assignedMortgageLeads as $lead) {{-- ✅ Convert to Client (Mortgage): fixed insurance type --}} {{-- NEW: Lead Type cell --}} @endforeach
First Name Last Name Phone Email Age Date of Birth Mortgage Lender Address City State Zipcode County Insurance TypeLead Type Status
{{ $lead->first_name }} {{ $lead->last_name }} {{ $lead->phone_number }} {{ $lead->email }} {{ $lead->age }} {{ $lead->date_of_birth }} ${{ number_format($lead->mortgage, 2) }} {{ $lead->lender }} {{ $lead->address }} {{ $lead->city }} {{ $lead->state }} {{ $lead->zipcode }} {{ $lead->county }}
@csrf {{ $mortgageOptionLabel }}
Assigned
@endif