₹";
$company_name = "";
?>
";
echo "";
echo "
VISIT REPORT
";
echo "for the case of";
echo "" . $main_applicant_name . "
";
echo "";
echo "
";
?>
| Visit Initiated Date | : | ' . $pd_master_details[0]['createdon'] . ' | ';
echo '| Visit Date | : | ' . $pd_master_details[0]['pd_visit_date'] . ' |
';
echo '| Visit Report Date | : | ' . $pd_master_details[0]['pd_report_generated_date'] . ' |
';
echo '| Visit Initiated by | : | ' . $pd_master_details[0]['lender_full_name'] . ' |
';
echo '| Loan Application ID | : | ' . $pd_master_details[0]['lender_applicant_id'] . ' |
';
echo '| Product | : | Home Loan |
';
echo '| Customer Segment | : | Self Employed |
';
?>
";
echo "
";
echo "
";
echo "
";
echo "
";
echo "";
$header_lender_disclaimer = MYUTIL::dispatchDisclaimer($lender_disclaimer, 1);
if (isset($header_lender_disclaimer['disclaimer']) && $header_lender_disclaimer['disclaimer'] != '' && $header_lender_disclaimer['type'] == 1) {
echo 'Disclaimer: ' . $header_lender_disclaimer['disclaimer'] . '
';
}
echo 'Registered / Corporate Office: SineEdge Consulting Private Limited. A-211, Pioneer Urban Square, Golf Course Extension Road, Sector 62, Gurgaon, Haryana - 122002
';
?>
';
echo 'GENERAL INFORMATION:
';
$general_form = json_decode($pd_processed_forms[27][0]['processed_json'], true);
$value = $general_form['json'];
$all_applicant_details = $applicants_details;
//echo "i am here".$value['is_person_met'];
if (strtoupper($value['is_person_met']) == 'YES') {
$person = isset($value['Name_of_the_Person_met_master']) ? $value['Name_of_the_Person_met_master'] : $value['Name_of_the_Person_met'];
echo '' . 'Applicant ('.$person.') was met at the visited address.' . '
';
} else if (strtoupper($value['is_person_met']) == 'NO') {
$relation = $value['relationship_master'];
echo '' . '(' . $value['Name_of_the_Person'] . ') (' . $relation . ') was met at the visited address during visit.' . '
';
}
if (isset($general_form['general_remark']) && $general_form['general_remark'] != "") {
echo '' . $general_form['general_remark'] . '
';
}
?>
';
$address_form = json_decode($pd_processed_forms[28][0]['processed_json'], true);
$address_value = $address_form['json'];
// print_r($address_value);die();
if (!empty($address_value)) {
echo 'ADDRESS DETAILS:
';
if (strtoupper($address_value['is_pd_done_on_initiated_address']) == 'YES') {
echo '' . '
Visit Initiated Address: ' . $address_value['initiated_address'] . ' , ' . $address_value['city_master'] . ' , ' . $address_value['state_master'] . ' , ' . $address_value['pincode_master'] . '.
';
}
if (strtoupper($address_value['is_pd_done_on_initiated_address']) == 'NO') {
echo '' . '
Address Where Visit is Initiated: ' . $address_value['initiated_address'] . ' , ' . $address_value['city_master'] . ' , ' . $address_value['state_master'] . ' , ' . $address_value['pincode_master'] . '.
Address Where Visit was actually done: ' . $address_value['actual_pd_address'] . ' , ' . $address_value['city2_master'] . ' , ' . $address_value['state2_master'] . ' , ' . $address_value['pincode2_master'] . '.
Reason for change in Visit address: ' . $address_value['end_use'] . '.
';
}
echo '' . 'The Field Visit was done at ' . $address_value['address_type_master'] . ' of the loan applicants. The ' . $address_value['address_type_master'] . ' is located in a ' . $address_value['locality_master'] . ' and the estimated area of the ' . $address_value['address_type_master'] . ' is ' .$address_value['estimated_area'].' '. $address_value['uom_master'] . '. The location was ' . $address_value['pd_location_master'] . '. As Per Officer, the ' . $address_value['address_type_master'] . ' is situated in a ' . $address_value['comment_locality_master'] . ' Locality. ' . '
';
}
?>
';
echo 'VISIT DETAILS:
';
$residence_visit_data = json_decode($pd_processed_forms[30][0]['processed_json'], true);
$rv_value = $residence_visit_data['json'];
$year = (abs($rv_value['year']) >= 2) ? $rv_value['year'] . ' Years' : $rv_value['year'] . ' Year';
$month = '';
if ($rv_value['month'] > 0 && (!empty($rv_value['month'])) && isset($rv_value['month'])) {
$month = (abs($rv_value['month']) >= 2) ? $rv_value['month'] . ' Months' : $rv_value['month'] . ' Month';
$month = ' and ' . $month;
}
$type_of_proof = preg_replace("/_/i", ' ', $rv_value['type_of_proof']);
$type_of_proof = ucwords($type_of_proof);
echo '- The Applicant is residing at the visited address for ' . $year . $month . '.
- The Residence is ' . ucwords($rv_value['Visited_address_is_rented']) . ' by the applicant.
';
if (strtoupper($rv_value['address_proof_shared']) == 'YES') {
echo '- Address Proof: ' . $type_of_proof . ' was shared during visit.
';
}
if (strtoupper($rv_value['address_proof_shared']) == 'NO') {
echo '- Address Proof was not shared during visit.
';
}
// if($ov_value['Visited_address_is_rented'] != 'not disclosed '){
// echo '- The '.$ov_value['visited_address_is'].' is '.$ov_value['Visited_address_is_rented'].'.
';
// }
echo '
';
?>
NEIGHBOURHOOD / REFERENCE CHECK
0) {
$neighbourhood_name = 'Neighbour Check was done with ';
$neighbourhood_name .= $neighbour_value['neighbourhood_name'] . '.';
$neighbourhood_do_know = null;
$neighbourhood_business_running_yr = null;
$ownership = null;
$neighbourhood_name_only = $neighbour_value['neighbourhood_name'];
if (strtoupper($neighbour_value['do_know']) == 'YES') {
$neighbourhood_do_know = $neighbour_value['neighbourhood_name'] . " knows about applicants and their business.";
} else if (strtoupper($neighbour_value['do_know']) == 'NO') {
$neighbourhood_do_know = $neighbour_value['neighbourhood_name'] . " did not know about the applicant or their business.";
}
if ($neighbour_value['how_long_do_know_in_year'] || $neighbour_value['how_long_do_know_in_month']) {
$neighbourhood_business_running_yr = $neighbour_value['neighbourhood_name'] . " confirmed that the business has been in operation for ";
$neighbourhood_business_running_yr .= ($neighbour_value['how_long_do_know_in_year'] == 1) ? $neighbour_value['how_long_do_know_in_year'] . " year" : (($neighbour_value['how_long_do_know_in_year'] > 1) ? $neighbour_value['how_long_do_know_in_year'] . " years" : "");
$neighbour_value['how_long_do_know_in_year'] && $neighbour_value['how_long_do_know_in_month'] ? $neighbourhood_business_running_yr .= ' and ' : '';
$neighbourhood_business_running_yr .= ($neighbour_value['how_long_do_know_in_month'] == 1) ? $neighbour_value['how_long_do_know_in_month'] . " month" : (($neighbour_value['how_long_do_know_in_month'] > 1) ? $neighbour_value['how_long_do_know_in_month'] . " months" : "");
$neighbourhood_business_running_yr .= '.';
} else {
$neighbourhood_business_running_yr = $neighbour_value['neighbourhood_name'] . " was not aware of how long the business is in operation.";
}
$ownwers_list = '';
if (isset($neighbour_value['know_organisation_owner']) && strtoupper($neighbour_value['know_organisation_owner']) == 'YES') {
if (isset($neighbour_value['organisation_owner'])) {
// echo "type" . gettype($neighbour_value['organisation_owner']);
for ($i = 0; $i < count($neighbour_value['organisation_owner']); $i++) {
$owner = $neighbour_value['organisation_owner'][$i];
if ($owner != 0) {
$title = MYUTIL::applicantTitleName($applicants_details, $owner);
$ownwers_list .= $title . ' ' . APPLICANTNAME_GRABBER::getApplicantsNameById($owner, $applicants_details) . ' , ';
} else {
$ownwers_list .= ' ' . $neighbour_value['other_organisation_owner'] . ' , ';
}
}
//echo $ownwers_list;
//$ownwers_list = substr_replace($ownwers_list,'', strrpos(-$ownwers_list,','),1);
//echo $ownwers_list;
//echo $ownwers_list;echo "**********";
$ownwers_list = substr_replace($ownwers_list, '', strrpos($ownwers_list, ','), 1);
if (strrpos($ownwers_list, ',')) {
$ownwers_list = substr_replace($ownwers_list, ' and ', strrpos($ownwers_list, ','), 1);
}
$grammer1 = count($neighbour_value['organisation_owner']) > 1 ? ' are ' : ' is ';
$grammer2 = count($neighbour_value['organisation_owner']) > 1 ? 'owners' : 'owner';
$ownership = 'As per ' . $neighbour_value['neighbourhood_name'] . ' the ' . $grammer2 . ' of ' . $company_name . $grammer1 . $ownwers_list . '.';
}
} else {
$ownership = $neighbour_value['neighbourhood_name'] . " was not aware of the business ownership.";
}
$existNeighRefCheck = array('neighbourhood_name_only' => $neighbourhood_name_only, 'neighbourhood_name' => $neighbourhood_name, 'neighbourhood_do_know' => $neighbourhood_do_know, 'neighbourhood_business_running_yr' => $neighbourhood_business_running_yr, 'ownership' => $ownership);
?>
Neighbourhood Check Status is .
Status of the check: could not verify.
' . $neighbourhood_form_common_remarks . '';
}
?>
';
echo 'CREDIT MANAGER`S SPECIFIC QUERIES:
';
//echo '
';
if (isset($credit_officier_specific_queries['additional_requirements_processed']) && count($credit_officier_specific_queries['additional_requirements_processed'])) {
foreach ($credit_officier_specific_queries['additional_requirements_processed'] as $key => $value) {
echo 'Question - ' . $value['question'] . '
';
echo 'Answer - ' . $value['answer'];
echo '
';
}
} else {
echo 'There are no specific queries raised by Credit Manager.';
}
echo '
';
echo 'DOCUMENT TO BE PHOTOGRAPHED/SCANNED:
';
//
if (isset($credit_officier_specific_queries['docs_to_be_sighted_processed']) && count($credit_officier_specific_queries['docs_to_be_sighted_processed'])) {
foreach ($credit_officier_specific_queries['docs_to_be_sighted_processed'] as $doc_key => $doc_value) {
echo 'Document Required : ' . $doc_value['doc_name'] . '
';
echo 'Provided ( Yes / No ) : ' . ($doc_value['ans'] == 'yes' ? 'YES, Document available in zipped file enclosed with report' . '
' : 'NO
');
if ($doc_value['ans'] != 'yes') {
echo 'Reason : ' . $doc_value['reason'];
}
echo '
';
}
} else {
echo 'There are no specific documents to be collect.';
}
if (isset($credit_officier_specific_queries['covid_section']) && isset($credit_officier_specific_queries['covid_section']['question_info']) && count($credit_officier_specific_queries['covid_section']['question_info'])) {
echo '
';
echo 'Queries related to Covid-19:
';
foreach ($credit_officier_specific_queries['covid_section']['question_info'] as $covid_key => $covid_value) {
if (isset($covid_value['is_subfield']) && !$covid_value['is_subfield']) {
echo 'Question : ' . $covid_value['question'] . '
';
$temp_answer = $credit_officier_specific_queries['covid_section'][$covid_value['question_key']];
if (($covid_value['type'] == 1 || $covid_value['type'] == 9) && ($covid_value['field_type'] == 'str&numtoword' || $covid_value['field_type'] == 'num' || $covid_value['field_type'] == 'numtoword') && is_numeric($temp_answer)) {
$temp_answer = MYUTIL::customIndianNumberFormat($temp_answer) . ' (' . MYUTIL::numtowords($temp_answer) . ')';
}
echo 'Answer : ' . $temp_answer . '
';
$sub_field_key = $covid_value['question_key'] . '_' . $credit_officier_specific_queries['covid_section'][$covid_value['question_key']];
if (isset($credit_officier_specific_queries['covid_section'][$sub_field_key])) {
echo 'Reason/Description : ' . $credit_officier_specific_queries['covid_section'][$sub_field_key] . '
';
}
echo '
';
}
}
}
//}
?>
VISITING OFFICER`S REMARKS
✔';
?>
Final Status of Field Visit:
|
Positive
|
Negative
|
Could not verfiy
|
Remarks:
Remarks:
' . $pd_officer_final_remark . '' ?>
';
if (!empty($distances['distance'])) {
echo '
Distance to PD location : ' . $distances['distance'];
}
echo '
GPS Coordinates of location where PD Visit was done : ' . $pd_master_details[0]['start_location'];
echo '
';
?>
$com_value) {
if ($com_value['pd_document_title'] == 'satellite') {
$satellite_url = $com_value['doc_url'];
unset($pd_images['common_images'][$com_key]);
break;
}
}
}
?>

';
echo 'VISIT PICTURES
';
echo '
';
$add_factor = 0;
for ($row = 0; $row < $tot_rows; $row++) {
echo '';
$from = $row == 0 ? $row : ($row + $add_factor);
$to = ($from + 2);
$add_factor = $add_factor + 2;
for ($i = $from; $i <= $to; $i++) {
if (isset($pd_images['common_images'][$i]) && ($pd_images['common_images'][$i]['pd_document_title'] != 'satellite')) {
$doc_title = $pd_images['common_images'][$i]['pd_document_title'];
echo ' ![' . $pd_images['common_images'][$i]['pd_document_title'] . '](' . $pd_images['common_images'][$i]['doc_url'] . ') ' . $doc_title . ' | ';
}else{ echo ' | ';}
//unset($p_key);
}
echo '
';
}
echo '
';
}
?>
";
$footer_lender_stamp = MYUTIL::dispatchDisclaimer($lender_disclaimer, 3);
if (isset($footer_lender_stamp)) {
//$footer_lender_disclaimer = MYUTIL::dispatchDisclaimer($lender_disclaimer,3);
echo '
';
}
$footer_lender_disclaimer = MYUTIL::dispatchDisclaimer($lender_disclaimer, 2);
if (isset($footer_lender_disclaimer)) {
echo '' . $footer_lender_disclaimer['disclaimer'] . '
';
}
echo "";
?>