@foreach ($application->product_group->supportingDoc as $supportingDoc) @endforeach
Qualification Type

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

{{ __('Main Certificate Submitted') }} {{ __('Document Uploaded') }}
{{ $application->main_certificate }} @php $certificate = $application->attachments->where('type', 'certificate')->first(); @endphp @if ($certificate) [View Here] @else No documents available @endif
{{ __('Scheme/Certification Requirement(s)') }}

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

{{ __('Supporting Documents') }} {{ __('Document Uploaded') }}
{{ $supportingDoc->name }} @php $attachment = $application->attachments->where('type', 'supporting_document')->where('supporting_document_id', $supportingDoc->id)->first(); @endphp @if ($attachment) [View Here] @else No documents available @endif
{{ __('Product Ownership') }}

{{ __('Product Ownership') }} {{ __('Document Uploaded') }}
{{ \App\Models\Application::PRODUCT_OWNERSHIP[$application->product_ownership] ?? '-' }} @php $authorizationLetter = $application->attachments->where('type', 'authorization_letter')->first(); @endphp @if ($authorizationLetter) [View Here] @else No documents available @endif