@endif
@if($showRemarkUpload)
@php
$requiredDocs = ['ULREJ01'];
$is_delete = true;
@endphp
@include('livewire.ecs.partials.files')
@endif
@if ($step === 1)
@elseif ($step === 5)
@include('livewire.ecs.scrutiny.ecs-payment-doc')
@elseif ($step === 3)
@php
// Align ECS promoter docs with NSO scrutiny: ULAPPFE, ULAPP05, ULFEQ, ULAPP06
$docData = collect($documentData)->firstWhere('c_document_id', 'ULAPPFE');
$ULAPPFE = ($docData['latest_files'] ?? null) ? 'ULAPPFE' : null;
$docData = collect($documentData)->firstWhere('c_document_id', 'ULAPP05');
$ULAPP05 = ($docData['latest_files'] ?? null) ? 'ULAPP05' : null;
$docData = collect($documentData)->firstWhere('c_document_id', 'ULFEQ');
$ULFEQ = ($docData['latest_files'] ?? null) ? 'ULFEQ' : null;
$docData = collect($documentData)->firstWhere('c_document_id', 'ULAPP06');
$ULAPP06 = ($docData['latest_files'] ?? null) ? 'ULAPP06' : null;
@endphp
@php $docIds = [$ULAPPFE, $ULAPP05 ,$ULFEQ]; @endphp
@elseif ($step === 4)
@include('livewire.ecs.scrutiny.service')
@elseif ($step === 2)
@include('livewire.ecs.scrutiny.ecs-company-details')
@endif