@foreach ($formSection->formSubSections->sortBy('order_index') ?? [] as $formSubSection)
@php
if ($formSubSection->formDetails->count() == 0 && !($formSubSection->section_name == 'Service Classification' || $formSubSection->section_name == 'Product Classification')) {
continue;
}
@endphp
@if ($formSubSection->section_name == 'Service Classification' || $formSubSection->section_name == 'Product Classification')
{{ $application->product_group->parent->parent->name }}
{{ $application->product_group->parent->name }}
{{ $application->product_group->name }}
@else
@foreach ($formSubSection->formDetails->where('is_deprecated', false)->sortBy('order_index') as $formDetail)
@if (View::exists('pages.apps.evaluation.form-input.input.' . $formDetail->input_type))
@include('pages.apps.evaluation.form-input.input.' . $formDetail->input_type)
@elseif ($formDetail->input_type == 'image')
{{-- Do Nothing --}}
@else
@include('pages.apps.evaluation.form-input.input.common')
@endif
@endforeach
@endif
@php
$evaluatorReview = $evaluator_reviews->where(
'type',
$item->id . '_section_' . $formSubSection->id,
)
->first();
@endphp
{{ $evaluatorReview?->is_comply == 1 ? 'Comply' : 'Not Comply' }}
{{ $evaluatorReview?->notes ?? '-' }}
@php
$sectionReview = null;
if ($application_section && $application_section->review) {
$sectionReview = $application_section->review
->where(
'type',
$item->id . '_section_' . $formSubSection->id,
)
->first();
}
@endphp
@endforeach