Applications List

@if(!empty($service_forms)) @foreach($service_forms as $key => $res)

Payment Receipt
@php $cofnri = App\Models\CofNriUserDetail::where('id',$res->nri_applicate_id)->select('id','vfs_id','vfs_pass','vfs_status','govt_id','govt_pass','govt_status','application_status')->first(); $addonIds = explode(',', $res->addons_ids); $numericIds = array_filter($addonIds, fn($id) => is_numeric($id)); $specialAddons = []; if (in_array('b', $addonIds)) { $specialAddons[] = ['title' => 'Birth Apostille', 'price' => 40, 'currency' => '$']; } if (in_array('m', $addonIds)) { $specialAddons[] = ['title' => 'Marriage Apostille', 'price' => 40, 'currency' => '$']; } $addons = \App\Models\ServiceAddonCombo::whereIn('id', $numericIds)->get(); $addonsiddd = \App\Models\ServiceAddonCombo::whereIn('id', $numericIds)->pluck('addon_id')->toArray(); @endphp @if(in_array(15, $addonsiddd)) @endif Paid
  • Service Name: {{$res->service->menu_title}}
  • Date: {{$res->payment_tm}}
  • Visa Fee: {{$res->service->currency}}{{$res->service->visament_fee}}
  • @if(!empty($specialAddons) || $addons->isNotEmpty()) @foreach($specialAddons as $sAddon)
  • {{ $sAddon['title'] }}: {{ $sAddon['currency'] }}{{ $sAddon['price'] }}
  • @endforeach @foreach($addons as $addon)
  • {{ $addon->addon->title }}: {{ $addon->currency_sign }}{{ $addon->price }}
  • @endforeach @endif
  • Transaction ID: {{$res->trans_id}}
  • Payment Method: @php $paymentMethod = 'Unknown'; if (!empty($res->trans_id)) { if (str_starts_with($res->trans_id, 'gl_')) { $paymentMethod = 'Payglocal'; } elseif (str_starts_with($res->trans_id, 'pay_')) { $paymentMethod = 'PayPal'; } elseif (str_starts_with(strtolower($res->trans_id), 'razorpay')) { $paymentMethod = 'Razorpay'; } } @endphp {{ $paymentMethod }}
Amount Paid: {{$res->paid_currency ?? $res->service->currency}} {{$res->visa_fee}}

@if($res->service->slug == "apostille-services") @include('new_bd_section.froms.apostille') @elseif($res->service_main_cat->category_id == 1 or Str::contains($res->service->slug,"pio-to-oci") or Str::contains($res->service->slug,"oci-miscellaneous") or Str::contains($res->service->slug,"oci-card")) @if($res->service->slug != "oci-gratis") @include('new_bd_section.froms.oci_card') @endif @elseif(($res->service_main_cat->category_id == 3 or $res->service_main_cat->category_id == 5) and $res->service->slug == "india-visa" or $res->service->slug == "india-visa-5-year-uk" or $res->service->slug == "tourist-visa-multiple-entry" or $res->service->slug == "1-year-tourist-e-visa-multiple-entry" or $res->service->slug == "5-years-tourist-e-visa-multiple-entry" or $res->service->slug == "tourist-e-visa-single-entry") @include('new_bd_section.froms.india_visa') @elseif(Str::contains($res->service->slug,"pan-card")) @include('new_bd_section.froms.pan_card') @elseif($res->service->slug == "apply-for-renunciation" or str_contains($res->service->slug, 'surrender')) @include('new_bd_section.froms.surrender_renunciation') @elseif($res->service->slug == "x1-visa-extension-services") @include('new_bd_section.froms.visa_extension') @elseif($res->service->slug == "e-visa-conversion") @include('new_bd_section.froms.visa_conversion') @elseif($res->service->slug == "police-clearance-certificate") @include('new_bd_section.froms.pcc') @elseif($res->service->slug == "indian-passport-renewal") @include('new_bd_section.froms.indian_pass_renewal') @endif

Upload Documents
@php $reason_docIds = App\Models\ReasonRelatedData::where('id',$res->doc_cat_id)->select('after_checkout_docs')->first(); if(empty($reason_docIds)){ $services = App\Models\Service::where('id',$res->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(); if(!empty($reason_docIds)){ $reason_docIdsdata = App\Models\ReasonRelatedDocument::whereIn('id',explode(',', $reason_docIds->after_checkout_docs))->select('id','name')->get(); } $uploadedDocuments = App\Models\CkReasonDocument::where('nir_applicantid', $res->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; @endphp
{{ $docData->name }}
{{--@if(!empty($frontDocs) && $docStatus != "approve") @endif--}}
Photo Status: @if(!empty($frontDocs)) @switch($docStatus) @case('panding') Pending @break @case('reject') Rejected @break @case('approve') Approved @break @default Pending @endswitch @else Not Uploaded Yet @endif
    @if(!empty($frontDocs)) @foreach($frontDocs as $docimg) @php $file_nm = $docimg['file_path']; $file_ext = pathinfo($file_nm, PATHINFO_EXTENSION); $img_nm = $file_ext == "pdf" ? "uploads/checkout_docs/document/pdf_icon.png" : $docimg['file_path']; $img_href = env('FRONT_BASE_URL') . $docimg['file_path']; if($docimg['status'] == "approve"){ $img_class="border border-success"; } elseif($docimg['status'] == "reject") { $img_class="border border-danger"; } else { $img_class="border border-warning"; } @endphp
  • uploaded image
  • @endforeach @endif
@endforeach @endif @php $frontDocs = $uploadedDocuments[0] ?? []; $docStatus = $frontDocs[0]['status'] ?? null; @endphp
Additional Documents
Photo Status: @if(!empty($frontDocs)) @switch($docStatus) @case('panding') Pending @break @case('reject') Rejected @break @case('approve') Approved @break @default Pending @endswitch @else Not Uploaded Yet @endif
    @if(!empty($frontDocs)) @foreach($frontDocs as $docimg) @php $file_nm = $docimg['file_path']; $file_ext = pathinfo($file_nm, PATHINFO_EXTENSION); $img_nm = $file_ext == "pdf" ? "uploads/checkout_docs/document/pdf_icon.png" : $docimg['file_path']; $img_href = env('FRONT_BASE_URL') . $docimg['file_path']; @endphp
  • uploaded image
  • @endforeach @endif
@if(Str::contains($res->service->slug,"oci-card") || Str::contains($res->service->slug,"oci-miscellaneous-services") || Str::contains($res->service->slug,"pio-to-oci-conversion") )

Account Activation Deatils
@php $vfsId = ""; $vfsPass = ""; $govtId = ""; $govtPass = ""; if($cofnri->vfs_id != null and $cofnri->vfs_id != ""){ $vfsId = $cofnri->vfs_id; $vfsPass = $cofnri->vfs_pass; } if($cofnri->govt_id != null and $cofnri->govt_id != ""){ $govtId = $cofnri->govt_id; $govtPass = $cofnri->govt_pass; } $is_incorrect = 1; if($cofnri->vfs_status == 2 or $cofnri->govt_status == 2){ $is_incorrect = 2; } @endphp @if($is_incorrect == 2)
Your login password is incorrect please re-verify
@endif
@endif

@csrf
@if(!empty($res->cof_nri_detail->govt_file_path)) View Document @endif
Submit
@endforeach @endif