@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))
{{--
@if(isset($dbsData) && !$dbsData->isEmpty())
@foreach($dbsData as $dbsData)
@endforeach
@else
@endif
--}}
{{-- {{ dd($dbsData['dbs_service']) }} --}}
Please select Yes or No.
{{-- --}}
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
@if (in_array($extpassport, $allowedpassport))
{{ 'http://view.officeapps.live.com/op/view.aspx?src=' . urlencode(url('crm/candidates/' . $data['company_id'] . '/' . $passportDocs)) }}
@else
{{ url('crm/candidates/' . $data['company_id'] . '/' . rawurlencode($passportDocs)) }}
@endif
@else
Please upload one accepted identity document
 }})
{{-- @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
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.
@if (in_array($extDriving, $allowedDriving))
{{ 'http://view.officeapps.live.com/op/view.aspx?src=' . urlencode(url('crm/candidates/' . $data['company_id'] . '/' . $drivingDocs)) }}
@else
{{ url('crm/candidates/' . $data['company_id'] . '/' . rawurlencode($drivingDocs)) }}
@endif
View Accepted Documents
@else
Please upload a different accepted identity document.
View Accepted Documents
@endif
@else
Please upload a different accepted identity document.
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.
@if (in_array($extAddress, $allowedAddress))
{{ 'http://view.officeapps.live.com/op/view.aspx?src=' . urlencode(url('crm/candidates/' . $data['company_id'] . '/' . $addressDocs)) }}
@else
{{ url('crm/candidates/' . $data['company_id'] . '/' . rawurlencode($addressDocs)) }}
@endif
View Accepted Documents
@else
Please upload one accepted document showing your name and current address.
View Accepted Documents
@endif
@else
Please upload one accepted document showing your name and current address.
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.
@if (in_array($extAddress, $allowedAddress))
{{ 'http://view.officeapps.live.com/op/view.aspx?src=' . urlencode(url('crm/candidates/' . $data['company_id'] . '/' . $dbsDocs)) }}
@else
{{ url('crm/candidates/' . $data['company_id'] . '/' . rawurlencode($dbsDocs)) }}
@endif
@else
If you already have a DBS certificate, please upload it here. This is optional.
@endif
@else
Please upload one accepted document showing your name and current address.
@endif
{{--
Documents include Utility bills (electricity, gas, water, internet, and telephone bills. Bank/credit card statements, Pay slips, mortgage statements)
--}}
{{-- Right to work section --}}
@if(Auth::check() && !empty($educationReferenceReadonly) && empty($hideVersionHistory))
@endif
@if(Auth::check() && empty($educationReferenceReadonly))
@if(!empty($selectedEducationReferenceVersion) && $selectedEducationReferenceVersion->version_number > 1)
@endif
@elseif($flag == 0)
@endif
@if(!empty($showCreateEducationReferenceCorrectedVersionButton))
@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)
@endif
@endforeach
@endif
{{-- First ID doc --}}
| S.No |
File Name |
Date |
Action |
@if(isset($dbsPassport) && $dbsPassport->isNotEmpty())
@foreach($dbsPassport as $document)
@if($document->type == 'dbs_passport')
| {{ $loop->iteration }} |
{{ $document['title'] }} |
{{ $document->created_at ?
date(config('choicescrm.date_format_forms'), strtotime($document->created_at)) : ''
}} |
@php
$allowed = array('doc', 'docx');
$ext = pathinfo($document['document'], PATHINFO_EXTENSION);
@endphp
@if($document['document'])
@if (in_array($ext, $allowed))
@else
@endif
|
@endif
@endif
@endforeach
@else
| No documents found |
@endif
{{-- 2nd ID Document --}}
| S.No |
File Name |
Date |
Action |
@if(isset($dbsDriving) && $dbsDriving->isNotEmpty())
@foreach($dbsDriving as $document)
@if($document->type == 'dbs_driving')
| {{ $loop->iteration }} |
{{ $document['title'] }} |
{{ $document->created_at ?
date(config('choicescrm.date_format_forms'), strtotime($document->created_at)) : ''
}} |
@php
$allowed = array('doc', 'docx');
$ext = pathinfo($document['document'], PATHINFO_EXTENSION);
@endphp
@if($document['document'])
@if (in_array($ext, $allowed))
@else
@endif
|
@endif
@endif
@endforeach
@else
| No documents found |
@endif
{{-- DBS Certificate --}}
| S.No |
File Name |
Date |
Action |
@if(isset($dbsCertificate) && $dbsCertificate->isNotEmpty())
@foreach($dbsCertificate as $document)
@if($document->type == 'dbs_certificate')
| {{ $loop->iteration }} |
{{ $document['title'] }} |
{{ $document->created_at ?
date(config('choicescrm.date_format_forms'), strtotime($document->created_at)) : ''
}} |
@php
$allowed = array('doc', 'docx');
$ext = pathinfo($document['document'], PATHINFO_EXTENSION);
@endphp
@if($document['document'])
@if (in_array($ext, $allowed))
@else
@endif
|
@endif
@endif
@endforeach
@else
| No documents found |
@endif
{{-- DBS Address --}}
| S.No |
File Name |
Date |
Action |
@if(isset($dbsAddress) && $dbsAddress->isNotEmpty())
@foreach($dbsAddress as $document)
@if($document->type == 'dbs_address')
| {{ $loop->iteration }} |
{{ $document['title'] }} |
{{ $document->created_at ? date(config('choicescrm.date_format_forms'), strtotime($document->created_at)) : '' }} |
@php
$allowed = array('doc', 'docx');
$ext = pathinfo($document['document'], PATHINFO_EXTENSION);
@endphp
@if($document['document'])
@if (in_array($ext, $allowed))
@else
@endif
|
@endif
@endif
@endforeach
@else
| No documents found |
@endif
{{-- {{ dd($interviewDetail) }} --}}
{{-- British Passport --}}
| S.No |
File Name |
Date |
Action |
@if(isset($britishPassportDoc) && $britishPassportDoc->isNotEmpty())
@foreach($britishPassportDoc as $document)
@if($document->type == 'british_passport')
| {{ $loop->iteration }} |
{{ $document['title'] }} |
{{ $document->created_at ?
date(config('choicescrm.date_format_forms'), strtotime($document->created_at)) : ''
}} |
@php
$allowed = array('doc', 'docx');
$ext = pathinfo($document['document'], PATHINFO_EXTENSION);
@endphp
@if($document['document'])
@if (in_array($ext, $allowed))
@else
@endif
|
@endif
@endif
@endforeach
@else
| No documents found |
@endif
{{-- Share Code Document--}}
| S.No |
File Name |
Date |
Action |
@if(isset($shareCodeDocument) && $shareCodeDocument->isNotEmpty())
@foreach($shareCodeDocument as $document)
@if($document->type == 'share_code_document')
| {{ $loop->iteration }} |
{{ $document['title'] }} |
{{ $document->created_at ?
date(config('choicescrm.date_format_forms'), strtotime($document->created_at)) : ''
}} |
@php
$allowed = array('doc', 'docx');
$ext = pathinfo($document['document'], PATHINFO_EXTENSION);
@endphp
@if($document['document'])
@if (in_array($ext, $allowed))
@else
@endif
|
@endif
@endif
@endforeach
@else
| No documents found |
@endif
| S.No |
File Name |
Date |
Action |
@if(isset($niWithBirthDocument) && $niWithBirthDocument->isNotEmpty())
@foreach($niWithBirthDocument as $document)
@if($document->type == 'ni_with_birth_certificate')
| {{ $loop->iteration }} |
{{ $document['title'] }} |
{{ $document->created_at ? date(config('choicescrm.date_format_forms'), strtotime($document->created_at)) : '' }} |
@php
$allowed = array('doc', 'docx');
$ext = pathinfo($document['document'], PATHINFO_EXTENSION);
@endphp
@if($document['document'])
@if (in_array($ext, $allowed))
@else
@endif
|
@endif
@endif
@endforeach
@else
| No documents found |
@endif
{{-- {{ dd($interviewDetail) }} --}}
{{-- Schedule 2 Education Related Documents --}}
| S.No |
File Name |
Date |
Action |
{{-- @if(isset($educationUploaded) && $educationUploaded->isNotEmpty()) --}}
@if($educationUploaded->isNotEmpty())
@foreach($educationUploaded as $document)
@if($document->type == 'Certificates')
| {{ $loop->iteration }} |
{{ $document['title'] }} |
{{ $document->created_at ?
date(config('choicescrm.date_format_forms'), strtotime($document->created_at)) : ''
}} |
@php
$allowed = array('doc', 'docx');
$ext = pathinfo($document['document'], PATHINFO_EXTENSION);
@endphp
@if($document['document'])
@if (in_array($ext, $allowed))
@else
@endif
|
@endif
@endif
@endforeach
@else
| No documents found |
@endif
{{-- Schedule 2 Education Related Documents --}}
{{-- Share Code --}}
- •A right to work share code is 9 character code generated through the Home Office online service.
- •It must be code created for proving your right to work.
- •We will use your share code and date of birth to check your right to work online
{{-- Right To Work Document Info --}}
- •A British passport, current or expired
- •A full birth or adoption certificate issued in the UK, plus an official document showing the National Insurance number (e.g., P45, P60, HMRC letter)
- •A certificate of registration or naturalisation as a British citizen together with an official document showing your permanent National Insurance number and name
- •A current passport endorsed to show indefinite leave, right of abode, or no time limit to stay
- •A current immigration status document with the required endorsement, together with an official document showing your permanent National Insurance number and name
{{-- 1st identity Documents --}}
- •Current valid passport
- •Current photocard driving licence
- •eVisa
- •Original UK birth certificate
- •UK adoption certificate
Your DBS documents must be different document types and must form part of an acceptable DBS identity document combination.
{{-- 2nd identity Documents --}}
- •Current photocard driving licence
- •Current valid passport
- •Original UK birth certificate
- •UK adoption certificate
- •Marriage or civil partnership certificate
- •HM Forces ID card
- •Veteran card
- •UK paper driving licence issued before March 2000
- •Current non UK driving licence
The same document type should not be used twice.
{{-- 2nd identity Documents --}}
- •Bank or building society statement issued within the last 3 months
- •Credit card statement issued within the last 3 months
- •Utility bill excluding mobile phone bills issued within the last 3 months
- •Bank account opening letter issued within the last 3 months
- •Mortgage statement issued within the last 12 months
- •Council Tax statement issued within the last 12 months
- •P45 issued within the last 12 months
- •P60 issued within the last 12 months
- •Benefit statement issued within the last 12 months
- •Government or local council letter issued within the last 12 months
- •HMRC self assessment or tax letter issued within the last 12 months