{{ __('Certification Details') }}

@php $sections = $sections ?? collect(); $mainCertIsComply = $supportingDocIsComply = $alIsComply = null; @endphp @if ($sections->isNotEmpty()) @php $certificate = $sections->where('section', App\Models\EvaluatorSection::SECTION_CERTIFICATE)->first(); $mainCertReview = $certificate?->review->where('type', App\Models\EvaluatorReview::TYPE_CERTIFICATE)->first(); $mainCertIsComply = $mainCertReview?->is_comply; $supportingDocReview = $certificate?->review->where('type', App\Models\EvaluatorReview::TYPE_SUPPORTING_DOC)->first(); $supportingDocIsComply = $supportingDocReview?->is_comply; $alReview = $certificate?->review->where('type', App\Models\EvaluatorReview::TYPE_AUTHORIZATION)->first(); $alIsComply = $alReview?->is_comply; @endphp @endif @if ($mainCertIsComply !== null && $mainCertIsComply == 0) @endif @foreach ($application->product_group?->supportingDoc->sortBy('priority') ?? [] as $supportingDoc) @endforeach @if ($supportingDocIsComply !== null && $supportingDocIsComply == 0) @endif @if ($alIsComply !== null && $alIsComply == 0) @endif
{{ __('Qualification Type') }}

{{ $application->qualification_type?->name ?? '-' }}


{{ $application->main_certificate }}

@if ($certificate = $application->attachments->where('type', \App\Models\ApplicationAttachment::TYPE_CERTIFICATE)->first()) [View Here] @else No documents available @endif

{{ __('In-Complete Notes') }}

Reviews Notes
{{ $mainCertReview->remarks }}
{{ __('Scheme/Certification Requirement(s)') }}

{{ $application->product_certification?->name ?? '-' }}

{{ __('Supporting Documents') }} {{ __('Document') }}
{{ $supportingDoc->name }} @php $file = $application->attachments->where('type', \App\Models\ApplicationAttachment::TYPE_SUPPORTING_DOC)->where('supporting_document_id', $supportingDoc->id)->first(); @endphp @if ($file) [View Here] @else No documents available @endif

{{ __('In-Complete Notes') }}

Reviews Notes
{{ $supportingDocReview->remarks }}
{{ __('Supporting Documents Requirements') }}


{{ \App\Models\Application::PRODUCT_OWNERSHIP[$application->product_ownership] ?? '-' }}

@if ($application->product_ownership == \App\Models\Application::PO_RESELLER) @if ($authorizationLetter = $application->attachments->where('type', \App\Models\ApplicationAttachment::TYPE_AUTHORIZATION)->first()) [View Here] @else No documents available @endif @else Not Applicable @endif

{{ __('In-Complete Notes') }}

Reviews Notes
{{ $alReview->remarks }}