@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; 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
@if($candidateDisplay != 1)
@method('PUT') @csrf @else @endif

({{ $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($candidateDisplay != 1) @endif Follow up {{-- @if (userCan('admin.assign')) @endif --}} @if (userCan('candidate.sendWhatsApp')) @endif
{{--
@if(!empty(@$user->assign_to)) {{ ucwords(substr(adminIdToNameGet(@$user->assign_to), 0, 2)) }} @endif
--}}
@if(!empty(@$candidate->destination[0]->intake)) Intake: {{ @$candidate->destination[0]->intake }} @endif @if(!empty(@$preferred_country_ids) && !empty(@$preferred_country_ids[0])) Preferred Country: {{-- @php $counter = 0; @endphp @isset($countries) @foreach ($countries as $country) @foreach ($preferred_country_ids as $preferred_country_id) @if ($preferred_country_id == $country['id']) @php $counter++; @endphp {{ $counter }} {{ $country['name'] }} @if (!$loop->last) , @endif @endif @endforeach @endforeach @endisset --}} @forelse ($countries as $country) @if (in_array($country['id'], $preferred_country_ids)) {{ $loop->iteration }} {{ $country['name'] }}@if (!$loop->last),@endif @endif @empty @endforelse {{-- @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(!empty(@$user->assign_to)) {{ ucwords(substr(adminIdToNameGet(@$user->assign_to), 0, 2)) }} @endif {{-- Preferred Country: 1 IrelandIntake: Jan'25Campaign: UK Universities Jan Intake Campaign (University of Wales Trinity Saint David - UWTSD)Ma --}}
{{ __('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
--}}
{{--