@if($staffData->company_type == 1)
@php
$imagePath = public_path('staff_images/Management.' . $staffData->staff_image);
@endphp
@else
@php
$imagePath = public_path('staff_images/Buisness/'.$staffData->company_id.'/'.$staffData->entity_id.'/'.$staffData->staff_image);
@endphp
@endif
Allowed JPG, PNG. Max size of 800K
@php
$language_ids = !empty($staffData->languages) ? json_decode($staffData->languages, true) : [];
$hobby_ids = !empty($staffData->hobby) ? json_decode($staffData->hobby, true) : [];
@endphp
@php
$children = !empty($staffFamily->children_details) ? json_decode($staffFamily->children_details, true) : [];
$spouseWorkingCheck = $staffFamily->spouse_working ?? 'No';
$has_childrenCheck = $staffFamily->has_children ?? 'No';
$has_siblingsCheck = $staffFamily->has_siblings ?? 'No';
$is_CourseCheck = $staffData->is_Course ?? 'No';
@endphp
@php
$contact_person_name = json_decode($staffData->contact_person_name ?? '[]', true);
$contact_person_relation = json_decode($staffData->contact_person_relation ?? '[]', true);
$contact_person_no = json_decode($staffData->contact_person_no ?? '[]', true);
@endphp
@php
$oldEdu = $staffEducation->map(function($edu) {
return [
'qualification_type' => $edu->qualification_type,
'degree' => $edu->degree_name,
'major' => $edu->major,
'university_name' => $edu->university_name,
'year' => $edu->year,
];
});
@endphp
@php
$courseTag = !empty($staffData->course_tag)
? json_decode($staffData->course_tag, true)
: [];
@endphp
@php
$appliedPositionIds = !empty($staffData->applied_position) ? json_decode($staffData->applied_position, true) : [];
$appliedCompanyIds = !empty($staffData->applied_company_ids) ? json_decode($staffData->applied_company_ids, true) : [];
$applicationDetails = json_decode($staffData->application_details, true) ?? [];
@endphp
{{-- Dynamic Questions --}}
@foreach($questions as $question)
{{-- Parent Question --}}
{{-- Dependent Questions --}}
@foreach($question->depends as $depend)
@php $dep_options = json_decode($depend->field_option, true) ?? []; @endphp
@php
// Get the saved answer for the dependent question
$savedDependentAnswer = $applicationDetails['dependents'][$depend->sno] ?? null;
@endphp
@endforeach
@endforeach
@php
$checklistIds = !empty($staffData->document_checklist) ? json_decode($staffData->document_checklist, true) : [];
@endphp
@if(isset($documentCheckList))
@foreach($documentCheckList as $checklist)
sno, $checklistIds) ? 'checked' : '' }} value="{{$checklist->sno}}" name="document_checked[]"
id="check_{{$checklist->sno}}">
@endforeach
@endif