{{ __('Section 4: Document Submission') }}

@php $mainCertReview = null; if ($certificate && $certificate->review) { $mainCertReview = $certificate->review->where('type', App\Models\EvaluatorReview::TYPE_CERTIFICATE)->first(); } @endphp
SSM E-Profile
{{ $application->company->company_name }}
Main Certificate
{{ $application->main_certificate }} View
{{ $application->main_certificate }}
{{ $mainCertReview?->is_comply == 1 ? 'Comply' : 'Not Comply' }}
{{ $mainCertReview->remarks ?? '-' }}
{{ $mainCertReview->notes ?? '-' }}
Support Document(s)
@foreach ($application->product_group->supportingDoc as $supportingDoc) @php $attachment = $application->attachments->where('type', 'supporting_document')->where('supporting_document_id', $supportingDoc->id)->first(); @endphp
{{ $attachment ? basename($attachment->path) : '-' }}
@if(!empty($supportingDoc?->applicationData?->value)) {{ $supportingDoc->applicationData->value }} @elseif($attachment?->extra?->issuing_body) {{ getApplicationDataValue($attachment->extra->issuing_body) }} @else - @endif
@if(!empty($supportingDoc?->applicationData?->country)) {{ $supportingDoc->applicationData->country->name }} @elseif($attachment?->extra?->issuingCountry) {{ $attachment->extra?->issuingCountry?->name }} @else - @endif
@php $supportingDocReview = null; if ($certificate && $certificate->review) { $supportingDocReview = $certificate->review->where('type', App\Models\EvaluatorReview::TYPE_SUPPORTING_DOC . '_' . $supportingDoc->id)->first(); } @endphp
{{ $supportingDocReview?->is_comply == 1 ? 'Comply' : 'Not Comply' }}
{{ $supportingDocReview?->remarks ?? '-' }}
{{ $supportingDocReview?->notes ?? '-' }}
@endforeach
Authorization
@php $authorizationLetter = $application->attachments->where('type', 'authorization_letter')->first(); @endphp
{{ \App\Models\Application::PRODUCT_OWNERSHIP[$application->product_ownership] ?? '-' }} @if ($authorizationLetter) View @endif
@if ($authorizationLetter)
{{ __('Evaluator input') }}
{{ __('Evaluator input') }}
@endif
@php $alReview = null; if ($certificate && $certificate->review) { $alReview = $certificate->review->where('type', App\Models\EvaluatorReview::TYPE_AUTHORIZATION)->first(); } @endphp
{{ $alReview?->is_comply == 1 ? 'Comply' : 'Not Comply' }}
{{ $alReview->remarks ?? '-' }}
{{ $alReview->notes ?? '-' }}

Project Leader Review

{{ $document?->is_comply == 1 ? 'Comply' : 'Not Comply' }}
{{ $document->remarks ?? '' }}