@extends('layouts.admin.master') @section('title')Lead {{ $title }} @endsection @push('css') @endpush @section('content') @php $fList_arr = $fList->toArray(); $task_list = array_diff(array_column($fList_arr,'nextFollowupDate'),['']); $task_count = count($task_list); $call_feed_arr = array(); $counter = 1; $user_arr = array(); $userWise_arr_count = array_count_values(array_column($fList_arr,'followupBy')); $leadUserList = getUserList('Lead|Admission'); $userWise = []; foreach($leadUserList as $lead_user) { $userWise[$lead_user->name] = isset($userWise_arr_count[$lead_user->id]) ?$userWise_arr_count[$lead_user->id] : 0; } list($userWise_x,$userWise_y) = getGraphData($userWise); $call_dispositionList = getLeadFeedbackType("Call"); $feedback_list = array_count_values(array_diff(array_column($fList_arr,'feedbackType'),[''])); # // $feedback_list = array_count_values(array_column(array_diff(array_column($fList_arr,'nextFollowupDate'),['']),'feedbackType')); $callingFeedback = []; foreach($call_dispositionList as $dis_key=>$dis_value) { $callingFeedback[$dis_value] = isset($feedback_list[$dis_value]) ? $feedback_list[$dis_value] : 0; } list($callingWise_x,$callingWise_y) = getGraphData($callingFeedback); Session::forget('page') @endphp
Total Lead

{{$total}}

Today lead

{{$today}}

Today Register

{{$todayFollowupCount}}

Task Created today

{{$task_count}}

Source wise
Follow type
@php $count = 1; $userList = getUserList(); $courseList = getCourse('All'); $courseArr = $courseList->toArray(); $courseArr = array_column($courseArr,'courseName','courseId'); @endphp @foreach($fList as $list) @endforeach
* # Date Name Contact Course FUP-BY Mode At #
dd {{$count++}} {{$list->enquireDate}} {{$list->Name}} {{$list->PrimaryContact}} {{$list->ForClass ? $courseArr[$list->ForClass] :""}} {{$list->followupBy ? $userList[$list->followupBy] : 'Not Assigned'}}
{{$list->followupType}}
{{$list->fDate}}
{{$list->feedbackType ? $list->feedbackType : "N/A"}}
    @push('scripts') @endpush @endsection