{{-- resources/views/admin/assigned-leads/unassigned.blade.php --}} @extends('layouts.contentLayoutMaster') @section('title', 'Unassigned Leads') @section('content')

Assign Leads to Agents

{{-- Summary + Filter --}}
Total Unassigned Leads: {{ $lifeLeads->count() + $mortgageLeads->count() }}
@if (session('success'))
{{ session('success') }}
@endif {{-- Tabs --}}
{{-- Life Leads --}}
@if ($lifeLeads->isEmpty())

No unassigned life leads found.

@else {{-- ASSIGN SELECTED (POST) --}}
@csrf
@foreach ($lifeLeads as $lead) @endforeach
First Name * Last Name * Phone * Email Age Date of Birth Address City State Zipcode County Insurance Type Status Action
{{ $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 }} {{ $lead->insurance_type ?? 'Life' }} {{ $lead->status ?? 'New' }} {{-- PER-ROW DELETE (NO NESTED FORM) --}}
@endif
{{-- Mortgage Protection Leads --}}
@if ($mortgageLeads->isEmpty())

No unassigned mortgage protection leads found.

@else {{-- ASSIGN SELECTED (POST) --}}
@csrf
@foreach ($mortgageLeads as $lead) @endforeach
First Name * Last Name * Phone * Email Age Date of Birth Mortgage Lender Address City State Zipcode County Insurance Type Status Action
{{ $lead->first_name }} {{ $lead->last_name }} {{ $lead->phone_number }} {{ $lead->email }} {{ $lead->age }} {{ $lead->date_of_birth }} @php $m = $lead->mortgage; echo is_numeric($m) ? '$' . number_format((float) $m, 2) : e($m); @endphp {{ $lead->lender }} {{ $lead->address }} {{ $lead->city }} {{ $lead->state }} {{ $lead->zipcode }} {{ $lead->county }} {{ $lead->insurance_type ?? 'Mortgage Protection' }} {{ $lead->status ?? 'New' }} {{-- PER-ROW DELETE (NO NESTED FORM) --}}
@endif
{{-- Standalone hidden DELETE form to avoid nesting --}}
@csrf @method('DELETE')
{{-- JS --}} @endsection