@if(isset($dbsPassport) && $dbsPassport->isNotEmpty())
@foreach($dbsPassport as $docs)
@php
$allowed = array('doc', 'docx');
// Check the document type and update the status accordingly
if ($docs['type'] === 'dbs_passport') {
$passportUploaded = !empty($docs['document']);
$passportDocs=$docs['document'];
$extpassport = pathinfo($passportDocs, PATHINFO_EXTENSION);
}
@endphp
@endforeach
@endif
@if ($empRemindedPassport)
@php
$selectedEmployees = json_decode($empRemindedPassport->emp_reminded, true) ?? [];
@endphp
@else
@endif
@else
@endif
{{-- Driving License --}}
@if(isset($dbsDriving) && $dbsDriving->isNotEmpty())
@foreach($dbsDriving as $docs)
@php
$allowed = array('doc', 'docx');
// Check the document type and update the status accordingly
if ($docs['type'] === 'dbs_driving') {
$drivingUploaded = !empty($docs['document']);
$drivingDocs=$docs['document'];
$extdriving = pathinfo($drivingDocs, PATHINFO_EXTENSION);
}
@endphp
@endforeach
@endif
{{-- @foreach($dbsDriving as $key=>$docs) --}}
@php
if (isset($docs['emp_reminded']) && is_string($docs['emp_reminded'])) {
$docs['emp_reminded'] = json_decode($docs['emp_reminded'], true);
}
@endphp
@if ($empRemindedDriving)
@php
$selectedEmployees = json_decode($empRemindedDriving->emp_reminded, true) ?? [];
@endphp
@else
@endif
{{-- @endforeach --}}
@else
@endif
{{-- Dbs Certificate --}}
@if(isset($dbsCertificate) && $dbsCertificate->isNotEmpty())
@foreach($dbsCertificate as $docs)
@php
$allowed = array('doc', 'docx');
// Check the document type and update the status accordingly
if ($docs['type'] === 'dbs_certificate') {
$certificateUploaded = !empty($docs['document']);
$certificateDocs=$docs['document'];
$extcertificate = pathinfo($certificateDocs, PATHINFO_EXTENSION);
}
@endphp
@endforeach
@endif
{{-- @foreach($dbsCertificate as $key=>$docs) --}}
@if ($empRemindedCertificate)
@php
$selectedEmployees = json_decode($empRemindedCertificate->emp_reminded, true) ?? [];
@endphp
@else
@endif
{{-- @endforeach --}}
@else
@endif
{{-- Address Proof --}}
@if(isset($dbsAddress) && $dbsAddress->isNotEmpty())
@foreach($dbsAddress as $docs)
@php
$allowed = array('doc', 'docx');
// Check the document type and update the status accordingly
if ($docs['type'] === 'dbs_address') {
$addressUploaded = !empty($docs['document']);
$addressDocs=$docs['document'];
$extaddress = pathinfo($addressDocs, PATHINFO_EXTENSION);
}
@endphp
@endforeach
@endif
{{-- {{ dd($daysNeededAddress) }} --}}
@if ($empRemindedAddress)
@php
$selectedEmployees = json_decode($empRemindedAddress->emp_reminded, true) ?? [];
@endphp
@else
@endif
@else
@endif