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

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

@if (userCan('candidate.delete')) @endif
@csrf
@if (userCan('candidate.delete')) @else @endif
{{-- --}}
@php $countries_data = request('country_id') ? array_map(fn($country) => ['id' => $country], request('country_id')) : []; @endphp {{-- --}}
{{-- --}}
{{-- --}}
{{-- --}}
{{-- --}}
@error('start_date') {{ $message }} @enderror
@error('start_date') {{ $message }} @enderror
{{-- @php $getStagesArray = get_stages_array(); $stages = request('stages') ? array_map(fn($stage) => ['name' => $stage], request('stages')) : []; @endphp --}}
{{-- --}} {{-- --}} {{-- @php $intake_years = request('intake_month') ? array_map(fn($intake_year) => ['name' => $intake_year], request('intake_month')) : []; @endphp --}}
@php $intake_months = request('intake_month') ? array_map(fn($intake_month) => ['name' => $intake_month], request('intake_month')) : []; @endphp {{-- --}}
@if (userCan('admin.assign') || userCan('admin.assign_list'))
@php $assign_to_value = request('assign_to') ? array_map(fn($assign_to_value) => ['name' => $assign_to_value], request('assign_to')) : []; @endphp
@endif
@php $getStagesArray = get_stages_array(); $stages = request('stages') ? array_map(fn($stage) => ['name' => $stage], request('stages')) : []; @endphp
@if (1 == 1) @if (userCan('export.candidateReport')) {{-- --}} @if ($candidates->count() < 1000 && $candidates->count() > 0) @endif
@if (1 == 1) @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_years)) @else @endif @if (!empty(@$candidate->destination[0]->intake_months)) @else @endif @if (userCan('admin.assign')) @elseif(userCan('admin.assign_list')) @else @endif @if (userCan('candidate.update') || userCan('candidate.delete')) @endif @endforeach @else @endif
ID {{ __('student') }} {{ __('Passport Country') }} {{ __('residence Country') }} {{ __('phone') }} {{ __('Source') }} {{ __('Stage') }} {{ __('Intake Year') }} {{ __('Intake Month') }} {{ __('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 }}

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

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

{{ @$candidate->passportCountry->name }} {{ @$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 }} {{ str_replace(',', ' ', @$candidate->destination[0]->intake_years) }} --{{ str_replace(',', ' ', @$candidate->destination[0]->intake_months) }} -- @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->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 @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 @endforeach @endif @else Not Followed @endif
{{ __('no_data_found') }}
@if ($candidates->count())
{{ $candidates->onEachSide(1)->links() }}
@endif @endif
@endsection @section('style') @endsection @section('script') @endsection