@if($scrutinyCount > 0 )
@if($isSubmitting)
@endif
@if($showRemarkUpload)
@php
$requiredDocs = ['DOTREM'];
$is_delete = true;
@endphp
@include('layout.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', 'ULAPPFE');
$ULAPPFE=($docData['latest_files'])?'ULAPPFE':null;
$docData = collect($documentData)->firstWhere('c_document_id', 'ULAAGR');
$ULAAGR=($docData['latest_files'])?'ULAAGR':null;
$docData = collect($documentData)->firstWhere('c_document_id', 'ULAAPP');
$ULAAPP=($docData['latest_files'])?'ULAAPP':null;
@endphp
@php
$docIds = [$ULAPPFE,$ULAAGR,$ULAAPP];
@endphp
@elseif ($step === 4)
{{-- Step 4: Payment & Documents --}}
@include('livewire.ip.scrutiny.ip-payment-doc')
@endif
@else
{!! $this->previewScrutinyApplication() !!}
@endif