@include('admin.header') @php use App\Traits\CommonTrait; @endphp
@include('admin.topbar') @include('admin.leftbar')

Lead List

New Leads

{{ $counts['new'] ?? 0 }}

Contacted

{{ $counts['contacted'] ?? 0 }}

Interested

{{ $counts['interested'] ?? 0 }}

Converted

{{ $counts['converted'] ?? 0 }}

Lost

{{ $counts['lost'] ?? 0 }}

Total Leads

{{ $counts['total'] ?? 0 }}

Lead Management
@php $i=1; @endphp @foreach($lead_array as $list_data) @php $userName = CommonTrait::getUserName($list_data->lead_added_by); @endphp @php $i++ @endphp @endforeach
# Lead Name Contact / Address Service / Detail Status Follow-up Remarks Jivocare POC Actions
{{$i}} {{$list_data->customer_name}}
{{$list_data->email_id}}
Gender: {{$list_data->gender}} Age: {{$list_data->age ?? 'N/A'}}
{{$list_data->contact_no}}
{{$list_data->address}}
{{-- Service Type Badge --}} @php $service = strtolower($list_data->service_type); $serviceClass = match($service) { 'doctor consultation' => 'bg-light text-primary', 'lab tests' => 'bg-light text-success', 'corporate wellness' => 'bg-light text-info', 'general consultation' => 'bg-light text-dark', default => 'bg-light text-muted' }; @endphp {{ $list_data->service_type }} {{-- Detail Badge --}}
@if($list_data->service_detail_type === 'doctor' && $list_data->doctor_name) ๐Ÿ‘จโ€โš•๏ธ {{ $list_data->doctor_name }} @elseif($list_data->service_detail_type === 'lab' && $list_data->test_package) ๐Ÿงช {{ $list_data->test_package }} @elseif($list_data->service_detail_type === 'corporate' && $list_data->company_name) ๐Ÿข {{ $list_data->company_name }} @elseif($list_data->service_detail_type === 'none' && $list_data->company_name) ๐Ÿท๏ธ {{ $list_data->company_name }} @else N/A @endif
@php $status = strtolower($list_data->status); $statusClass = match($status) { 'new' => 'bg-primary', 'contacted' => 'bg-warning text-dark', 'interested' => 'bg-info', 'converted' => 'bg-success', 'lost' => 'bg-danger', default => 'bg-secondary' }; @endphp {{ ucfirst($list_data->status) }} {{$list_data->follow_up_date ?? 'N/A'}}
๐Ÿ’ฌ {{ $list_data->remarks ?? 'โ€”' }}
{{ $userName }}
{{ $lead_lists->links('pagination::bootstrap-5') }}
@include('admin.footer')
Add Lead
{{ csrf_field() }}
@include('leads._form')
@include('admin.scripts')