Lead Management({{ @$totalCandidatesCount }})
{{-- --}}
Follow Ups
@if (userCan('candidate.create'))
{{-- Create lead --}}
Create lead
@endif
Test Preparation {{-- 0 --}}
| ID | Name | @if(!empty(request('daterange')) && !empty(request('daterangeCreated')))Assign Date | Cr. Date | @elseif (!empty(request('daterange')))Assign Date | @elseif (!empty(request('daterangeCreated')))Cr. Date | @elseif (checkleadManagerEnvRole())Assign Date | @elseCr. Date | @endifMobile Number | Cat. | Type |
Preferred Country | {{--Intake | --}}Intake Month | Intake Year | TAT | Sub Stages |
Assign To @if(userCan('admin.assign')) |
Assign Rm @if(userCan('candidate.assignedRm')) |
Last Comment/Next Followup | @if ($candidates->count() > 0) @foreach ($candidates as $candidate) | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
{!! sourceToIconWithCompaign_name(@$candidate->user->source ,@$candidate->campaign_name)!!} @if(!$candidate->interested_webinar->isEmpty() && $candidate->interested_webinar->first()->webinar && $candidate->interested_webinar->first()->webinar->dateTime)W Webinar Date :{{ dateMonthFormat(@$candidate->interested_webinar[0]->webinar->dateTime) }} Webinar Title : {{ @$candidate->interested_webinar[0]->webinar->webinar_name }} {{ ucwords(substr(adminIdToNameGet(@$candidate->user->assign_from), 0, 1)) }} Title :Assigned from {{ ucwords(adminIdToNameGet(@$candidate->user->assign_from)) }} @if(!empty(@$candidate->user->assign_date)) on ({{ dateMonthFormat(@$candidate->user->assign_date) }}) @endif |
@php
$jsonServiceString = str_replace(['"', '[', ']'], '', @$candidate->user->service_id);
$service_ids = explode(",", $jsonServiceString);
$counter = 0;
@endphp
@if(!empty(@$service_ids) && !empty(@$service_ids[0]))
@if(!empty(@$candidate->orders_status_paid) && @$candidate->orders_status_paid->count() > 0)
Services:
@forelse ($services as $service)
@if (in_array($service['id'], $service_ids) && $service['name'] != "Overseas Education")
@php
$counter++;
@endphp
{{ $counter }} {{ $service['name'] }}@if (!$loop->last),@endif
@endif
@empty
@endforelse
@endif
P
{{--
Payment Detail --}} @foreach ($candidate->orders_status_paid as $key => $order) @if($key > 0)@endif Order Id :{{ $order->id }} @if(!empty(@$order->plan->title))Plan Name :{{ @$order->plan->title }} Plan Expiry Date :@if(!empty(@$order->plan->duration) && !empty(@$order->plan->created_at)){{ dateMonthFormat(@$order->plan->created_at->addDays(@$order->plan->duration)) }} @else -- @endif @endif @endforeach |
@if(!empty(request('daterange')) && !empty(request('daterangeCreated')))
@if (!empty($candidate->user->assign_date))
{{ date('d M y', strtotime($candidate->user->assign_date)) }} {{ date('h:i A', strtotime($candidate->user->assign_date)) }} @else -- @endif |
@if (!empty($candidate->user->created_at))
{{ date('d M ', strtotime($candidate->user->created_at)) }} {{ date('h:i A', strtotime($candidate->user->created_at)) }} @else -- @endif |
@elseif (!empty(request('daterange')))
@if (!empty($candidate->user->assign_date))
{{ date('d M y', strtotime($candidate->user->assign_date)) }} {{ date('h:i A', strtotime($candidate->user->assign_date)) }} @else -- @endif |
@elseif (!empty(request('daterangeCreated')))
@if (!empty($candidate->user->created_at))
{{ date('d M y', strtotime($candidate->user->created_at)) }} {{ date('h:i A', strtotime($candidate->user->created_at)) }} @else -- @endif |
@elseif (checkleadManagerEnvRole())
@if (!empty($candidate->user->assign_date))
{{ date('d M y', strtotime($candidate->user->assign_date)) }} {{ date('h:i A', strtotime($candidate->user->assign_date)) }} @else -- @endif |
@else
@if (!empty($candidate->user->created_at))
{{ date('d M y', strtotime($candidate->user->created_at)) }} {{ date('h:i A', strtotime($candidate->user->created_at)) }} @else -- @endif |
@endif
@if(!empty($candidate->user->country_code)) + {{ @$candidate->user->country_code }} @endif {{ @$candidate->user->phone }} | @if(@$candidate->student_category == 'Gold')-- | @endif {{-- @if(@$candidate->user->lead_type == 'Hot')Hot | @elseif(@$candidate->user->lead_type == 'Cold')Cold | @elseif(@$candidate->user->lead_type == 'Warm')Warm | @else-- | @endif --}}@php $jsonString = str_replace(['"', '[', ']'], '', @$candidate->destination[0]->preferred_country); $preferred_country_ids = explode(",", $jsonString); $preferredCountryNames = []; foreach ($preferred_country_ids as $preferred_country_id) { $preferredCountryName = countriesIdToNameGet($preferred_country_id); // Replace with your actual function call $preferredCountryNames[] = $preferredCountryName; } @endphp @if($preferredCountryNames) {{ @$preferredCountryNames[0] }} @else -NA- @endif | @if(!empty(@$candidate->destination[0]->intake_months)) @php $intake_months = explode(",", @$candidate->destination[0]->intake_months); @endphp@if($intake_months) {{ @$intake_months[0] == "" ? @$intake_months[1] : @$intake_months[0] }}@if(count($intake_months) > 1)... @endif @else -- @endif | @else-- | @endif @if(!empty(@$candidate->destination[0]->intake_years)) @php $intake_years = explode(",", @$candidate->destination[0]->intake_years); @endphp@if($intake_years) {{ @$intake_years[0] == "" ? @$intake_years[1] : @$intake_years[0] }}@if(count($intake_years) > 1)... @endif @else -- @endif | @else-- | @endif{!! optional($candidate->user)->id && optional($candidate->user)->stages ? AdminHelper::leadManagementTAT($candidate->user->id, $candidate->user->stages, $candidate->user->created_at) : '--' !!} | {{-- {{ @$candidate->user->stages ?? "--" }} --}} @php $document_names_array = array( 'Class 10 Marksheet', 'Class 12 Marksheet', 'Bachelors Degree', 'Masters Degree', 'Diploma', 'Resume', ); $additional_document_names_array = array( 'LOR 1', 'LOR 2', 'SOP' ); $found_value = []; $document_name_toggle_string = "-NA-"; $additional_found_value = []; $additional_document_name_toggle_string = "-NA-"; if (!empty(@$candidate->documents)) { foreach (@$candidate->documents as $key => $value) { if ($value->document_subcategory_id == 37) { $found_value[] = 'Class 10 Marksheet'; } elseif ($value->document_subcategory_id == 12) { $found_value[] = 'Class 12 Marksheet'; } elseif ($value->document_subcategory_id == 10) { $found_value[] = 'Bachelors Degree'; } elseif ($value->document_subcategory_id == 11) { $found_value[] = 'Masters Degree'; } elseif ($value->document_subcategory_id == 38) { $found_value[] = 'Diploma'; } elseif ($value->document_subcategory_id == 1) { $found_value[] = 'Resume'; } elseif ($value->document_subcategory_id == 2) { $additional_found_value[] = 'LOR 1'; } elseif ($value->document_subcategory_id == 3) { $additional_found_value[] = 'LOR 2'; } elseif ($value->document_subcategory_id == 5) { $additional_found_value[] = 'SOP'; } } // Keep only unique values $found_value = array_unique($found_value); $additional_found_value = array_unique($additional_found_value); $unique_value = array_diff($document_names_array, $found_value); $document_name_toggle_string = implode(', ', $unique_value); $additional_unique_value = array_diff($additional_document_names_array, $additional_found_value); $additional_document_name_toggle_string = implode(', ', $additional_unique_value); } @endphp @if(@$candidate->user->stages == 'Additional Documents required') @endif | @if(userCan('admin.assign')){{-- | --}} @else | @if(!empty($candidate->user->assign_to)) {{ ucwords(adminIdToNameGet($candidate->user->assign_to)) }} @else NA @endif | @endif @if(userCan('candidate.assignedRm')){{-- | --}} @else | @if(!empty($candidate->user->assigned_rm)) {{ ucwords(adminIdToNameGet($candidate->user->assigned_rm)) }} @else NA @endif | @endif
@if(!$candidate->followup->isEmpty())
{{ dateMonthFormat(@$candidate->followup[0]->created_at) }}
{{@$candidate->followup[0]->comment}}
@foreach (@$candidate->followup as $key => $value)
@if ($key >= 5)
@break
@endif
Name :{{adminIdToNameGet(@$value->admin_id)}} Status :{{ @$value->follow_up_status }} Date :{{ dateMonthTimeFormat(@$value->created_at) }} @if(!empty(@$value->datetime))Next Date :{{ dateMonthTimeFormat(@$value->datetime) }} @endifComment :{{@$value->comment}} @endforeach |
|
|||||
| {{ __('no_data_found') }} | |||||||||||||||||||||||||||||||||
-
Cat. :
- Type : Hot
- Student ID : 20001 P
-
Cr. Date :
23 Sep, 23 02:29 PM
- Student Name : Ashish lamba W
- Mobile Number : +91 1234567895
- Preferred Country : USA
- Intake : Nov-2023
- TAT : 20
- Sub Stages : Inquiry
-
Last Comment/Next Followup :
28 Sep, 23 Call Busy
-
Cat. :
- Type : Cold
- Student ID : 20002
-
Cr. Date :
23 Sep, 23 02:29 PM
- Student Name : Ashok Kumar Meghwal
- Mobile Number : +91 2154368547
- Preferred Country : Australia
- Intake : Jan-2024
- TAT : 20
- Sub Stages : University to be Suggested
-
Last Comment/Next Followup :
28 Sep, 23 Student is from Haryana
-
Cat. :
- Type : Warm
- Student ID : 20005
-
Cr. Date :
23 Sep, 23 02:29 PM
- Student Name : Nagaarjun Reddy Annapureddy
- Mobile Number : +91 7485961542
- Preferred Country : United kingdom
- Intake : Nov-2023
- TAT : 20
- Sub Stages : Counselling
-
Last Comment/Next Followup :
28 Sep, 23 Wants to go UK or Canada