@extends('admin.layouts.app') @section('title') {{ __('customer_list') }} @endsection @php use Carbon\Carbon; @endphp @section('content')

{{ __('customer_list') }} ({{ @$totalCandidatesCount }})

@if (userCan('candidate.create')) {{ __('create') }} @endif @if (userCan('candidate.delete')) @endif Sort By:
{{--
--}}
{{-- Table --}}
@if (userCan('candidate.delete')) @if ($candidates->count() > 1) @endif @endif {{-- --}} {{-- --}} @if (userCan('candidate.update')) {{-- --}} @endif @if (userCan('candidate.update')) {{-- --}} @endif {{-- --}} @if (userCan('admin.assign')) @endif @if (userCan('candidate.update') || userCan('candidate.delete')) @endif @if (userCan('candidate.delete')) @else @endif {{-- --}} @if (userCan('admin.assign')) @endif @if (request('name') || request('student_category') || request('intake') ||request('id') || request('email') || request('source') || request('phone') || request('daterange') || request('country') || request('daterange_activity') || request('stages') || request('followUp')) @else @endif @if ($candidates->count() > 0) @foreach ($candidates as $candidate) @if (userCan('candidate.delete')) @if ($candidate->count() > 1) @endif @endif {{-- --}} {{-- --}} @if(!empty(@$candidate->destination[0]->intake)) @else @endif @if (userCan('candidate.update')) {{-- --}} @endif @if (userCan('candidate.update')) {{-- --}} @endif @if (userCan('admin.assign')) @endif {{-- --}} @if (userCan('candidate.update') || userCan('candidate.delete')) @endif {{-- @if (userCan('candidate.update') || userCan('candidate.delete')) @endif --}} @endforeach @else @endif
ID {{ __('student') }}{{ __('role') }}/{{ __('position') }}{{ __('applied_jobs') }}{{ __('country') }} {{ __('phone') }} {{ __('Source') }} {{ __('Stage') }} {{ __('intake') }} {{ __('category') }}{{ __('account') }} {{ __('status') }}{{ __('email_verification') }}{{ __('joined_date') }}{{ __('create') }} {{ __('date') }} {{ __('last') }} {{ __('activity') }}Assign ToFollow up{{ __('action') }}
{{-- --}} {{-- --}} {{-- --}} @error('start_date') {{ $message }} @enderror @error('start_date') {{ $message }} @enderror @if (request('name') || request('student_category') || request('intake') || request('id') || request('email') || request('source') || request('phone') || request('daterange') || request('daterange_activity') || request('stages') || request('followUp') || request('country')) @endif
user_id }} class="sub_chk" id="checkbox{{ $candidate->user_id }}">
{{ $candidate->user_id }} {{-- image --}}

{{ @$candidate->user->name }} {{ @$candidate->user->middle_name }} {{ @$candidate->user->last_name }}

{{ $candidate->user->email }}

{{ $candidate->jobRole->name }}

{{ $candidate->applied_jobs_count }} {{ __('applied_jobs') }} {{ @$candidate->user->country }} @if(!empty($candidate->user->country_code)) + {{ @$candidate->user->country_code }} @endif {{ @$candidate->user->phone }} {{ @$candidate->user->source }} {{ @$candidate->user->stages }} {{ @$candidate->destination[0]->intake }} -- @if(@$candidate->student_category == 'Gold') @elseif(@$candidate->student_category == 'Silver') @elseif(@$candidate->student_category == 'Bronze') @else -- @endif

{{ $candidate->user->status == 1 ? __('activated') : __('deactivated') }}

{{ $candidate->user->email_verified_at ? __('verified') : __('unverified') }}

@if (!empty($candidate->user->created_at)) @if (Carbon::parse($candidate->user->created_at)->isToday()) {{ date('h:i A', strtotime($candidate->user->created_at)) }} @else {{ dateMonthTimeFormat($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)) {{dateMonthTimeFormat($candidate->user->last_activity_date)}} @endif
@if(!empty($candidate->user->assign_to)) {{ ucwords(adminIdToNameGet($candidate->user->assign_to)) }} @else NA @endif
@if(!$candidate->followup->isEmpty()) @if ($candidate->followup->count() > 0) @foreach ($candidate->followup as $key => $followup) @if($key == 4) @break @endif {{-- {{ dateMonthTimeFormatOne(@$followup->created_at) }} --}} @if($followup->follow_up_status == 'Not Connected') @if(!empty($followup->datetime)){{ dateMonthTimeFormatOne(@$followup->datetime) }}@else {{ dateMonthTimeFormatOne(@$followup->created_at) }}@endif @else @if(!empty($followup->datetime)){{ dateMonthTimeFormatOne(@$followup->datetime) }}@else {{ dateMonthTimeFormatOne(@$followup->created_at) }}@endif @endif {{-- @if($followup->followup_up == "yes") @if(!empty($followup->datetime)){{ dateMonthTimeFormatOne(@$followup->datetime) }}@else {{ dateMonthTimeFormatOne(@$followup->created_at) }}@endif @else {{ dateMonthTimeFormatOne(@$followup->created_at) }} @endif --}} @endforeach @endif @else Not Followed @endif
{{ Carbon\Carbon::parse($candidate->created_at)->format('d M, Y') }}
@if (userCan('candidate.view')) {{__('view_profile')}} @endif @if (userCan('candidate.update')) @endif @if (userCan('candidate.delete'))
@method('DELETE') @csrf
@endif
{{ __('no_data_found') }}
@if ($candidates->count())
{{ $candidates->onEachSide(1)->links() }}
@endif
@endsection @section('style') @endsection @section('script') @endsection