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

{{ __('customer') }} {{ __('report') }} ({{ @$totalCandidatesCount }})

@if (userCan('candidate.delete')) @endif
@csrf
@if (userCan('candidate.delete')) @else @endif
@error('start_date') {{ $message }} @enderror
@error('start_date') {{ $message }} @enderror
{{-- --}}
@if (userCan('admin.assign') || userCan('admin.assign_list'))
@endif
@if (request('name') || request('assign_to') || request('preferred_country') || request('student_category') || request('intake') || request('id') || request('email') || request('source') || request('phone') || request('daterange') || request('country') || request('daterange_activity') || request('stages') || request('followUp')) @if (userCan('export.candidateReport')) {{-- --}} @endif @endif
{{-- --}}
{{--
@if (userCan('candidate.delete')) @else @endif @error('start_date') {{ $message }} @enderror @error('start_date') {{ $message }} @enderror @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')) @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 @else @endif
--}} {{-- Table --}}
@if (request('name') || request('assign_to') || request('preferred_country') || request('student_category') || request('intake') ||request('id') || request('email') || request('source') || request('phone') || request('daterange') || request('country') || request('daterange_activity') || request('stages') || request('followUp')) @if (userCan('candidate.delete')) @if ($candidates->count() > 1) @endif @endif @if (userCan('admin.assign') || userCan('admin.assign_list')) @endif @if (userCan('candidate.update') || userCan('candidate.delete')) @endif @if ($candidates->count() > 0) @foreach ($candidates as $candidate) @if (userCan('candidate.delete')) @endif @if(!empty(@$candidate->destination[0]->intake)) @else @endif @if (userCan('admin.assign')) @elseif(userCan('admin.assign_list')) @else @endif {{-- --}} @if (userCan('candidate.update') || userCan('candidate.delete')) @endif {{-- @if (userCan('candidate.update') || userCan('candidate.delete')) @endif --}} @endforeach @else @endif
ID {{ __('student') }} {{ __('country') }} {{ __('phone') }} {{ __('Source') }} {{ __('Stage') }} {{ __('intake') }} {{ __('category') }} {{ __('create') }} {{ __('date') }} {{ __('last') }} {{ __('activity') }}Assign ToFollow up{{ __('action') }}
@if ($candidate->count() > 1)
user_id }} class="sub_chk" id="checkbox{{ $candidate->user_id }}">
@endif
{{ $candidate->user_id }} {{-- image --}}

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

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

{{ @$candidate->user->country }} @if(!empty($candidate->user->country_code)) + {{ @$candidate->user->country_code }} @endif {{ @$candidate->user->phone }} {!! sourceToIcon(@$candidate->user->source) !!} {{-- {{ @$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 @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(!empty($candidate->user->assign_to)) {{ ucwords(adminIdToNameGet($candidate->user->assign_to)) }} @else NA @endif
@if(!empty($candidate->user->assign_to)) {{ ucwords(adminIdToNameGet($candidate->user->assign_to)) }} @else NA @endif
NA
@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 @endif
@endsection @section('style') @endsection @section('script') @endsection