Personal Details @php $personal_error = 0; @endphp @if ($message['intake_month_alert'] != "" || $message['resident_country_message'] != "" || $message['preffered_country_message'] != "" || $message['preffered_state_message'] != "" || $message['birthdate_alert'] != "" ) @php $personal_error = 1; @endphp @endif @if ( $personal_error == 0) @foreach ($user->ToArray() as $key => $value) @if($key == "name" || $key == "email" ||$key == "country" || $key == "age" ) @if ($key == "age") @if (@$user->age <= 18 || @$user->age >= 35) @php $personal_error = 1; @endphp @endif @endif @if (is_null($value) || $value === '') @php $personal_error = 1; @endphp {{-- @php @$personal_error = $personal_error." ".$key."= data not available" @endphp --}} {{-- {{ 'Error: ' . $key . ' is null or empty for work experience with ID ' . $work_experience_use['id'] }} --}} @endif @endif @endforeach @endif @if ( $personal_error == 0) @foreach ($candidate->ToArray() as $key => $value) @if($key == "country_id" || $key == "state_id" ||$key == "marital_status" || $key == "spouse_comming" || $key == "spouse_employment_status" || $key == "spouse_qualification" || $key == "passport_status" || $key == "kids_count" || $key == "Accompanying_applicant") @if($key == "marital_status" || $key == "kids_count" || $key == "Accompanying_applicant" || $key == "spouse_comming" || $key == "spouse_employment_status" || $key == "spouse_qualification" ) @if($candidate->marital_status == "Married" ) @if ($candidate->spouse_comming == "Yes") @if (is_null($value) || $value === '') @php $personal_error = 1; @endphp {{-- @php @$personal_error = $personal_error." ".$key."= data not available" @endphp --}} {{-- {{ 'Error: ' . $key . ' is null or empty for work experience with ID ' . $work_experience_use['id'] }} --}} @endif @endif @if (is_null($value) || $value === '') @php $personal_error = 1; @endphp {{-- @php @$personal_error = $personal_error." ".$key."= data not available" @endphp --}} {{-- {{ 'Error: ' . $key . ' is null or empty for work experience with ID ' . $work_experience_use['id'] }} --}} @endif @endif @if ($key == "marital_status") @if (is_null($value) || $value === '') @php $personal_error = 1; @endphp {{-- @php @$personal_error = $personal_error." ".$key."= data not available" @endphp --}} {{-- {{ 'Error: ' . $key . ' is null or empty for work experience with ID ' . $work_experience_use['id'] }} --}} @endif @endif @elseif($key == "passport_status" || $key == "country_id" || $key == "state_id") @if($candidate->passport_status == 1) @if (is_null($value) || $value === '') @php $personal_error = 1; @endphp {{-- @php @$personal_error = $personal_error." ".$key."= data not available" @endphp --}} {{-- {{ 'Error: ' . $key . ' is null or empty for work experience with ID ' . $work_experience_use['id'] }} --}} @endif @endif @if ($key == "passport_status") @if (is_null($value) || $value === '') @php $personal_error = 1; @endphp {{-- @php @$personal_error = $personal_error." ".$key."= data not available" @endphp --}} {{-- {{ 'Error: ' . $key . ' is null or empty for work experience with ID ' . $work_experience_use['id'] }} --}} @endif @endif @endif @endif @endforeach @endif @if ( $personal_error == 0) @if ($candidate->destination[0] == null) @php $personal_error = 1; @endphp @else @foreach ($candidate->destination[0]->ToArray() as $key => $value) @if($key == "preferred_country" || $key == "preferred_course" ||$key == "intake_months" || $key == "intake_years" ) @if (is_null($value) || $value === '') @php $personal_error = 1; @endphp {{-- @php @$personal_error = $personal_error." ".$key."= data not available" @endphp --}} {{-- {{ 'Error: ' . $key . ' is null or empty for work experience with ID ' . $work_experience_use['id'] }} --}} @endif @endif @endforeach @endif @endif @if ( $personal_error == 1) {{-- --}} @else @endif

Name :

{{ $user->name }} {{ $user->last_name }} @if ($candidate->gender == 'male') (M) @elseif($candidate->gender == 'female') (F) @endif @if (@$candidate->student_category == 'Gold') @elseif(@$candidate->student_category == 'Silver') @elseif(@$candidate->student_category == 'Bronze') @endif

Residence Country :

{{ @$candidate->user->country }} @if ($message['resident_country_message'] != '') {!! $message['resident_country_message'] !!} @endif

Contact Number:

@if ( @$user->phone == "" || @$user->phone == null) Data Not Available @else {{ @$user->phone }} @if (@$user->alternate_phone != null) , {{ @$user->alternate_phone }} @endif @endif

Email:

@if ( @$user->email == "" || @$user->email == null) Data Not Available @else {{@$user->email}}@if(@$user->secondary_email != null), {{@$user->secondary_email }} @endif @endif

Age (as per DOB) :

{{ @$user->age }} @if (@$user->age >= 18 && @$user->age <= 35)

@else @if ($message['birthdate_alert'] != '') {!! $message['birthdate_alert'] !!} @endif @endif
@if ($candidate->passport_status === null)

Passport :

Passport Data Not Available

@elseif($candidate->passport_status == 0)

Passport :

Passport Not Available

@elseif($candidate->passport_status == 1)

Passport Country :

{{ @$candidate->country_name }} @if ($message['preffered_country_message'] != '') {!! $message['preffered_country_message'] !!} @endif

{{-- Passport State --}}

Passport State :

{{ @$candidate->state_name }} @if ($message['preffered_state_message'] != '') {!! $message['preffered_state_message'] !!} @else @if (@$candidate->state_name == null || @$candidate->state_name == "") Passport State Not Available @endif @endif

@endif {{-- Passport Country --}} {{-- {{dd($Preferred Country)}} --}}

Preferred Country:

{{ @$candidate->preferred_country }} @if ( $message['preffered_country_message'] == '' && $message['resident_country_message'] == '' && $message['preffered_state_message'] == '') @else {!! $message['preffered_country_message'] !!}
{!! $message['resident_country_message'] !!}
{!! $message['preffered_state_message'] !!}
@endif

Preferred Intake:

@if ( @$candidate->destination[0]->intake_months == "" || @$candidate->destination[0]->intake_months == null) Data Not Available @else {{ @$candidate->destination[0]->intake_months }} @if ($message['intake_month_alert'] == '') @else {!! $message['intake_month_alert'] !!} @endif

@endif @if ( @$candidate->destination[0]->intake_years == "" || @$candidate->destination[0]->intake_years == null) @else {{ @$candidate->destination[0]->intake_years }}

@endif

Preferred Course:

@if ( @$candidate->destination[0]->preferred_course == "" || @$candidate->destination[0]->preferred_course == null) Data Not Available @else {{ @$candidate->destination[0]->preferred_course }} @endif

Marital Status:

@if ( @$candidate->marital_status == "" || @$candidate->marital_status == null) Data Not Available @else {{ $candidate->marital_status }} @endif

@if ($candidate->marital_status == 'Married')

Are you taking them with you :

@if ( @$candidate->spouse_comming == "") Data Not Available @else {{@$candidate->spouse_comming}} @endif

@if ($candidate->spouse_comming == "Yes")

Qualification of Spouse:

@if ( @$candidate->spouse_qualification == "") Data Not Available @else {{@$candidate->spouse_qualification}} @endif

Employment status of Spouse:

@if ( @$candidate->spouse_employment_status == "") Data Not Available @else {{@$candidate->spouse_employment_status}} @endif

Income Of Spouse:

@if ( @$candidate->spouse_income == "") Data Not Available @else {{@$candidate->spouse_income}} @endif

No. of Kids:

@if ( @$candidate->kids_count == "") Data Not Available @else {{@$candidate->kids_count}} @endif

No. of dependents accompanying applicant:

@if ( @$candidate->accompanying_applicant == "") Data Not Available @else {{@$candidate->accompanying_applicant}} @endif

@endif @endif
{{-- Table-section --}}

Education Snapshot @if ($message['education_alert'] == '' || $message['education_alert'] == null) @if($message['education_12th_number'] != '' || $message['education_bachelor_number'] != '') Something Mising @endif @else {!! $message['education_alert'] !!} @endif

Highest Education : @if (@$candidate->highest_education != '' && @$candidate->highest_education != null) {{@$candidate->highest_education}} @else Data Not Available @endif

@foreach ($education_data as $education_data_use) @if ($education_data_use['type'] == 'Education') @elseif($education_data_use['type'] == 'Gap') @endif @endforeach
Qualification Percentage/ CGPA Subject/ Stream Backlogs Total @php $total_backlog = 0; @endphp @foreach ($education_data as $education_data_use) @if (is_numeric($education_data_use['backlogs'])) @php $total_backlog = $total_backlog + $education_data_use['backlogs']; @endphp @endif @endforeach {{ $total_backlog }} Start Date End Date University / Board name Remarks
{{ $education_data_use['qualification'] }} @if ($education_data_use['grade_percentage'] == null || $education_data_use['grade_percentage'] == '') -- @else {{ $education_data_use['grade_percentage'] }} @if ($education_data_use['grade_type'] == "percentage") % @else {{ $education_data_use['grade_type'] }} @endif @endif @if ($education_data_use['qualification'] == '12th') @if ($message['education_12th_number'] != '') {!! $message['education_12th_number'] !!} @else @endif @endif @if ($education_data_use['qualification'] == 'Bachelors') @if ($message['education_bachelor_number'] != '') {!! $message['education_bachelor_number'] !!} @else @endif @endif @if ($education_data_use['qualification'] == '10th' || $education_data_use['qualification'] == 'Certification') -- @elseif( $education_data_use['qualification'] == 'Bachelors' || $education_data_use['qualification'] == 'PhD' || $education_data_use['qualification'] == 'Masters') @if ($education_data_use['degree'] == null || $education_data_use['degree'] == '') -- @else {{ $education_data_use['degree'] }} @endif @elseif($education_data_use['qualification'] == 'Diploma') @if ($education_data_use['stream'] == null || $education_data_use['stream'] == '') -- @else {{ $education_data_use['stream'] }} @endif @else @if ($education_data_use['stream'] == null || $education_data_use['stream'] == '') -- @else {{ $education_data_use['stream'] }} @endif @endif @if ($education_data_use['backlogs'] == null || $education_data_use['backlogs'] == '') -- @else {{ $education_data_use['backlogs'] }} @endif @if ($education_data_use['year'] == null || $education_data_use['year'] == '') -- @else {{ $education_data_use['year'] }} @endif @if ($education_data_use['passing_year'] == null || $education_data_use['passing_year'] == '') -- @else {{ $education_data_use['passing_year'] }} @endif @if ($education_data_use['education_board'] == null || $education_data_use['education_board'] == '') -- @else {{ $education_data_use['education_board'] }} @endif {{ $education_data_use['remark'] }}
Gap Gap Duration {{ $education_data_use['duration'] }} Years Reason : {{ $education_data_use['gap_reason'] }}

Justification : {{ $education_data_use['Justification'] }}

@if ($education_data_use['Justification_valid'] == 'Panding') Justification Panding @elseif($education_data_use['Justification_valid'] == 'Approved') Justification Valid @elseif($education_data_use['Justification_valid'] == 'Rejected') Justification Rejected @if ($education_data_use['Justification_reason'] != '') {{ $education_data_use['Justification_reason'] }} @endif @endif
{{-- Table Section End --}} {{-- Experience Details --}} @if (count($work_experience) > 0)

Work Experience Details @php $work_experience_error = 0 @endphp @foreach ($work_experience->ToArray() as $work_experience_use) @foreach ($work_experience_use as $key => $value) @if($key == "Justification_reason") @if ($work_experience_use['Justification_valid'] == "Rejected") @if (is_null($value) || $value === '') @php $work_experience_error = 1; @endphp {{-- @php @$work_experience_error = $work_experience_error." ".$key."= data not available" @endphp --}} {{-- {{ 'Error: ' . $key . ' is null or empty for work experience with ID ' . $work_experience_use['id'] }} --}} @endif @endif @else @if (is_null($value) || $value === '') @php $work_experience_error = 1; @endphp {{-- @php @$work_experience_error = $work_experience_error." ".$key."= data not available" @endphp --}} {{-- {{ 'Error: ' . $key . ' is null or empty for work experience with ID ' . $work_experience_use['id'] }} --}} @endif @endif @endforeach @endforeach @if ( $work_experience_error == 1) Something Detail Missing @else @endif
@foreach ($work_experience as $work_experience_use)

Organization name

@if (@$work_experience_use->organization_name == "" || @$work_experience_use->organization_name == null) Data Not Available @else {{ $work_experience_use->organization_name }} @endif

Organization Address

@if (@$work_experience_use->organization_address == "" || @$work_experience_use->organization_address == null) Data Not Available @else {{ $work_experience_use->organization_address }} @endif

Work Experience

@if (@$work_experience_use->start_date == null || @$work_experience_use->end_date == null) {{ $work_experience_use->experience }} @else {{ $work_experience_use->experience }} @endif

Job Description

@if (@$work_experience_use->position == "") Data Not Available @else {{@$work_experience_use->position}} @endif

Duration

@if (@$work_experience_use->start_date == null || @$work_experience_use->end_date == null) {{ $work_experience_use->experience }} @else From {{ @$work_experience_use->start_date }} to {{ @$work_experience_use->end_date }} @endif

Experience Letter

@if (@$work_experience_use->experience_letter == "") Data Not Available @else {{@$work_experience_use->experience_letter}} @endif

Mode of Salary

@if (@$work_experience_use->mode_of_salery == "") Data Not Available @else {{@$work_experience_use->mode_of_salery}} @endif

Reference Name

@if (@$work_experience_use->name == "") Data Not Available @else {{@$work_experience_use->name}} @endif

Contact No.

@if (@$work_experience_use->mobile_number == "") Data Not Available @else {{@$work_experience_use->mobile_number}} @endif

Justification

@if (@$work_experience_use->Justification == "") Data Not Available @else {{@$work_experience_use->Justification}} @endif

Justification Status

@if (@$work_experience_use->Justification_valid == "") Data Not Available @else {{@$work_experience_use->Justification_valid}} @endif

@if (@$work_experience_use->Justification_valid == "Rejected")

Justification Reason

@if (@$work_experience_use->Justification_reason == "") Data Not Available @else {{@$work_experience_use->Justification_reason}} @endif

@endif
@endforeach

@endif {{-- Proficiency Test --}} {{-- @if (count($english_test) > 0) --}}

English Proficiency Tests @if ($message['english_test_required_message'] == '') @if ($english_test['test_name'] == '') Data not available @else @if ($english_test['speaking_scores'] == '' || $english_test['speaking_scores'] == null || $english_test['reading_scores'] == '' || $english_test['reading_scores'] == null || $english_test['listening_scores'] == '' || $english_test['listening_scores'] == null || $english_test['writing_scores'] == '' || $english_test['writing_scores'] == null) Data Not Available @else @endif @endif @else {{-- {!! $message['english_test_required_message'] !!} --}} Something Missing @endif

@if ($english_test['test_name'] != '' && $english_test['test_name'] != 'NT')

{{ $english_test['test_name'] }}

({{ $english_test['test_scores'] }}) @if ($message['english_test_message'] != '') {!! $message['english_test_message'] !!} @else @endif

Speaking:

@if ($english_test['speaking_scores'] == '' || $english_test['speaking_scores'] == null) Data Not Available @else @endif

Reading:

@if ($english_test['reading_scores'] == '' || $english_test['reading_scores'] == null) Data Not Available @else @endif

Listening:

@if ($english_test['listening_scores'] == '' || $english_test['listening_scores'] == null) Data Not Available @else @endif

Writing:

@if ($english_test['writing_scores'] == '' || $english_test['writing_scores'] == null) Data Not Available @else @endif

@endif
{{-- Fund Detail --}}

Fund Availability @if ($message['fund_availability'] == '') @else {!! $message['fund_availability'] !!} @endif

Budget

{{ @$candidate->budget }} @if ($candidate->budget == '') Budget not available @endif

Source Type

{{ @$candidate->fund_source }} @if ($candidate->budget == '') Fund source not available @endif

Loan Type

{{ @$candidate->loan_type }} @if ($candidate->loan_type == '') Loan type not available @endif

{{-- Visa Details --}} @if ( ($candidate->visa_refusal == null || $candidate->visa_refusal == '') && ($candidate->visa_refusal_reason == null || $candidate->visa_refusal_reason == '')) {{-- --}} @else

Visa History Something Issue Check Manually @if ( ($candidate->visa_refusal == null || $candidate->visa_refusal == '') && ($candidate->visa_refusal_reason == null || $candidate->visa_refusal_reason == '')) @else

Visa Refusal:

@if ($candidate->visa_refusal == 1) Yes @else No @endif

@if ($candidate->visa_refusal == 1)

Reason for Refusal:

{{ $candidate->visa_refusal_reason }}

@else @endif
@endif

@endif {{-- Remarks --}}

Remarks

@if (!is_array($decodedData)) @if ($candidate->notes != null || $candidate->notes != '')

{!! $candidate->notes !!}
                                        

@endif @else @foreach ($decodedData as $note)

{{ $note['auth_name'] }} :  {!! $note['notes'] !!}

@endforeach @endif