@extends('admin.layouts.app') @section('title') {{ __('customer_list') }} @endsection @php use Carbon\Carbon; @endphp @section('content')
|
|
@endif
@endif
ID | {{ __('student') }} | Preferred Country | {{ __('phone') }} | {{ __('Source') }} | {{ __('Stage') }} | {{ __('intake') }} | {{ __('category') }} | @if (userCan('candidate.update')) {{--{{ __('account') }} {{ __('status') }} | --}} @endif @if (userCan('candidate.update')) {{--{{ __('email_verification') }} | --}} @endif {{--{{ __('joined_date') }} | --}}{{ __('create') }} {{ __('date') }} | {{ __('last') }} {{ __('activity') }} | @if (userCan('admin.assign') || userCan('admin.assign_list'))Assign To | @endifAssign RM | Follow up | @if (userCan('candidate.update') || userCan('candidate.delete')){{ __('action') }} | @endif|||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
user_id }}
class="sub_chk" id="checkbox{{ $candidate->user_id }}">
|
@endif
@endif
{{ $candidate->user_id }} |
{{-- {{ @$candidate->user->name }} {{ @$candidate->user->middle_name }} {{ @$candidate->user->last_name }} @if(!empty(@$candidate->user->assign_from)) {{ ucwords(substr(adminIdToNameGet(@$candidate->user->assign_from), 0, 2)) }} @endif @if(@$candidate->open_auth_id && Carbon::now()->format('Y-m-d H:i:s') <= $candidate->open_date_time) @endif{{ @$candidate->user->email }} |
{{--
{{ $candidate->jobRole->name }} | --}}
{{-- {{ $candidate->applied_jobs_count }} {{ __('applied_jobs') }} | --}}{{-- {{ @$candidate->user->country }} --}} @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->user->country_code)) + {{ @$candidate->user->country_code }} @endif {{ @$candidate->user->phone }} | {!! sourceToIcon(@$candidate->user->source) !!} | {{ @$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') @elseif(@$candidate->user->stages == 'Document pending') @endif | @if(!empty(@$candidate->destination[0]->intake)){{ @$candidate->destination[0]->intake }} | @else-- | @endif@if(@$candidate->student_category == 'Gold') @elseif(@$candidate->student_category == 'Silver') @elseif(@$candidate->student_category == 'Bronze') @else -- @endif | @if (userCan('candidate.update')) {{--
{{ $candidate->user->status == 1 ? __('activated') : __('deactivated') }} | --}}
@endif
@if (userCan('candidate.update'))
{{--
{{ $candidate->user->email_verified_at ? __('verified') : __('unverified') }} | --}}
@endif
@if (!empty($candidate->user->created_at)) @if (Carbon::parse($candidate->user->created_at)->isToday()) {{ date('h:i A', strtotime($candidate->user->created_at)) }} @else {{ date('d M', strtotime($candidate->user->created_at)) }} @endif @endif {{-- @if(!empty($candidate->user->created_at)) {{dateMonthTimeFormat($candidate->user->created_at)}} @endif --}} | @if(!empty($candidate->user->last_activity_date)) {{ date('d M', strtotime($candidate->user->last_activity_date)) }} @else -- @endif | @if (userCan('admin.assign'))
@if(!empty($candidate->user->assign_to))
{{ ucwords(adminIdToNameGet($candidate->user->assign_to)) }}
@else
NA
@endif
|
@elseif(userCan('admin.assign_list'))
@if(!empty($candidate->user->assign_to))
{{ ucwords(adminIdToNameGet($candidate->user->assign_to)) }}
@else
NA
@endif
|
@endif
@if (userCan('candidate.assignedRm'))
@if(!empty($candidate->user->assigned_rm))
{{ ucwords(adminIdToNameGet($candidate->user->assigned_rm)) }}
@else
NA
@endif
|
@else
@if(!empty($candidate->user->assigned_rm))
{{ ucwords(adminIdToNameGet($candidate->user->assigned_rm)) }}
@else
NA
@endif
|
@endif
@if(@$candidate->user->assign_to)
@if(!@$candidate->user->myFollowups->isEmpty())
@if (@$candidate->user->myFollowups->count() > 0)
@foreach (@$candidate->user->myFollowups as $key => $followup)
@if($key == 4)
@break
@endif
@if($followup->follow_up_status == 'Not Connected')
{{ dateMonthTimeFormatOne(@$followup->created_at) }}
@else
{{ dateMonthTimeFormatOne(@$followup->created_at) }}
@endif
@endforeach
@endif
@else
Not Followed
@endif
@else
@if(!$candidate->followup->isEmpty())
@if ($candidate->followup->count() > 0)
@foreach ($candidate->followup as $key => $followup)
@if($key == 4)
@break
@endif
@if($followup->follow_up_status == 'Not Connected')
{{ dateMonthTimeFormatOne(@$followup->created_at) }}
@else
{{ dateMonthTimeFormatOne(@$followup->created_at) }}
@endif
@endforeach
@endif
@else
Not Followed
@endif
@endif
|
{{-- {{ Carbon\Carbon::parse($candidate->created_at)->format('d M, Y') }} | --}} @if (request('trashed') === 'true')@if (userCan('candidate.restore')) @endif | @else @if (userCan('candidate.update') || userCan('candidate.delete'))
|
@endif
@endif
{{-- @if (userCan('candidate.update') || userCan('candidate.delete'))
@if (userCan('candidate.view'))
{{__('view_profile')}}
|
@endif --}}
| {{ __('no_data_found') }} | ||||||||||||||||||||||||