@include('../bd_section/layouts.header')
@include('../bd_section/layouts.sidebar')
@php
$pan_arr = array("father_name","marital_status","have_pan_card");
$hv_dataostille_arr = array("docs_issued_state","docs_for_apostilled");
$visaConversion_arr = array("father_nationality","indian_mobile_no","expect_travel_dt","leave_date","duration_of_extension","current_visa_type","distinguishing_mark","father_currently_living","mother_currently_living");
$visaExtension_arr = array("expect_travel_dt","leave_date","duration_of_extension","current_visa_type","distinguishing_mark","father_currently_living","mother_currently_living");
$surrender_arr = array("distinguishing_mark","educational_qualification","isthere_nm_change","occupation","marital_status","emergency_contact_name","emergency_contact_address","emergency_contact_mobile_no","emergency_contact_email");
$indiaVisa_arr = array("duration_of_extension","expect_travel_dt","arrival_first_port","india_exit_port","distinguishing_mark","educational_qualification","father_name","father_nationality","birth_place_father","mother_name","mother_nationality","birth_place_mother","marital_status","employed_status","visited_india","country_visited_5years","ref_india_name","ref_india_address","ref_india_phone","ref_home_name","ref_home_address","ref_home_phone");
$india_pass_renewal_arr = array("application_type","passport_booklet","isthere_nm_change","educational_qualification","marital_status","employed_status","printable_addr","is_current_address_different","police_station","indian_mobile_no","emergency_contact_name","emergency_contact_address","emergency_contact_mobile_no","emergency_contact_email");
$pcc_arr = array("purpose_of_pcc","pcc_for_which_country","marital_status","employed_status","educational_qualification","is_current_address_different","indian_mobile_no","police_station");
$ocicard_arr = array("father_nationality","father_profession","mother_nationality","mother_profession","marital_status","distinguishing_mark","isthere_nm_change","employed_status","educational_qualification","already_have_oci_card","have_dual_nationality","relative_in_india","voterid_status","rationcard_status");
$fields_arr = $ocicard_arr;
if($hv_data->service->slug == "apostille-services"){
$fields_arr = $hv_dataostille_arr; }
elseif($hv_data->service_main_cat->category_id == 1 or Str::contains($hv_data->service->slug,"pio-to-oci") or Str::contains($hv_data->service->slug,"oci-miscellaneous") or Str::contains($hv_data->service->slug,"oci-card")){
$fields_arr = $ocicard_arr; }
elseif(($hv_data->service_main_cat->category_id == 3 or $hv_data->service_main_cat->category_id == 5) and $hv_data->service->slug == "india-visa" or $hv_data->service->slug == "tourist-visa-multiple-entry"){
$fields_arr = $indiaVisa_arr;}
elseif(Str::contains($hv_data->service->slug,"pan-card")){
$fields_arr = $pan_arr; }
elseif($hv_data->service->slug == "apply-for-renunciation" or str_contains($hv_data->service->slug, 'surrender')) {
$fields_arr = $surrender_arr; }
elseif($hv_data->service->slug == "x1-visa-extension-services"){
$fields_arr = $visaExtension_arr; }
elseif($hv_data->service->slug == "e-visa-conversion"){
$fields_arr = $visaConversion_arr;
}
elseif($hv_data->service->slug == "indian-passport-renewal"){
$fields_arr = $india_pass_renewal_arr;
}
elseif($hv_data->service->slug == "police-clearance-certificate"){
$fields_arr = $pcc_arr;
}
$is_empty = 1;
if($hv_data->service->slug != "oci-gratis") {
foreach ($fields_arr as $field) {
$value = trim($hv_data->$field);
if ($value === '' || is_null($value)) {
$is_empty = 0;
}
if($hv_data->adult_status == 'minor' && ($field == "marital_status" || $field == "employed_status" || $field == "voterid_status" || $field == "rationcard_status")){
if ($value === '' || is_null($value)) {
$is_empty = 1;
}
}
}
}
$nritblid = $hv_data->nri_applicate_id;
$nrivfsgovt = App\Models\CofNriUserDetail::where('id',$nritblid)->select('id','cof_id','vfs_id','govt_id','bd_doc_status','missing_docs','vfs_status','govt_status')->first();
$vfs_msg = 0;
$govt_msg = 0;
if(!empty($nrivfsgovt) and ($nrivfsgovt->vfs_id == null or $nrivfsgovt->vfs_id == "")) { $vfs_msg = 1; }
if(!empty($nrivfsgovt) and ($nrivfsgovt->govt_id == null or $nrivfsgovt->govt_id == "")) { $govt_msg = 1; }
@endphp
@php $paid_currency = "$";
if($hv_data->paid_currency != null or $hv_data->paid_currency != ""){
if($hv_data->paid_currency == "USD") { $paid_currency = "$"; } else { $paid_currency = $hv_data->paid_currency; }
}
else {
if((strpos($hv_data->trans_id, 'gl_o') !== false and $hv_data->visa_fee > 2000) or ($hv_data->visa_fee > 2000 and (strpos($hv_data->trans_id, 'pay_') !== false or $hv_data->trans_id == "razorpay"))){
$paid_currency = "₹";
}
else if(strpos($hv_data->trans_id, 'pay_') !== false or $hv_data->trans_id == "razorpay"){
$paid_currency = "₹";
}
else if(strpos($hv_data->trans_id, 'gl_o') !== false){
$paid_currency = "$";
}
}
@endphp
Paid Amount: {{$paid_currency}} {{round($hv_data->visa_fee)}}
Upload Documents ({{$hv_data->appli_nm}} - [@if($hv_data->service->slug == "oci-card" and $hv_data->adult_status == "minor") Minor OCI Card Application @else {{$hv_data->service->menu_title}}@endif])
@if($is_empty == 0)
Few details are missing in your {{$hv_data->service->menu_title}}, Please fill them and continue your Application.
Fill Form
@endif
@php
$reason_docIds = App\Models\ReasonRelatedData::where('id',$hv_data->doc_cat_id)->select('after_checkout_docs')->first();
if(empty($reason_docIds)){
$services = App\Models\Service::where('id',$hv_data->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 = [];
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', $hv_data->nri_applicate_id)
->get()
->groupBy(['document_id'])
->toArray();
@endphp
@if(!empty($reason_docIdsdata))
@foreach($reason_docIdsdata as $key => $reason_docIds)
@php
$docTypeId = $reason_docIds->id;
$frontDocs = $uploadedDocuments[$docTypeId] ?? [];
@endphp
{{--{{$key+1}}. --}} {{ $reason_docIds->name }}
@if(isset($uploadedDocuments[$docTypeId][0]) && $uploadedDocuments[$docTypeId][0]['status'] != "approve")
@endif
Photo Status:
@if(isset($uploadedDocuments[$docTypeId][0]))
@php if($uploadedDocuments[$docTypeId][0]['status'] == "panding") { echo "Pending"; } else if($uploadedDocuments[$docTypeId][0]['status'] == "reject") { echo "Rejected"; } else { echo "Approved"; } @endphp
@else
Not Uploaded Yet
@endif
@if(isset($uploadedDocuments[$docTypeId]))
@foreach($uploadedDocuments[$docTypeId] as $docimg)
@php $file_nm = $docimg['file_path'];
$f_arr = explode(".",$file_nm);
$arr_sz = sizeof($f_arr);
$file_ext = $f_arr[$arr_sz - 1];
if($file_ext == "pdf"){
$img_nm = "uploads/checkout_docs/document/pdf_icon.png";
}
else {
$img_nm = $docimg['file_path'];
}
$img_href = env('FRONT_BASE_URL').$docimg['file_path'];
@endphp
-
@endforeach
@endif
@endforeach
@endif
@php
$docIds = json_decode($hv_data->cof_nri_detail->additional_docs, true);
if($docIds != null){
$reason_docIdsdata = App\Models\ReasonRelatedDocument::whereIn('id', $docIds)->select('id', 'name')->get();
$uploadedDocuments = App\Models\CkReasonDocument::where('nir_applicantid', $hv_data->nri_applicate_id)->get()
->groupBy(['document_id'])
->toArray();
}
@endphp
@if($docIds != null)
@if(!empty($reason_docIdsdata))
@foreach($reason_docIdsdata as $key => $reason_docIds)
@php
$docTypeId = $reason_docIds->id;
$frontDocs = $uploadedDocuments[$docTypeId] ?? [];
@endphp
{{--{{$key+1}}. --}} {{ $reason_docIds->name }}
@if(isset($uploadedDocuments[$docTypeId][0]) && $uploadedDocuments[$docTypeId][0]['status'] != "approve")
@endif
Photo Status:
@if(isset($uploadedDocuments[$docTypeId][0]))
@php if($uploadedDocuments[$docTypeId][0]['status'] == "Panding") { echo "Pending"; } else if($uploadedDocuments[$docTypeId][0]['status'] == "reject") { echo "Rejected"; } else { echo "Approved"; } @endphp
@else
Not Uploaded Yet
@endif
@if(isset($uploadedDocuments[$docTypeId]))
@foreach($uploadedDocuments[$docTypeId] as $docimg)
@php $file_nm = $docimg['file_path'];
$f_arr = explode(".",$file_nm);
$arr_sz = sizeof($f_arr);
$file_ext = $f_arr[$arr_sz - 1];
if($file_ext == "pdf"){
$img_nm = "uploads/checkout_docs/document/pdf_icon.png";
}
else {
$img_nm = $docimg['file_path'];
}
$img_href = env('FRONT_BASE_URL').$docimg['file_path'];
@endphp
-
@endforeach
@endif
@endforeach
@endif
@endif
@if($is_empty == 0)
Pendings
@if($hv_data->service->slug == "apostille-services")
@include('bd_section.pending-froms.apostille')
@elseif($hv_data->service_main_cat->category_id == 1 or Str::contains($hv_data->service->slug,"pio-to-oci") or Str::contains($hv_data->service->slug,"oci-miscellaneous") or Str::contains($hv_data->service->slug,"oci-card"))
@include('bd_section.pending-froms.oci_card')
@elseif(($hv_data->service_main_cat->category_id == 3 or $hv_data->service_main_cat->category_id == 5) and $hv_data->service->slug == "india-visa" or $hv_data->service->slug == "tourist-visa-multiple-entry")
@include('bd_section.pending-froms.india_visa')
@elseif(Str::contains($hv_data->service->slug,"pan-card"))
@include('bd_section.pending-froms.pan_card')
@elseif($hv_data->service->slug == "apply-for-renunciation" or str_contains($hv_data->service->slug, 'surrender'))
@include('bd_section.pending-froms.surrender_renunciation')
@elseif($hv_data->service->slug == "x1-visa-extension-services")
@include('bd_section.pending-froms.visa_extension')
@elseif($hv_data->service->slug == "e-visa-conversion")
@include('bd_section.pending-froms.visa_conversion')
@elseif($hv_data->service->slug == "police-clearance-certificate")
@include('bd_section.pending-froms.pcc')
@elseif($hv_data->service->slug == "indian-passport-renewal")
@include('bd_section.pending-froms.indian_pass_renewal')
@endif
@endif
@if(strpos($hv_data->service->slug, "apostille") === false and strpos($hv_data->service->slug, "x1-visa") === false)
Account Activation
@php
$cofnri = App\Models\CofNriUserDetail::where('id',$hv_data->nri_applicate_id)->select('id','vfs_id','vfs_pass','vfs_status','govt_id','govt_pass','govt_status')->first();
$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
@if(strpos($hv_data->service->slug, "gratis") === false)
@endif
@endif
@include('../bd_section/layouts.footer')