@if ($isPendingProfile) @includeWhen($isPendingProfile, 'pages.company-profile.header-component', ['head_title' => 'KYC Documents', 'head_sm' => 'Please Provide KYC Documents'])
@endif
@forelse ($documents as $document) @php $doc = $approved_documents->where('kyc_doc_id', $document->id)->first(); if($doc){ $status = 'approved'; if(@$doc->modifications[0]){ $status = 'Partially Approved'; if($doc->modifications[0]->disapprovals->count()){ $status = 'rejected'; } } } if(!$doc){ $doc = auth()->user()->company->POCKycDoc()->whereJsonContains('modifications->kyc_doc_id->modified', $document->id)->first(); if($doc && $doc->disapprovals->count()){ $status = 'rejected'; }else{ $status = 'pending'; } } $color = $status == 'approved' ? '#28C76F' : ($status == 'rejected' ? '#EA5455' : '#FF9F43') ; @endphp
@empty @endforelse
@forelse ($documents as $document)
@if ($document->id == request()->document_id) @include('pages.company-profile.document.fields'); @endif
@empty @endforelse