@extends('admin.layouts.app') Admin Portal Dashboard @section('content')
Leads are assigned to agents after 15 minutes of creation. Currently, all leads are from sign-up drop-off.
{{--
--}}

Column Visibility

@php $columns = [ 'lead_no' => 'Lead No', 'customer' => 'Customer', 'status' => 'Status', 'mobile' => 'Mobile', 'product' => 'Product', 'drop_off' => 'Drop Off', 'agent' => 'Agent', 'follow_up' => 'Follow Up', 'date_created' => 'Date Created', 'viewed' => 'Viewed', ]; @endphp @foreach ($columns as $key => $label) @endforeach
@forelse($leads as $lead) @empty @endforelse
Lead No Customer Status Mobile Product Drop Off Agent Follow Up Date Created
{{ $lead->lead_no }} {{ $lead->customer_name }} {{ $lead->status }} {{ $lead->mobile_number }} {{ $lead->product ?? '' }} {{ $lead->drop_off ?? '' }} {{ $lead->agent_name ?? '' }} @forelse ($lead->comments ?? [] as $key => $comment)
@if($key == 0) 1st Follow-Up: @elseif($key == 1) 2nd Follow-Up: @elseif($key == 2) 3rd Follow-Up: @endif {{ $comment->outcome ?? $comment->comment }}
{{ \Carbon\Carbon::parse($comment->created_at)->setTimezone('Asia/Karachi')->format('d M Y h:i a') }}
@empty No Follow-Ups @endforelse
{{ \Carbon\Carbon::parse($lead->lead_assigned_at)->setTimezone('Asia/Karachi')->format('d M Y h:i a') }}
No records found
{{ $leads->links() }}
@endsection