@endif
@if($showRemarkUpload)
@php
$requiredDocs = ['WRREJ01'];
$is_delete = true;
@endphp
@include('livewire.pmwani.partials.files')
@endif
@if ($step === 1)
{{-- Step 1: Company Information --}}
{{-- --}}
@elseif ($step === 2)
{{-- Step 2: Application Type & Company Documents --}}
@include('livewire.pmwani.scrutiny.pmwani-application-type')
@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: Other Details --}}
@include('livewire.pmwani.scrutiny.pmwani-other-details')
@endif
@else
{!! $this->previewScrutinyApplication() !!}
@endif