{{$userPendingCount}}
{{$userPendingCount}}
{{$bdPendingCount}}
{{$expediteCount}}
{{$closedCount}}
| App ID | input | User Name | Email/Phone | Services Name | Application Stage | Date of Submission | User DB Link | Email Counts | Refund | Has REjected DOc | Forms | |||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| #{{ $resfrist->unique_id }} | {{ $first_serv->appli_nm }} | {{ $resfrist->email }} / {{ $resfrist->mobile_number }} | @if(isset($resfrist->service)) ( @if($resfrist->service->slug == "oci-card" && $resfrist->adult_status == "minor") Minor OCI Card Application @else {{ $resfrist->service->menu_title }} @endif ) @endif | {{--{{ $resfrist->adult_status }} | --}}@if($currentStatus) {{ $statusLabels[$currentStatus] ?? ucfirst(str_replace('_',' ',$currentStatus)) }} @else @if($is_err == 0) Pending at User @else Document Under Review @endif @endif | {{ \Carbon\Carbon::parse($resfrist->payment_dt ?? $resfrist->updated_at)->timezone('Asia/Kolkata')->format('d M Y, h:i A') }} | {{--@if(in_array(15, $addons)) @endif Paid | --}}@php $toMail = $resfrist->email ; $count = \App\Models\ZohoMail::where('from_address', $toMail)->orwhere('to_address', $toMail)->get()->count(); @endphp | {{ $count??0 }} | @php $reason_docIds = App\Models\ReasonRelatedData::where('id',$resfrist->doc_cat_id)->select('after_checkout_docs')->first(); if(empty($reason_docIds)){ $services = App\Models\Service::where('id',$resfrist->reason_id)->select('id','doc_pro_id')->first(); $reason_docIds = App\Models\ReasonRelatedData::where('reason_id',$services->doc_pro_id)->whereIn('type',['doc_cat','document'])->select('after_checkout_docs')->first(); } $reason_docIdsdata = collect(); $docIds = json_decode(optional($resfrist->cof_nri_detail)->additional_docs, true) ?? []; $allDocIds = []; if (!empty($reason_docIds) && !empty($reason_docIds->after_checkout_docs)) { $afterCheckoutIds = explode(',', $reason_docIds->after_checkout_docs); $allDocIds = array_merge($afterCheckoutIds, $docIds); } else { $allDocIds = $docIds; } $allDocIds = array_filter(array_unique($allDocIds)); if(!empty($reason_docIds)){ $reason_docIdsdata = App\Models\ReasonRelatedDocument::whereIn('id',$allDocIds)->select('id','name')->get(); } $uploadedDocuments = App\Models\CkReasonDocument::where('nir_applicantid', $resfrist->nri_applicate_id)->get()->groupBy('document_id')->toArray(); @endphp @if($reason_docIdsdata->isNotEmpty()) @foreach($reason_docIdsdata as $key => $docData) @php $docTypeId = $docData->id; $frontDocs = $uploadedDocuments[$docTypeId] ?? []; $docStatus = $frontDocs[0]['status'] ?? null; if($docStatus == "reject"){ dd('test'); $hasRejected == true; break; } $doc_reject_by = $frontDocs[0]['rejected_by'] ?? null; @endphp @endforeach @endif | @if(isset($hasRejected) && $hasRejected == true) rejected @endif | View |