@if($scrutinyCount > 0 )
@if($isSubmitting)
@endif
@if($showRemarkUpload)
@php
$requiredDocs = ['WRREJ01'];
$is_delete = true;
@endphp
@include('livewire.adc.partials.files')
@endif
@if ($step === 1)
{{-- Step 1: Company Information --}}
@elseif ($step === 2)
{{-- Step 2: Company & Other Details --}}
@elseif ($step === 3)
{{-- Step 3: Promoter Details --}}
@php
$docData = collect($documentData)->firstWhere('c_document_id', 'WRAPPFE');
$WRAPPFE=($docData['latest_files'])?'WRAPPFE':null;
$docData = collect($documentData)->firstWhere('c_document_id', 'WRAPP02');
$WRAPP02=($docData['latest_files'])?'WRAPP02':null;
$docData = collect($documentData)->firstWhere('c_document_id', 'WRAPP03');
$WRAPP03=($docData['latest_files'])?'WRAPP03':null;
@endphp
@php
$docIds = [$WRAPPFE,$WRAPP02];
@endphp
@elseif ($step === 4)
{{-- Step 4: Payment & Documents --}}
@include('livewire.adc.scrutiny.adc-payment-doc')
@endif
@else
{!! $this->previewScrutinyApplication() !!}
@endif