Education and Reference Form

{{--

Thank you for your interest in job opportunities with {{$comp_name}}. Please complete all sections of the application.

--}} @if(Session::has('message'))

{{ Session::get('message') }}

@endif @if($errors->any())

{{ $errors->first() }}

@endif

Thank you for your interest in job opportunities with Choices Home for Children. Please complete all sections of the application.

@if(!empty($selectedEducationReferenceVersionId)) @endif

Candidate Name: {{ $data['name'] }}

@if(Auth::check()) {{--
--}} {{--
--}} @endif
@if(Auth::check() && empty($hideVersionHistory)) @include('recruitment.partials.education-reference-version-timeline') @endif @if(Auth::check() && !empty($hideVersionHistory) && !empty($selectedEducationReferenceVersion) && $selectedEducationReferenceVersion->version_number > 1 && !empty($selectedEducationReferenceVersion->revision_notes))

Revision Notes

Reason and confirmation details:
{{ $selectedEducationReferenceVersion->revision_notes ?? 'Not recorded' }}

Candidate confirmed by: {{ $selectedEducationReferenceVersion->revision_confirmation_method ?? 'Not recorded' }}

Confirmation received date: {{ !empty($selectedEducationReferenceVersion->revision_confirmation_received_at) ? date(config('choicescrm.date_format_forms'), strtotime($selectedEducationReferenceVersion->revision_confirmation_received_at)) : 'Not recorded' }}

@if(!empty($selectedEducationReferenceVersion->revision_evidence_file)) @php $revisionEvidenceAllowed = ['doc', 'docx']; $revisionEvidenceExt = pathinfo($selectedEducationReferenceVersion->revision_evidence_file, PATHINFO_EXTENSION); $revisionEvidencePath = 'crm/candidates/' . $selectedEducationReferenceVersion->company_id . '/' . $selectedEducationReferenceVersion->revision_evidence_file; @endphp

Evidence: @if(in_array($revisionEvidenceExt, $revisionEvidenceAllowed)) {{ $selectedEducationReferenceVersion->revision_evidence_original_name ?? basename($selectedEducationReferenceVersion->revision_evidence_file) }} @else {{ $selectedEducationReferenceVersion->revision_evidence_original_name ?? basename($selectedEducationReferenceVersion->revision_evidence_file) }} @endif

@endif
@endif
Education
@if(isset($educationData) && !$educationData->isEmpty()) @foreach($educationData as $eduData)
@endforeach @else
@endif
Upload documents (Word, PDF or Excel)
@if($educationUploaded->isNotEmpty()) @foreach($educationUploaded as $docs) @php $allowed = array('doc', 'docx'); if ($docs['type'] === 'Certificates') { $hasEducationUploaded = !empty($docs['document']); $educationDocs=$docs['document']; $extEducation = pathinfo($educationDocs, PATHINFO_EXTENSION); } @endphp @endforeach @if($educationUploaded) @if (in_array($extEducation, $allowed)) View Documents @else View Documents @endif @endif @endif
Employment
@if(isset($employmentData) && !$employmentData->isEmpty()) @foreach($employmentData as $empData)
@if(empty($empData['explanation_of_gaps'])) @else
@endif
{{-- --}}
@endforeach @else
{{-- --}}
{{-- --}}
@endif
{{-- --}}

Character Reference

A character reference can be provided by someone who knows you personally and can attest to your reliability and suitability for a role. This could include colleagues,managers,mentors,volunteering supervisors,teachers,community,leaders or long-term friends.However, family members are generally not appropriate for this type of reference

@if(isset($refereeData) && !$refereeData->isEmpty()) @foreach($refereeData as $referee) @php $characterReference = json_decode($referee->character_reference, true); @endphp
@endforeach @else {{--
--}}
{{--
--}}
{{--
--}}
@endif

Professional Reference 1

Professional reference should ideally come from individuals who can confirm your experience and suitability for working with children. Suitable referees include current or former managers or supervisors where you have worked in care settings, or teachers, or trainers who have overseen your work or training. Reference from family members or friends are not accepted, as they must come from those who can verify your professional abilities.

@if(isset($refereeData) && !$refereeData->isEmpty()) @foreach($refereeData as $referee) @php $professional_reference_1 = json_decode($referee->professional_reference_1, true); // $previousProfessionalReference = // json_decode($referee->previous_professional_reference, true); @endphp
@php $professional_reference_1 = is_array($professional_reference_1) ? $professional_reference_1 : json_decode($professional_reference_1, true); @endphp
@endforeach @else
@endif

Professional Reference 2

Professional reference should ideally come from individuals who can confirm your experience and suitability for working with children. Suitable referees include current or former managers or supervisors where you have worked in care settings, or teachers, or trainers who have overseen your work or training. Reference from family members or friends are not accepted, as they must come from those who can verify your professional abilities.

@if(isset($refereeData) && !$refereeData->isEmpty()) @foreach($refereeData as $referee) @php // $currentProfessionalRreference = // json_decode($referee->current_professional_reference, true); $professional_reference_2 = json_decode($referee->professional_reference_2, true); @endphp
@php $professional_reference_2 = is_array($professional_reference_2) ? $professional_reference_2 : json_decode($professional_reference_2, true); @endphp
@endforeach @else
@endif
{{-- --}}
DBS and Right to Work Documents
{{--
@if(isset($dbsData) && !$dbsData->isEmpty()) @foreach($dbsData as $dbsData) @endforeach @else @endif
--}} {{-- {{ dd($dbsData['dbs_service']) }} --}}
Please select Yes or No.
dbs_service) && $dbsData->dbs_service == 1) checked @endif>
dbs_service) && $dbsData->dbs_service == 0) checked @endif>
{{-- --}} Please enter your dbs reference number
@php // Initialize variables to track the status of each document $passportUploaded = false; $drivingUploaded = false; $addressUploaded = false; $dbsCertificateUploaded = false; @endphp @if(isset($dbsPassport)) @foreach($dbsPassport as $docs) @php // Check the document type and update the status accordingly if ($docs['type'] === 'dbs_passport') { $passportUploaded = !empty($docs['document']); $passportDocs=$docs['document']; $allowedpassport = array('doc', 'docx'); $extpassport = pathinfo($passportDocs, PATHINFO_EXTENSION); } @endphp @endforeach
@if($passportUploaded) Please upload one accepted identity document
Upload Image Drag and Drop file here or Choose File WORD, PDF, JPG, or PNG up to 10MB
@if (in_array($extpassport, $allowedpassport)) @else @endif @else Please upload one accepted identity document
Upload Image {{-- @if($passportUploaded)

Uploaded Passport: {{ basename($docs['document']) }}

@endif --}} Drag and Drop file here or Choose File WORD, PDF, JPG, or PNG up to 10MB {{-- --}} {{-- --}}
@endif View Accepted Documents
@else
Please upload one accepted identity document
Upload Image Drag and Drop file here or Choose File WORD, PDF, JPG, or PNG up to 10MB {{-- --}} {{-- --}}
View Accepted Documents @endif {{-- Driving License --}} @if(isset($dbsDriving)) @foreach($dbsDriving as $docs) @php // Check the document type and update the status accordingly if ($docs['type'] === 'dbs_driving') { $drivingUploaded = !empty($docs['document']); $drivingDocs = $docs['document']; $allowedDriving = array('doc', 'docx'); $extDriving = pathinfo($drivingDocs, PATHINFO_EXTENSION); } @endphp @endforeach
@if($drivingUploaded) Please upload a different accepted identity document.
Upload Image Drag and Drop file here or Choose File WORD, PDF, JPG, or PNG up to 10MB
@if (in_array($extDriving, $allowedDriving)) @else @endif View Accepted Documents @else Please upload a different accepted identity document.
Upload Image Drag and Drop file here or Choose File WORD, PDF, JPG, or PNG up to 10MB {{-- --}} {{-- --}}
View Accepted Documents @endif
@else
Please upload a different accepted identity document.
Upload Image Drag and Drop file here or Choose File WORD, PDF, JPG, or PNG up to 10MB {{-- --}} {{-- --}}
View Accepted Documents @endif {{-- Address --}} @if(isset($dbsAddress)) @foreach($dbsAddress as $docs) @php // Check the document type and update the status accordingly if ($docs['type'] === 'dbs_address') { $addressUploaded = !empty($docs['document']); $addressDocs = $docs['document']; $allowedAddress = array('doc', 'docx'); $extAddress = pathinfo($addressDocs, PATHINFO_EXTENSION); } @endphp @endforeach
@if($addressUploaded) Please upload one accepted document showing your name and current address.
Upload Image Drag and Drop file here or Choose File WORD, PDF, JPG, or PNG up to 10MB {{-- --}}
@if (in_array($extAddress, $allowedAddress)) @else @endif View Accepted Documents @else Please upload one accepted document showing your name and current address.
Upload Image Drag and Drop file here or Choose File WORD, PDF, JPG, or PNG up to 10MB {{-- --}} {{-- --}}
View Accepted Documents @endif
@else
Please upload one accepted document showing your name and current address.
Upload Image Drag and Drop file here or Choose File WORD, PDF, JPG, or PNG up to 10MB {{-- --}} {{-- --}}
View Accepted Documents @endif {{-- Dbs Certificate --}} @if(isset($dbsCertificate)) @foreach($dbsCertificate as $docs) @php $allowed = array('doc', 'docx'); // Check the document type and update the status accordingly if ($docs['type'] === 'dbs_certificate') { $dbsCertificateUploaded = !empty($docs['document']); $dbsDocs = $docs['document']; $allowedAddress = array('doc', 'docx'); $extAddress = pathinfo($dbsDocs, PATHINFO_EXTENSION); } @endphp @endforeach
@if($dbsCertificateUploaded) If you already have a DBS certificate, please upload it here. This is optional.
Upload Image Drag and Drop file here or Choose File WORD,PDF, JPG, or PNG up to 10MB {{-- --}}
@if (in_array($extAddress, $allowedAddress)) @else @endif @else If you already have a DBS certificate, please upload it here. This is optional.
Upload Image Drag and Drop file here or Choose File WORD, PDF, JPG, or PNG up to 10MB {{-- --}} {{-- --}}
@endif
@else
Please upload one accepted document showing your name and current address.
Upload Image Drag and Drop file here or Choose File WORD, PDF, JPG, or PNG up to 10MB {{-- --}} {{-- --}}
@endif {{--

Documents include Utility bills (electricity, gas, water, internet, and telephone bills. Bank/credit card statements, Pay slips, mortgage statements)

--}}
{{-- Right to work section --}}
Right To Work In UK *
Please select Yes or No.
Please select one option below. @if((isset($dbsData['right_to_work_evidence']))) @else @endif
@if(isset($britishPassportDoc) && $britishPassportDoc->isNotEmpty()) @foreach($britishPassportDoc as $docs) @php // Check the document type and update the status accordingly if ($docs['type'] === 'british_passport') { $britishPassportUploaded = !empty($docs['document']); $britishPassportDocs=$docs['document']; $allowedBritishPassport = array('doc', 'docx'); $extBritishPassport = pathinfo($britishPassportDocs, PATHINFO_EXTENSION); } @endphp @endforeach
@if($britishPassportUploaded)
Upload Image Drag and Drop file here or Choose File WORD, PDF, JPG, or PNG up to 10MB
@if (in_array($extBritishPassport, $allowedBritishPassport)) @else @endif View Accepted Documents @else
Upload Image Drag and Drop file here or Choose File WORD, PDF, JPG, or PNG up to 10MB
View Accepted Documents @endif
@else
Please upload your right to work document if applicable.
Upload Image Drag and Drop file here or Choose File WORD, PDF, JPG, or PNG up to 10MB
View Accepted Documents
@endif {{-- NI/Birth Certificate right to work document --}} @if(isset($niWithBirthDocument) && $niWithBirthDocument->isNotEmpty()) @foreach($niWithBirthDocument as $docs) @php // Check the document type and update the status accordingly if ($docs['type'] === 'ni_with_birth_certificate') { $niWithBirthUploaded = !empty($docs['document']); $niWithBirthDocs=$docs['document']; $allowedniWithBirth = array('doc', 'docx'); $extniWithBirth = pathinfo($niWithBirthDocs, PATHINFO_EXTENSION); } @endphp @endforeach
@if($niWithBirthUploaded)
Upload Image Drag and Drop file here or Choose File WORD, PDF, JPG, or PNG up to 10MB
@if (in_array($extniWithBirth, $allowedniWithBirth)) @else @endif View Accepted Documents @else
Upload Image Drag and Drop file here or Choose File WORD,PDF, JPG, or PNG up to 10MB
View Accepted Documents @endif
@else
Please upload your right to work document if applicable.
Upload Image Drag and Drop file here or Choose File WORD, PDF, JPG, or PNG up to 10MB
View Accepted Documents
@endif {{-- Share Code --}}
If you are proving your right to work using the Home Office online service, please enter your share code here. What is a share code?
@if(isset($shareCodeDocument) && $shareCodeDocument->isNotEmpty()) @foreach($shareCodeDocument as $docs) @php // Check the document type and update the status accordingly if ($docs['type'] === 'share_code_document') { $shareCodeUploaded = !empty($docs['document']); $shareCodeDocs=$docs['document']; $allowedshareCode = array('doc', 'docx'); $extshareCode = pathinfo($shareCodeDocs, PATHINFO_EXTENSION); } @endphp @endforeach @else
@if(Auth::check() && !empty($educationReferenceReadonly) && empty($hideVersionHistory))

{{ $educationReferenceLockedVersionMessage ?? 'This version is locked.' }}

@endif @if(Auth::check() && empty($educationReferenceReadonly)) @if(!empty($selectedEducationReferenceVersion) && $selectedEducationReferenceVersion->version_number > 1)
Revision Notes
@php $eduRevisionHasEvidence = !empty($selectedEducationReferenceVersion->revision_evidence_file); $eduRevisionMethod = old('revision_confirmation_method', $selectedEducationReferenceVersion->revision_confirmation_method ?? ''); $eduRevisionEvidenceRequired = !$eduRevisionHasEvidence && $eduRevisionMethod === 'Email'; @endphp
@if(!empty($selectedEducationReferenceVersion->revision_evidence_original_name)) Current file: {{ $selectedEducationReferenceVersion->revision_evidence_original_name }} @endif Evidence upload is required only when the candidate confirmed by email.
@endif
@elseif($flag == 0)
@endif
@if(!empty($showCreateEducationReferenceCorrectedVersionButton))
@csrf @if(empty($selectedEducationReferenceVersion)) @endif
@endif @if(empty($hideVersionHistory) && isset($educationReferenceVersions) && $educationReferenceVersions->count()) @foreach($educationReferenceVersions as $version) @if(Auth::check() && empty($educationReferenceVersions->firstWhere('is_final', true)) && $version->version_number > 1 && $version->is_locked && !$version->is_final)
@csrf
@endif @endforeach @endif {{-- First ID doc --}} {{-- 2nd ID Document --}} {{-- DBS Certificate --}} {{-- DBS Address --}} {{-- British Passport --}} {{-- Share Code Document--}} {{-- Schedule 2 Education Related Documents --}} {{-- Schedule 2 Education Related Documents --}} {{-- Share Code --}} {{-- Right To Work Document Info --}} {{-- 1st identity Documents --}} {{-- 2nd identity Documents --}} {{-- 2nd identity Documents --}}