@php $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('Bachelor', $last_names); $index_Master = array_search('Master', $last_names); $educations = @$candidate->educations ?? []; $can_educations_count = count($educations) + 1; $counter = 0; @endphp @extends('admin.layouts.app') @section('title') {{ __('edit_candidate') }} @endsection @section('content') @if (userCan('candidate.update'))
@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
{{ __('profile_details') }}
@error('gender') {{ __($message) }} @enderror
@error('marital_status') {{ __($message) }} @enderror
{{--
--}}
@error('student_category') {{ __($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 @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 (userCan('admin.assign'))
@error('assign_to') {{ __($message) }} @enderror
@endif
@error('notes') {{ $message }} @enderror
{{-- --}}
Qualification Institute Name Education Board Starting Year Passing Year Grade/Percentage Documents
-- {{-- --}}
{{-- --}}
-- {{--
--}}
{{--
--}}
candidate_exam->test_taken_date)) value="{{ date('d-m-Y', strtotime($candidate->candidate_exam->test_taken_date)) }}" @endif placeholder="Test Taken Date" />
{{--
--}}
{{--
--}}
@error('preferred_program') {{ __($message) }} @enderror
@error('intake') {{ __($message) }} @enderror
@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') }}...

Loading...
{{--
--}}
Follow Up
@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 }}

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

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

@endif

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

@empty

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

@endforelse
@forelse (@$user->timeLine as $timeLine) @if (!empty($timeLine->auth_id)) @else @endif @if (!empty($timeLine->created_at)) @else @endif @empty @endforelse
Stages Change By Date & Time
{{ $timeLine->stages }}{{ ucwords(adminIdToNameGet($timeLine->auth_id)) }}--{{ dateMonthTimeFormat($timeLine->created_at) }}--

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

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