@props(['item' => new \App\Models\Item()])

{{ $alphabet[$alphabetIndex] }}. {{ $formSection->section_name }}

@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
{{ $formSubSection->section_name }}
@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?->remarks ?? '-' }}

{{ $evaluatorReview?->notes ?? '-' }}

@php $plReview = null; if ($application_section && $application_section->review) { $plReview = $application_section->review ->where( 'type', $item->id . '_section_' . $formSubSection->id, ) ->first(); } @endphp
Project Leader Review
{{ $plReview?->is_comply == 1 ? 'Comply' : 'Not Comply' }}
{{ $plReview->remarks ?? '' }}
@endforeach