Certificate of Competency

Kindly proceed to upload the documents accordingly.
@foreach ($application->product_group->competency as $competency) @php $competencyReview = $competencyIsComply = null; if ($certificateSection) { $competencyReview = $certificateSection?->review->where('type', App\Models\EvaluatorReview::TYPE_CERTIFICATE_COMPETENCY . "_$competency->id")->first(); $competencyIsComply = $competencyReview?->is_comply; } elseif ($application->stage == App\Models\Application::STAGE_SO) { // handle so evaluation $sections = $evaluation?->section; if (is_array($sections)) { $competencyIsComply = !in_array('5', $sections); } } @endphp
{{ $competency->name }}
@if ($competencyIsComply !== null && $competencyIsComply == 0) @endif
@php $attachment = $application->attachments->where('type', \App\Models\ApplicationAttachment::TYPE_CERTIFICATE_COMPETENCY)->where('competency_id', $competency->id)->first(); @endphp
@if ($attachment) [View Here] @else No documents available @endif
@php $issueDateRequired = $competency->issue_date_required; $expiryDateRequired = $competency->expiry_date_required; @endphp
@if (!$loop->last)
@endif @endforeach