@php $intake_names = explode(",", @$candidate->destination[0]->intake); // dd($intake_names); $jsonString = str_replace(['"', '[', ']'], '', @$candidate->destination[0]->preferred_country); $preferred_country_ids = explode(",", $jsonString); $last_names = array_column($candidate->educations->toArray(), 'qualification'); $index_10th = array_search('10th', $last_names); $index_12th = array_search('12th', $last_names); $index_Bachelor = array_search('Bachelors', $last_names); $index_Master = array_search('Masters', $last_names); $index_Diploma = array_search('Diploma', $last_names); $education_index = 5; $educations = @$candidate->educations ?? []; $can_educations_count = count($educations) + 1; $counter = 0; $education_boards = [ "Andhra Pradesh Board of Secondary Education", "Arunachal Pradesh State Board of School Education", "Assam Higher Secondary Education Council", "Bihar School Examination Board", "Central Board of Secondary Education (CBSE)", "Chhattisgarh Board of Secondary Education", "Council for the Indian School Certificate Examinations (CISCE)", "Goa Board of Secondary & Higher Secondary Education", "Gujarat Secondary and Higher Secondary Education Board", "Haryana Board of School Education", "Himachal Pradesh Board of School Education","Indian Certificate of Secondary Education (ICSE)", "Jammu & Kashmir State Board of School Education", "Jharkhand Academic Council", "Karnataka Secondary Education Examination Board", "Kerala State Board of Education", "Madhya Pradesh Board of Secondary Education", "Maharashtra State Board of Secondary & Higher Secondary Education", "Manipur State Board of Examination", "Meghalaya Board of School Education", "Mizoram Board of School Education", "Nagaland Board of School Education", "National Institute of Open Schooling (NIOS)", "Odisha Board of Secondary Education", "Punjab School Education Board", "Rajasthan Board of Secondary Education", "Sikkim Board of School Education", "Tamil Nadu State Board of Examination", "Telangana State Board of Intermediate Education", "Tripura Board of Secondary Education", "Uttar Pradesh Board of High School and Intermediate Education", "Uttarakhand Board of School Education", "West Bengal Board of Secondary Education", ]; $followup_upCloseStatusFound = false; // Initialize a variable to track whether 'close' is found foreach ($followups as $followup) { if (strpos($followup->followup_up, 'close') !== false) { $followup_upCloseStatusFound = true; // Set the variable to true when 'close' is found break; // Exit the loop when 'close' is found } } @endphp @extends('admin.layouts.app') @section('title') {{ __('edit_candidate') }} @endsection @section('content') @if (userCan('candidate.create'))
@csrf
@method('PUT') @csrf

({{ $candidate->user_id }}) {{ ucwords($candidate->user->name) }} @if(@$candidate->student_category == 'Gold') @elseif(@$candidate->student_category == 'Silver') @elseif(@$candidate->student_category == 'Bronze') @endif

{{ $candidate->user->email }} | {{ $candidate->user->country }} {{ $candidate->user->phone }}

{{-- --}} @if(!empty(@$candidate->destination[0]->intake)) Intake: {{ @$candidate->destination[0]->intake }} @endif @if(!empty(@$preferred_country_ids) && !empty(@$preferred_country_ids[0])) Preferred Country: @isset($countries) @foreach ($countries as $country) @foreach ($preferred_country_ids as $key => $preferred_country_id) @if($preferred_country_id == $country['id']) @php $counter++; @endphp @if ($loop->last) {{ $counter }} {{ $country['name'] }} @else {{ $counter }} {{ $country['name'] }}, @endif @endif @endforeach @endforeach @endisset @endif {{--

--}} {{--
@if (!$user->leads->isEmpty())
@forelse ($user->leads as $lead) @if ($lead->phone !== $candidate->user->phone)

+91 - {{ $lead->phone }}

@endif @empty

{{ __('no_data_found') }}...

@endforelse
@else

+91 - {{ $candidate->user->phone }}

@endif
--}}
{{-- --}} Follow up @if (userCan('candidate.sendWhatsApp')) @endif
@if(!empty(@$user->assign_to)) {{ ucwords(substr(adminIdToNameGet(@$user->assign_to), 0, 2)) }} @endif
{{ __('profile_details') }}
{{--
--}}
@error('student_category') {{ __($message) }} @enderror
@error('gender') {{ __($message) }} @enderror
@error('marital_status') {{ __($message) }} @enderror
{{--
--}}
@error('passport_number') {{ __($message) }} @enderror
{{--
@error('profession_id') {{ __($message) }} @enderror
@error('experience') {{ __($message) }} @enderror
@error('role_id') {{ __($message) }} @enderror
@error('education') {{ __($message) }} @enderror
--}}
birth_date)) value="{{ date('d-m-Y', strtotime($candidate->birth_date)) }}" @endif class="form-control datepickerBirth @error('birth_date') is-invalid @enderror" name="birth_date" id="birth_date" placeholder="{{ __('birth_date') }}"> @error('birth_date') {{ __($message) }} @enderror
{{--
@error('skills') {{ __($message) }} @enderror
@error('languages') {{ __($message) }} @enderror
--}}
@if(!empty($candidate->country_id))
@else
@endif @if(is_numeric($candidate->state_id))
@else
@endif @if(is_numeric($candidate->city_id))
@else
@endif
{{-- @if (userCan('admin.assign'))
@error('assign_to') {{ __($message) }} @enderror
@endif --}}
@error('notes') {{ $message }} @enderror
{{--
--}} {{--
--}}
{{--
--}} {{--
--}}
{{--
--}} @error('preferred_program') {{ __($message) }} @enderror {{--
--}}
{{--
--}} @error('intake') {{ __($message) }} @enderror {{--
--}}
@foreach ($candidate->educations as $key => $education) @php $skip = false; if ($index_10th !== false && $key == $index_10th) { $skip = true; } elseif ($index_12th !== false && $key == $index_12th) { $skip = true; } elseif ($index_Bachelor !== false && $key == $index_Bachelor) { $skip = true; } elseif ($index_Master !== false && $key == $index_Master) { $skip = true; } elseif ($index_Diploma !== false && $key == $index_Diploma) { $skip = true; } if ($skip) { continue; } $education_index++; @endphp @if(@$education->qualification == "12th") @elseif(@$education->qualification == "Diploma") @elseif(@$education->qualification == "Bachelors" || @$education->qualification == "Masters" || @$education->qualification == "PhD") @elseif(@$education->qualification == "Certification") @else @endif @if(@$education->qualification == "12th" || @$education->qualification == "10th" || @$education->qualification == "Diploma") @elseif(@$education->qualification == "Bachelors" || @$education->qualification == "Masters" || @$education->qualification == "PhD" ) @else @endif @if(@$education->qualification == "12th" || @$education->qualification == "10th") @else @endif @endforeach {{-- --}}
Qualification Stream/degree Institute Name Board/University Starting Year Passing Year Year Gaps Backlogs G/P Grade Type Medium Doc.
--
--
--
{{--
--}}
{{--
--}}
{{--
--}}
--
----
--
{{--
--}} {{--
candidate_exam->test_taken_date)) value="{{ date('d-m-Y', strtotime($candidate->candidate_exam->test_taken_date)) }}" @endif placeholder="Test Taken Date" />
--}}
{{-- adddded --}}
Exam Information
{{-- @if (count($candidate->candidate_exam) > 0) --}}
@foreach ($candidate->candidate_exam as $index => $exam) {{-- --}} @endforeach
# Test Type Test Name Test Scores Test Taken Date Test Result Date
{{ $index + 1 }} {{-- --}}
{{-- @else

No Data Found!...

@endif --}}
{{-- Suggest univercity adddded ////////////////////////////////////////////////////////////////////////// --}} {{--
Suggest University
@php // dd($candidate->suggest_university); @endphp @foreach (@$candidate->suggest_university as $index => $univrsitty) @endforeach
# University Name W/u Duration Intakes IELTS.s IELTS.no PTE.s PTE.no Y/F
{{ $index + 1 }}
--}}
Budget Fund Source Loan Type
{{-- remove --}}
Follow Up {{-- @if(@$followup->close_status == '1') --}} @if ($followup_upCloseStatusFound) Close Status: Yes @else Close Status: No @endif
@forelse (@$followups as $followup)
{{--
Comment: {{ @$followup->comment }}
--}}
{{ @$followup->type }} @if(@$followup->follow_up_status == 'Not Connected') Not Connected @else Connected @endif
{{--

Type: {{ @$followup->type }}

--}} {{--

Status: {{ @$followup->follow_up_status }}

--}}

Priority: {{ @$followup->priority }}

Followup: {{ @$followup->followup_up }}

Assign To: {{ ucwords(adminIdToNameGet(@$followup->assign_to)) }}

@if(@$followup->followup_up == "yes")

Followup Time: {{ dateMonthTimeFormat(@$followup->datetime) }}

@endif {{--

Close Status: @if(@$followup->close_status == '1') Yes @else No @endif

--}}

Comment:   {{ @$followup->comment }}

@empty

{{ __('no_data_found') }}...

@endforelse
@forelse (@$user->timeLine as $timeLine) @if (!empty($timeLine->event) == 1) @else @endif @if (@$timeLine->stages == "Assign To") @else @endif @if (!empty($timeLine->auth_id)) @else @endif @if (!empty($timeLine->created_at)) @else @endif @empty @endforelse
Event Stages Comment Change By Date & Time
AC SC--{{ @$timeLine->stages }}{{ $timeLine->comment }}{{ ucwords(adminIdToNameGet($timeLine->auth_id)) }}--{{ dateMonthTimeFormat($timeLine->created_at) }}--

{{ __('no_data_found') }}...

Loading...
{{-- --}}
{{--
--}}
@include('admin.layouts.partials.message') {{-- --}} {{-- --}} @php $i = 1; @endphp @forelse ($user->leads as $key => $lead) @php if($key == 0){ $description['campaign'] = null; $description = json_decode($lead->description, true); if(!empty($description['campaign'])){ @endphp @php } } @endphp {{-- --}} {{-- --}} @empty @endforelse
{{ __('s_no') }}{{ __('name') }} {{ __('email') }}{{ __('source') }} {{ __('url') }}{{ __('country') }}{{ __('created_date') }} {{ __('country') }}/{{ __('phone') }}
{{ $i++ }}

{{ substr($lead->name, 0, 27) }}

{{ $lead->email }} {{ $lead->source }} {{ $lead->url }} @if(!empty($lead->created_at)) {{dateMonthTimeFormat($lead->created_at)}} @endif @if (strpos($lead->country_id, '@#$?') !== false) @php $country_array = explode("@#$?", $lead->country_id); $country_name = reset($country_array); $country_code = end($country_array); @endphp {{ $country_name }}/{{ $country_code }} @else {{ $lead->country_id }} @endif {{ $lead->phone }} {{-- --}}

{{ __('no_data_found') }}...

{{-- WhatsApp --}} {{-- end WhatsApp --}} @endif @endsection @section('style') {{-- --}} @endsection @section('script') {{-- --}} @endsection