2216 lines
92 KiB
PHP
2216 lines
92 KiB
PHP
<?php
|
||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||
|
||
?><!DOCTYPE html>
|
||
<html lang="en" id="mydoc" onkeyup="saveEdits(event)">
|
||
<head>
|
||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||
<title></title>
|
||
<link href="https://fonts.googleapis.com/css?family=Merriweather" rel="stylesheet">
|
||
<style type="text/css">
|
||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
|
||
|
||
.page_break { page-break-before: always; }
|
||
#page_break { page-break-before: always; }
|
||
/*.page { width: 100%; height: 95%; }*/
|
||
@page {
|
||
margin: 100px 50px;
|
||
/*font-family:Helvetica,Arial;*/
|
||
font-family:Merriweather;
|
||
}
|
||
header {
|
||
position: fixed;
|
||
top: -70px;
|
||
left: 0px;
|
||
right: 0px;
|
||
height: 20px;
|
||
|
||
/** Extra personal styles **/
|
||
/*background-color: #03a9f4;
|
||
color: white;*/
|
||
text-align: right;
|
||
/*line-height: 35px;*/
|
||
}
|
||
footer {
|
||
position: fixed;
|
||
bottom: 5px;
|
||
left: 0px;
|
||
right: 0px;
|
||
height: 20px;
|
||
font-size: 10px;
|
||
|
||
/** Extra personal styles **/
|
||
/*background-color: #03a9f4;
|
||
color: white;*/
|
||
text-align: left;
|
||
/*line-height: 35px;*/
|
||
}
|
||
|
||
.non-editable{ background-color:#99ff99; }
|
||
|
||
.table2 {
|
||
border: 1px solid black;
|
||
width: 100%;
|
||
}
|
||
.table2 td {
|
||
border: 1px solid black;
|
||
height: 50px;
|
||
text-align: center;
|
||
}
|
||
.table2 th {
|
||
border: 1px solid black;
|
||
height: 50px;
|
||
text-align: center;
|
||
}
|
||
.table2 {
|
||
border-collapse: collapse;
|
||
}
|
||
tfoot{
|
||
color:#e00201;
|
||
}
|
||
|
||
.simpletable, .simpletable th, .simpletable td {
|
||
border: 1px solid black;
|
||
border-collapse: collapse;
|
||
}
|
||
/* #########Score Card for personal assest section table getting overlapped ######### */
|
||
|
||
.scorecard_table_resonal_assest {
|
||
/* font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;*/
|
||
/*font-family: Merriweather;*/
|
||
border-collapse: collapse;
|
||
width: 100%;
|
||
|
||
}
|
||
|
||
.scorecard_table_resonal_assest td, .scorecard_table_resonal_assest th {
|
||
border: 1px solid #000;
|
||
padding: 8px;
|
||
|
||
|
||
|
||
}
|
||
|
||
.scorecard_table_resonal_assest tr:nth-child(even){background-color: #f2f2f2; }
|
||
|
||
.scorecard_table_resonal_assest tr:hover {background-color: #ddd;}
|
||
|
||
.scorecard_table_resonal_assest th {
|
||
padding-top: 8px;
|
||
padding-bottom: 8px;
|
||
text-align: center;
|
||
background-color: #0191ed;
|
||
color: white;
|
||
|
||
}
|
||
/* #########End of Score Card Table Styles######### */
|
||
/* ######### Mini Score Card Table Styles######### */
|
||
|
||
.mini_scorecard_table {
|
||
width: 100%;
|
||
page-break-inside: avoid;
|
||
}
|
||
|
||
.mini_scorecard_table td, .mini_scorecard_table th {
|
||
|
||
page-break-inside: avoid;
|
||
}
|
||
|
||
.mini_scorecard_table th {
|
||
padding-top: 5px;
|
||
padding-bottom: 5px;
|
||
text-align: center;
|
||
background-color: #0191ed;
|
||
color: white;page-break-inside: avoid;
|
||
|
||
}
|
||
/* #########End of Mini Score Card Table Styles######### */
|
||
|
||
|
||
/* #########End of Mini Score Card Div Styles######### */
|
||
#rcorners_green {
|
||
|
||
background: #33cc33;
|
||
padding: 3px;
|
||
width: 75px;
|
||
height: 5px;
|
||
}
|
||
#rcorners_red {
|
||
|
||
background: red;
|
||
padding: 3px;
|
||
width: 75px;
|
||
height: 5px;
|
||
}
|
||
#rcorners_light_green {
|
||
|
||
background: #99ff66;
|
||
padding: 3px;
|
||
width: 75px;
|
||
height: 5px;
|
||
}
|
||
#rcorners_amber{
|
||
|
||
background: #ff9900;
|
||
padding: 3px;
|
||
width: 75px;
|
||
height: 5px;
|
||
}
|
||
|
||
/* #########End of Mini Score Card DIv Styles######### */
|
||
|
||
|
||
|
||
|
||
/* #########Score Card Table Styles######### */
|
||
|
||
.scorecard_table {
|
||
/* font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;*/
|
||
/*font-family: Merriweather;*/
|
||
border-collapse: collapse;
|
||
width: 100%;
|
||
page-break-inside: avoid;
|
||
}
|
||
|
||
.scorecard_table td, .scorecard_table th {
|
||
border: 1px solid #000;
|
||
padding: 8px;
|
||
page-break-inside: avoid;
|
||
|
||
|
||
}
|
||
|
||
.scorecard_table tr:nth-child(even){background-color: #f2f2f2;page-break-inside: avoid; }
|
||
|
||
.scorecard_table tr:hover {background-color: #ddd;}
|
||
|
||
.scorecard_table th {
|
||
padding-top: 8px;
|
||
padding-bottom: 8px;
|
||
text-align: center;
|
||
background-color: #0191ed;
|
||
color: white;page-break-inside: avoid;
|
||
|
||
}
|
||
/* #########End of Score Card Table Styles######### */
|
||
|
||
|
||
/* #########Score Card2 Table Styles######### */
|
||
|
||
.scorecard_table2 {
|
||
/* font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;*/
|
||
/*font-family: Merriweather;*/
|
||
border-collapse: collapse;
|
||
width: 100%;
|
||
|
||
}
|
||
|
||
.scorecard_table2 td, .scorecard_table2 th {
|
||
border: 1px solid #000;
|
||
padding: 8px;
|
||
|
||
|
||
}
|
||
|
||
.scorecard_table2 tr:nth-child(even){background-color: #f2f2f2;}
|
||
|
||
.scorecard_table2 tr:hover {background-color: #ddd;}
|
||
|
||
.scorecard_table2 th {
|
||
padding-top: 8px;
|
||
padding-bottom: 8px;
|
||
text-align: center;
|
||
background-color: #0191ed;
|
||
color: white;
|
||
|
||
}
|
||
/* #########End of Score Card2 Table Styles######### */
|
||
|
||
|
||
.customth { width: 10%; }
|
||
|
||
/* #########billwise Table Styles######### */
|
||
.customtd { text-align:center; }
|
||
.customtd_leftalign { text-align:left; }
|
||
.customtd_rightalign { text-align:right; }
|
||
|
||
.billwise_table {
|
||
/* font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;*/
|
||
/*font-family: Merriweather;*/
|
||
border-collapse: collapse;
|
||
width: auto;
|
||
|
||
}
|
||
|
||
.billwise_table td, .billwise_table th {
|
||
border: 1px solid #000;
|
||
padding: 4px;
|
||
|
||
}
|
||
|
||
.billwise_table tr:nth-child(even){background-color: #f2f2f2;}
|
||
|
||
.billwise_table tr:hover {background-color: #ddd;}
|
||
|
||
.billwise_table th {
|
||
padding-top: 4px;
|
||
padding-bottom: 4px;
|
||
text-align: center;
|
||
background-color: #0191ed;
|
||
color: white;
|
||
}
|
||
/* #########billwise Table Styles######### */
|
||
|
||
|
||
/* #########Annexure table ######### */
|
||
|
||
.annexure_table {
|
||
/* font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;*/
|
||
/*font-family: Merriweather;*/
|
||
border-collapse: collapse;
|
||
width: auto;
|
||
|
||
}
|
||
|
||
.annexure_table td, .annexure_table th {
|
||
border: 1px solid #000;
|
||
|
||
}
|
||
|
||
.annexure_table tr:nth-child(even){background-color: #f2f2f2;}
|
||
|
||
.annexure_table tr:hover {background-color: #ddd;}
|
||
|
||
.annexure_table th {
|
||
/*padding-top: 4px;*/
|
||
/*padding-bottom: 4px;*/
|
||
text-align: center;
|
||
background-color: #0191ed;
|
||
color: white;
|
||
}
|
||
/* #########Annexure######### */
|
||
|
||
|
||
.customtd { text-align:center; }
|
||
.customtd_leftalign { text-align:left; }
|
||
.customtd_rightalign { text-align:right; }
|
||
|
||
|
||
#boxstyle1 {
|
||
box-sizing: border-box;
|
||
width: 60px;
|
||
height: 20px;
|
||
padding: 5px;
|
||
border: 2px outset black;
|
||
}
|
||
#boxstyle2 {
|
||
box-sizing: border-box;
|
||
width: 200px;
|
||
height: 20px;
|
||
padding: 5px;
|
||
border: 2px outset black;
|
||
text-align:center;
|
||
}
|
||
#boxstyle3 {
|
||
box-sizing: border-box;
|
||
width: 120px;
|
||
height: 20px;
|
||
padding: 5px;
|
||
border: 2px outset black;
|
||
}
|
||
|
||
#billwise {
|
||
box-sizing: content-box;
|
||
/*disply:inline;*/
|
||
width: 100%;
|
||
height: auto;
|
||
padding: 10px;
|
||
border: 1px solid #0191ed;
|
||
}
|
||
|
||
#first_div {
|
||
width: 150px;
|
||
height: 25px;
|
||
border: 2px outset #000;
|
||
overflow: hidden;
|
||
text-align: center;
|
||
border-color:red;
|
||
color:red;
|
||
/*padding-left: 20px;*/
|
||
|
||
}
|
||
#tick_div {
|
||
position: relative;
|
||
width: 40px;
|
||
height: 25px;
|
||
margin-left: 100%;
|
||
margin-top: -29px;
|
||
border: 2px outset #000;
|
||
text-align: center;
|
||
border-color:red;
|
||
color:red;
|
||
}
|
||
#tick_div_other {
|
||
position: relative;
|
||
width: 40px;
|
||
height: 25px;
|
||
margin-left: 93%;
|
||
margin-top: -29px;
|
||
border: 2px outset #000;
|
||
text-align: center;
|
||
border-color:red;
|
||
color:red;
|
||
}
|
||
|
||
|
||
/* #########Person met card css######### */
|
||
.chip {
|
||
|
||
padding: 0 25px;
|
||
height: 100px;
|
||
width: 600px;
|
||
font-size: 14px;
|
||
|
||
border-radius: 50px;
|
||
background-color: #f1f1f1;
|
||
}
|
||
|
||
.chip #img1 {
|
||
float: left;
|
||
margin: 0 10px 0 -25px;
|
||
height: 100px;
|
||
width: 100px;
|
||
border-radius: 50%;
|
||
}
|
||
|
||
.chip #img2 {
|
||
float: right;
|
||
margin: 0 -25px 0px -125px;
|
||
height: 100px;
|
||
width: 100px;
|
||
border-radius: 50%;
|
||
}
|
||
|
||
|
||
|
||
|
||
/* #########Person met card css######### */
|
||
|
||
|
||
/* #########Doc sighted gallary css######### ;*/
|
||
|
||
.gallery {
|
||
margin: 5px;
|
||
border: 1px solid #ccc;
|
||
width: 100%;
|
||
|
||
}
|
||
|
||
.gallery:hover {
|
||
border: 1px solid #777;
|
||
}
|
||
|
||
|
||
|
||
.desc {
|
||
padding: 8px;
|
||
text-align: center;
|
||
color:green
|
||
}
|
||
|
||
/* #########Doc sighted gallary css######### */
|
||
|
||
/* ######### TOOLTIP CSS START ######### */
|
||
|
||
.tooltip {
|
||
position: relative;
|
||
display: inline;
|
||
border-bottom: 1px dotted black;
|
||
}
|
||
|
||
.tooltip .tooltiptext {
|
||
visibility: hidden;
|
||
width: 120px;
|
||
background-color: black;
|
||
color: #fff;
|
||
text-align: center;
|
||
border-radius: 6px;
|
||
padding: 5px 0;
|
||
|
||
/* Position the tooltip */
|
||
position: absolute;
|
||
z-index: 1;
|
||
}
|
||
|
||
.tooltip:hover .tooltiptext {
|
||
visibility: visible;
|
||
}
|
||
|
||
#ini_table{
|
||
table-layout: fixed;
|
||
width:80%;
|
||
|
||
|
||
}
|
||
|
||
#ini_table td{
|
||
word-wrap:break-word
|
||
width:50%;
|
||
}
|
||
|
||
.intelligence{
|
||
/*background-color: lightgrey;*/
|
||
width: auto;
|
||
border: 5px solid #0191ed;
|
||
padding: 5px;
|
||
/*margin: 10px;*/
|
||
}
|
||
|
||
/* ######### TOOLTIP CSS END ######### */
|
||
|
||
|
||
</style>
|
||
<script type="text/javascript">
|
||
function saveEdits(e)
|
||
{
|
||
|
||
var editElem = document.getElementById("mydoc");
|
||
var userVersion = editElem.innerHTML;
|
||
//localStorage.removeItem('userEdits')
|
||
//save the content to local storage
|
||
localStorage.userEdits = userVersion;
|
||
}
|
||
</script>
|
||
|
||
|
||
</head>
|
||
<body style="font-family:Merriweather;font-size:12px;margin:15px 30px">
|
||
|
||
|
||
<footer>
|
||
<hr>
|
||
Powered by PDGenie™
|
||
</footer>
|
||
<header>
|
||
|
||
<div><img style="width:100px;height:50px;opacity: 0.5;" src='https://pdgenie.com/logo/sineedge_red.png'/></div>
|
||
<hr>
|
||
</header>
|
||
|
||
<!-- Wrap the content of your PDF inside a main tag -->
|
||
<?php $loan_form = json_decode($pd_processed_forms[10][0]['processed_json'],true);
|
||
$main_applicant_name = $pd_master_details[0]['title_name'].' '.$pd_master_details[0]['main_applicant'];
|
||
$rupee_symbol = "<span style='font-family: DejaVu Sans; sans-serif;font-size:10px'>₹</span>";
|
||
?>
|
||
<?php
|
||
echo "<br><br>";
|
||
|
||
echo "<div>";
|
||
echo "<h1><center>PERSONAL DISCUSSION REPORT</center></h1> ";
|
||
echo "<center style='font-size:15px;font-style:italic;font-weight:bold'>for the case of</center>";
|
||
|
||
echo "<h2><center>".$main_applicant_name."</center></h2>";
|
||
echo "</div>";
|
||
echo "<br><br><br><br>";
|
||
?>
|
||
|
||
<table align="center" id="ini_table" border="0">
|
||
<tbody>
|
||
<?php
|
||
|
||
echo '<tr><td>PD Initiated Date </td> <td style="width:2%;">:</td> <td> '.$pd_master_details[0]['createdon'].'</td></tr>';
|
||
echo '<tr><td>PD Visit Date </td> <td style="width:2%;">:</td> <td> '.$pd_master_details[0]['pd_visit_date'].'</td></tr>';
|
||
echo '<tr><td>PD Report Date </td> <td style="width:2%;">:</td> <td>'.$pd_master_details[0]['pd_report_generated_date'].'</td></tr>';
|
||
echo '<tr><td>PD Initiated by </td> <td style="width:2%;">:</td> <td>'.$pd_master_details[0]['branch_name'].' Branch</td></tr>';
|
||
echo '<tr><td>Loan Application ID </td> <td style="width:2%;">:</td> <td> '.$pd_master_details[0]['lender_applicant_id'].'</td></tr>';
|
||
echo '<tr><td>Product </td> <td style="width:2%;">:</td> <td>'.$pd_master_details[0]['product_name'].'</td></tr>';
|
||
echo '<tr><td>Customer Segment </td> <td style="width:2%;">:</td> <td>'.(explode('-',$pd_master_details[0]['customer_segment_name'])[0]).'</td></tr>';
|
||
?>
|
||
|
||
|
||
|
||
<?php
|
||
//echo "<p>Loan Amount Applied For : </p>";
|
||
//echo '<table align="center">
|
||
echo '<tr> <td >Loan Amount<br>(As Per PD Initiation) </td> <td style="width:2%;">:</td> <td><span style="font-family: DejaVu Sans; sans-serif;font-size:10px">₹</span>' .' '. MYUTIL::customIndianNumberFormat($pd_master_details[0]['loan_amount']). '<br><span style="font-size:10px;">('. MYUTIL::numtowords($pd_master_details[0]['loan_amount']) .')</span></td> </tr><tr> <td>Loan Amount<br>(As Per Loan Applicants during PD)</td> <td style="width:2%;">:</td> <td><span style="font-family: DejaVu Sans; sans-serif;font-size:10px;word-wrap:break-word">₹</span>' .' '. MYUTIL::customIndianNumberFormat($loan_form['loan_amount']). '<br><span style="font-size:10px;">('. MYUTIL::numtowords($loan_form['loan_amount']) .')</span></td> </tr>';
|
||
echo '</tbody></table>';
|
||
//echo "<div class='page_break'></div>";
|
||
echo "<br><br>";
|
||
echo "<br><br>";
|
||
echo "<br><br>";
|
||
echo "<br><br>";
|
||
echo "<br><br>";
|
||
echo "<p></p>";
|
||
|
||
$header_lender_disclaimer = MYUTIL::dispatchDisclaimer($lender_disclaimer,1);
|
||
if(isset($header_lender_disclaimer['disclaimer']) && $header_lender_disclaimer['disclaimer'] != '' && $header_lender_disclaimer['type'] == 1)
|
||
{
|
||
echo '<p align="justify"><i><strong>Disclaimer: </strong>'. $header_lender_disclaimer['disclaimer'] .'</i></p>';
|
||
|
||
}
|
||
|
||
echo '<p align="justify"><i><strong>Registered / Corporate Office:</strong> SineEdge Consulting Private Limited. A-211, Pioneer Urban Square, Golf Course Extension Road, Sector 62, Gurgaon, Haryana - 122002</i></p>';
|
||
?>
|
||
|
||
|
||
<!-- GENERAL INFORMATIN -->
|
||
|
||
<?php
|
||
|
||
$general_form = json_decode($pd_processed_forms[18][0]['processed_json'],true);
|
||
$total_no_of_business = count($general_form['companies']);
|
||
$persons_met = "Default";
|
||
$all_company_details = null;
|
||
if(array_key_exists('companies',$general_form))
|
||
{
|
||
$all_company_details = $general_form['companies'];
|
||
}
|
||
|
||
$all_applicant_details = $applicants_details;
|
||
|
||
|
||
|
||
?>
|
||
<!--<p>Person(s) Met: </p>
|
||
<table class="simpletable">
|
||
<tbody>
|
||
|
||
<tr><td> --><?php
|
||
|
||
$person_met_data = array();
|
||
foreach($general_form['individuals'] as $ind_key => $individual)
|
||
{
|
||
|
||
if($individual['is_person_met'] == true)
|
||
{
|
||
//array_push($person_met_images);
|
||
$temp_person_met = array();
|
||
$applicant_name = $individual['applicant_name'];
|
||
//echo '<br>'.$individual['applicant_title_name_master'] .' '. $applicant_name.'<br>' ;
|
||
$temp_person_met['name'] = $individual['applicant_title_name_master'] .' '. $applicant_name;
|
||
$temp_person_met['photo'] = '';
|
||
$temp_person_met['id_proof'] = '';
|
||
foreach($pd_images[18] as $pm_Key => $pm_value)
|
||
{
|
||
if( !strcasecmp(trim($applicant_name),trim($pm_value['pd_document_title'])) )
|
||
{
|
||
$temp_person_met['photo'] = $pm_value['doc_url'] ;
|
||
}
|
||
|
||
$id = trim($applicant_name).'-id_proof';
|
||
if(!strcasecmp($id,trim($pm_value['pd_document_title'])))
|
||
{
|
||
$temp_person_met['id_proof'] = $pm_value['doc_url'] ;
|
||
}
|
||
}
|
||
$company_relationship_data = null;
|
||
foreach($general_form['company_with_relationships'] as $company_with_relationship)
|
||
{
|
||
if($individual['pd_co_applicant_id'] == $company_with_relationship['applicant_name'])
|
||
{
|
||
//FInd Company Name from JSON
|
||
$company_relationship_data .= $company_with_relationship['company_relationship_master'].' '.$company_with_relationship['company_name'];
|
||
|
||
//$company_relationship_data.='<br><center>and</center><br>';
|
||
$company_relationship_data.=', ';
|
||
}
|
||
}
|
||
//$temp_person_met['name'] =
|
||
//print_r($general_form['persons_with_relationships']);
|
||
$personal_relationship_data = null;
|
||
foreach($general_form['persons_with_relationships'] as $persons_with_relationship)
|
||
{
|
||
if($individual['pd_co_applicant_id'] == $persons_with_relationship['pd_co_applicant_id'] && isset($persons_with_relationship['relationship']))
|
||
{
|
||
|
||
if(isset($persons_with_relationship['relation_to_master']))
|
||
{
|
||
//? $persons_with_relationship['relation_to_master'] : " Could Not Find";
|
||
$RSNA = $persons_with_relationship['relation_to_master'];
|
||
if(isset($persons_with_relationship['relationship_master']))
|
||
{
|
||
$personal_relationship_data .= $persons_with_relationship['relationship_master'] .' Of '. $RSNA;
|
||
//$personal_relationship_data.='<br><center>and</center><br>';
|
||
$personal_relationship_data.=', ';
|
||
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
$company_relationship_data .= $personal_relationship_data;
|
||
$temp_person_met['relations'] = $company_relationship_data;
|
||
array_push($person_met_data,$temp_person_met);
|
||
|
||
|
||
}
|
||
}
|
||
|
||
|
||
|
||
echo '<div id="page_break"></div>';
|
||
|
||
if(count($person_met_data))
|
||
{
|
||
echo '<p><strong>Person(s) Met:</strong> </p>';
|
||
//echo '<div style="border: 1px solid #0191ed;">';
|
||
|
||
foreach($person_met_data as $pk => $person)
|
||
{
|
||
$display_for_person_met =$person['relations'] != "" ? substr_replace($person['relations'],'.',strrpos($person['relations'],','),1) : '';
|
||
|
||
$person_met_details = $person['name'];
|
||
$person_met_details .= ($display_for_person_met != "" ? ' - ' . $display_for_person_met :'');
|
||
echo '<p>'.$person_met_details.'</p>';
|
||
|
||
//if($display_for_person_met != "" || $display_for_person_met != null){
|
||
echo '<br><br>';
|
||
//}
|
||
// if($person['photo'])
|
||
// {
|
||
// echo '<img src="'.$person['photo'].'" width="300" height="200" alt=""/>';
|
||
// }
|
||
// echo ' ';
|
||
// if($person['id_proof'])
|
||
// {
|
||
// echo '<img src="'.$person['id_proof'].'" width="300" height="200" alt=""/>';
|
||
// }
|
||
|
||
//echo count($person_met_data) != ($pk+1)? '<hr>':'';
|
||
|
||
|
||
}
|
||
//echo '</div>';
|
||
}
|
||
echo '<br>';
|
||
?>
|
||
|
||
<!-- <br> -->
|
||
|
||
<p contenteditable="true"><b>Loan Applicants:</b></p>
|
||
<table class="scorecard_table">
|
||
|
||
<tr> <th>Name</th> <th>Age<br>(Yrs/Mns)</th> <th>Qualification / Type of Entity</th> <th>Relationships</th> </tr>
|
||
<tbody>
|
||
|
||
<?php
|
||
|
||
//print_r($general_form);die();
|
||
foreach($general_form['individuals'] as $ind_key => $individual)
|
||
{
|
||
|
||
if($individual['is_applicant'] == true)
|
||
{
|
||
|
||
$education_qualification = $individual['qualification_master'];
|
||
$education_qualification = $individual['course_name'] != "" || $individual['course_name'] != null ? $education_qualification.'<br>('.$individual['course_name'].')' : $education_qualification;
|
||
|
||
|
||
$applicant_name = array_key_exists('pd_co_applicant_id_master',$individual) ? $individual['pd_co_applicant_id_master'] : " Could Not Find" ;
|
||
//echo $applicant_name.'**************************';
|
||
|
||
$title = isset($individual['applicant_title_name_master']) && $individual['applicant_title_name_master'] != "" ? $individual['applicant_title_name_master'] : '';
|
||
$kyc_data = '';
|
||
if($ind_key == 0 && array_key_exists('is_kyc', $general_form) && $general_form['is_kyc'] == 'no')
|
||
{
|
||
$kyc_data = "<br><br>Name noticed as per KYC is ". $general_form['kyc_and_captur_the_name'];
|
||
}
|
||
echo '<tr><td class="customtd">'.$title.' '.$applicant_name.$kyc_data.'</td><td class="customtd">'.$individual['age'].'</td><td class="customtd">'.$education_qualification.'</td><td class="customtd">';
|
||
|
||
$company_relationship_data = null;
|
||
//print_r($general_form['company_with_relationships']);
|
||
foreach($general_form['company_with_relationships'] as $company_with_relationship)
|
||
{
|
||
|
||
//print_r($company_with_relationship);
|
||
if($individual['pd_co_applicant_id'] == $company_with_relationship['applicant_name'])
|
||
{
|
||
//FInd Company Name from JSON
|
||
|
||
//echo "ONCE";
|
||
$company_relationship_data = ($company_with_relationship['company_relationship_master'] .' '.$company_with_relationship['company_name']);
|
||
|
||
$company_relationship_data.='<br><center>and</center><br>';
|
||
}
|
||
}
|
||
|
||
$personal_relationship_data = null;
|
||
foreach($general_form['persons_with_relationships'] as $persons_with_relationship)
|
||
{
|
||
|
||
|
||
|
||
if(($individual['pd_co_applicant_id'] == $persons_with_relationship['pd_co_applicant_id'] || !strcasecmp($applicant_name,$persons_with_relationship['applicant_name']))&& isset($persons_with_relationship['relationship']))
|
||
{
|
||
|
||
|
||
if( isset($persons_with_relationship['relation_to_master']))
|
||
{
|
||
$RSNA = $persons_with_relationship['relation_to_master'];
|
||
if(isset($persons_with_relationship['relationship_master']))
|
||
{
|
||
$personal_relationship_data .= $persons_with_relationship['relationship_master'] .' of '. $RSNA;
|
||
|
||
$personal_relationship_data.='<br><center>and</center><br>';
|
||
}
|
||
}
|
||
}
|
||
}
|
||
$company_relationship_data .= $personal_relationship_data;
|
||
echo substr_replace($company_relationship_data, '', strrpos($company_relationship_data, '<br><center>and</center><br>'),strlen($company_relationship_data));
|
||
|
||
echo "</td></tr>";
|
||
}
|
||
}
|
||
|
||
if(isset($general_form['companies']) && count($general_form['companies']))
|
||
{
|
||
$business_entity_type_master = array(1 => 'Others', 2 => 'Public Ltd Company', 3 => 'Sole proprietorship', 4 => 'HUF (Hindu Undivided Family)', 5 => 'Partnership',6 => 'Cooperative',7 => 'Limited Liability Partnership(LLP)',8 => 'OPC (One Person Company)',9 => 'Society',10 => 'Trust',11 => 'Private Limited Company');
|
||
foreach ($general_form['companies'] as $comp_key => $ind_company) {
|
||
if($ind_company['is_company_applicant'] != null)
|
||
{
|
||
|
||
echo '<tr><td class="customtd">'. $ind_company['company_name'] .'</td><td class="customtd">'. $ind_company['business_years']. (isset($ind_company['business_month']) ? ' . ' . $ind_company['business_month']: null) .'</td><td class="customtd">'. ( $ind_company['business_entity_type'] == 1 ? $ind_company['business_entity_type_other'] : $business_entity_type_master[ $ind_company['business_entity_type'] ] ).'</td><td class="customtd"> Not Applicable </td></tr>';
|
||
}
|
||
|
||
}
|
||
}
|
||
?>
|
||
</tbody>
|
||
</table>
|
||
|
||
|
||
<?php
|
||
//
|
||
if($general_form['general_remark'] != "") { ?>
|
||
<!-- <p>PD Officers Note (About General Section) :</p> -->
|
||
<?php
|
||
echo '<p>'.$general_form['general_remark'].'</p>';
|
||
}
|
||
?>
|
||
|
||
<!-- ########################### End of Cover Page Section ####################################-->
|
||
|
||
|
||
|
||
|
||
<!-- ####################### Address Details Section Statred ############################-->
|
||
<?php
|
||
|
||
$address_form = json_decode($pd_processed_forms[5][0]['processed_json'],true);
|
||
//print_r($address_form);
|
||
$final_remark_data = json_decode($pd_processed_forms[20][0]['processed_json'],true) ;
|
||
$address_type_remarks_caption = array('well_suited' => 'well suited','fairly_suited' => 'fairly suited','not_suited' => 'not suited');
|
||
//$business_assets_details = json_decode($pd_processed_forms[22][0]['processed_json'],true);
|
||
//print_r($business_assets_details);die();
|
||
|
||
// $address_images = $pd_images[5];
|
||
// //print_r($address_images);die();
|
||
// $pd_location_approach_img_url = '';
|
||
// $pd_location_approach_img_location = '';
|
||
// $pd_location_approach_img_date = '';
|
||
|
||
// foreach ($address_images as $address_image_key => $address_image_value) {
|
||
// if($address_image_value['is_show_report'] == 1)
|
||
// {
|
||
// $pd_location_approach_img_url = isset($address_image_value['doc_url']) ? $address_image_value['doc_url']: '';
|
||
// //$pd_location_approach_img_location = $address_image_value['location'];
|
||
// //$pd_location_approach_img_date = date('Y/m/d h:s:i A',$address_image_value['createdon']);
|
||
// break;
|
||
// }
|
||
// }
|
||
|
||
// $name_board_seen_img_url = '';
|
||
|
||
|
||
//echo $name_board_seen_img_url;die();
|
||
//print_r($address_images);die();
|
||
?>
|
||
<!-- <div id="page_break"></div> -->
|
||
<p><b>PD LOCATION</b></p>
|
||
|
||
<p><?php
|
||
|
||
$pd_address = $address_form['addresses'][0];
|
||
$pd_alternative_address = array();
|
||
$pincode = isset($pd_address['pincode_others']) && ($pd_address['pincode_others'] != "" || $pd_address['pincode_others'] != null) ? $pd_address['pincode_others'] : $pd_address['pincode_master'];
|
||
$is_change_address = 0;
|
||
if(isset($address_form['is_pd_done_on_initiated_address']) && (!$address_form['is_pd_done_on_initiated_address']))
|
||
{
|
||
$is_change_address = 1;
|
||
$pd_alternative_address = $address_form['alternative_addresses'][0];
|
||
|
||
$alter_native_pincode = isset($pd_alternative_address['pincode_others']) && ($pd_alternative_address['pincode_others'] != "" || $pd_alternative_address['pincode_others'] != null) ? $pd_alternative_address['alternate_pincode_others'] : $pd_alternative_address['pincode_master'];
|
||
|
||
echo '<b>Address at which PD was initiated: </b>'.$pd_address['address'].', '.$pd_address['city_master'].', '.$pd_address['state_master'].' - '.$pincode.'.';
|
||
|
||
echo '<br><b>Address at which PD Visit actually done: </b>'.$pd_alternative_address['alternative_address'].', '.$pd_alternative_address['city_master'].', '.$pd_alternative_address['state_master'].' - '.$alter_native_pincode.'.';
|
||
|
||
echo '<br><b>Reasaon for change in PD address:</b>'.$pd_alternative_address['reason_for_alternative_address'];
|
||
|
||
}
|
||
else
|
||
{
|
||
|
||
echo '<b>PD Location Address : </b>'.$pd_address['address'].', '.$pd_address['city_master'].', '.$pd_address['state_master'].' - '.$pincode.'.';
|
||
}
|
||
if(!empty($distances['distance'])){
|
||
echo '<br><br><b> Distance to PD location : </b>'.$distances['distance'];
|
||
}
|
||
echo '<br><br><b> GPS Coordinates of location where PD Visit was done : </b>'.$pd_master_details[0]['start_location'];
|
||
echo '<br><br>';
|
||
?>
|
||
<?php
|
||
$satellite_url = '';
|
||
|
||
if(isset($pd_images['common_images']) && count($pd_images['common_images']))
|
||
{
|
||
foreach($pd_images['common_images'] as $com_key => $com_value)
|
||
{
|
||
if($com_value['pd_document_title'] == 'satellite')
|
||
{
|
||
$satellite_url = $com_value['doc_url'];
|
||
unset($pd_images['common_images'][$com_key]);
|
||
break;
|
||
}
|
||
}
|
||
}
|
||
|
||
|
||
?>
|
||
|
||
|
||
<img border="3" src = "<?php echo $satellite_url;?>" alt=" Satellite Image of location of Where PD was Done" style="width:100%;height:300px;border-color:#0191ed" /><br><br><br>
|
||
|
||
<!-- <?php if($pd_location_approach_img_url != "" ) {?>
|
||
<table>
|
||
<thead>
|
||
<tr> <th>PD Location Approach</th> </tr>
|
||
</thead>
|
||
<tr><td>
|
||
|
||
<img border="3" src ="<?php echo $pd_location_approach_img_url;?>" style="width:50%;height:300px;border-color:#0191ed" alt="Location Approach Image Not Available"/>
|
||
</td>
|
||
</tr>
|
||
<tr> <td><?php echo $pd_location_approach_img_location .'<br>'.$pd_location_approach_img_date; ?></td> <td> </td> </tr>
|
||
</table>
|
||
<?php } ?> -->
|
||
<div id="page_break"></div>
|
||
<br><p><b>Location Summary</b></p>
|
||
<?php
|
||
|
||
$pd_address = $is_change_address ? $pd_alternative_address : $pd_address;
|
||
|
||
$address_type = $pd_address['address_type'] == 1? $pd_address['address_type_others'] : $pd_address['address_type_master'];
|
||
$estimated_area = $pd_address['estimated_area'].' ';
|
||
$estimated_area .= isset($pd_address['uom_others']) && ($pd_address['uom_others'] != "" || $pd_address['uom_others'] != null) ? $pd_address['uom_others'] : (isset($pd_address['uom_master']) ?$pd_address['uom_master']:'' );
|
||
$locality = $pd_address['locality'] == 1 ? $pd_address['locality_others']: $pd_address['locality_master'];
|
||
|
||
$locality = preg_match("/^[aeiouAEIOU]/U", $locality) ? 'an '.$locality : 'a '.$locality;
|
||
$comment_locality_master = preg_match("/^[aeiouAEIOU]/U", $pd_address['comment_locality_master']) ? 'an '.$pd_address['comment_locality_master'] : 'a '.$pd_address['comment_locality_master'];
|
||
// $property_owner_type = $business_assets_details['business_assets_for_address'][0]['business_ownership_type'];
|
||
//if($property_owner_type == 'rented') { $property_owner_type ='Rented (Rent '.$rupee_symbol.' '.$business_assets_details['business_assets_for_address'][0]['business_monthly_rented_amt'].' Per Month)'; }else{$property_owner_type = 'Owned'; }
|
||
//$yrs_being_run = $business_assets_details['business_assets_for_address'][0]['business_years'].' Years';
|
||
//($business_assets_details['business_assets_for_address'][0]['business_month'] != ""){ $yrs_being_run.= ' and '.$business_assets_details['business_assets_for_address'][0]['business_month'].' Months';}
|
||
|
||
echo '<p style="text-align:justify;">';
|
||
echo '<span contenteditable="true">The PD visit was done at </span><span class="tooltip">'. $address_type. '<span class="tooltiptext">Address Form - Type of Address </span></span><span contenteditable="true"> of the loan applicants. </span>';
|
||
//echo '<span contenteditable="true">The </span><span class="tooltip">'.$address_type.'<span class="tooltiptext">Address Form - Type of Address </span></span><span contenteditable="true"> is </span><span class="tooltip">'.$property_owner_type.'<span class="tooltiptext">Business Assest Form - Owner of the Property </span></span><span contenteditable="true"> and the business has been in operation from here for the last</span> <span class="tooltip">'.$yrs_being_run.'<span class="tooltiptext">Business Assest Form - Business running Yrs in this premise </span></span><span contenteditable="true">.</span>';
|
||
echo '<br><br><span contenteditable="true">The</span> <span class="tooltip">'.$address_type.'<span class="tooltiptext">Address Form - Type of Address </span></span> <span contenteditable="true">is located in </span><span class="tooltip">'.$locality.'.<span class="tooltiptext">Address Form - Locality of Address </span></span>';
|
||
echo '<br><br><span contenteditable="true">The PD location was </span><span class="tooltip">'. $pd_address['pd_location_master'].'<span class="tooltiptext">Address Form - Approach to PD location </span></span>. ' . '<span contenteditable="true">As Per PD Officer, the</span> <span class="tooltip">'.$address_type .'<span class="tooltiptext">Address Form - Type of Address </span></span> <span contenteditable="true">is situated in</span><span class="tooltip"> '.$comment_locality_master .'<span class="tooltiptext">Address Form - Comment on locality </span></span> <span contenteditable="true">Locality.</span>';
|
||
// echo '<br><br><span contenteditable="true">The PD officer also made the following observations:</span>' ;
|
||
// echo '<br><ul>';
|
||
|
||
// echo '<li><span contenteditable="true"> The location of the</span><span class="tooltip"> '.$address_type.'<span class="tooltiptext">Address Form - Type of Address </span></span> <span contenteditable="true">is</span> <span class="tooltip">'.$address_type_remarks_caption [ $final_remark_data['is_service_provided'] ].'<span class="tooltiptext">Final Remarks Form - The location of the busienss suitability for Business </span></span> <span contenteditable="true">to the nature of business. </span></li>';
|
||
|
||
|
||
|
||
if(isset($final_remark_data['is_competition']))
|
||
{
|
||
if($final_remark_data['is_competition'] == 'yes')
|
||
{
|
||
echo '<li>'.$final_remark_data['appx_outlet_or_stores'].' Units with similar business were sighted in the locality</li>';
|
||
}
|
||
else
|
||
{
|
||
echo '<li>PD officer did not observe any similar business units in the locality.</li>';
|
||
}
|
||
}
|
||
if(isset($final_remark_data['demolition_activity']))
|
||
{
|
||
if($final_remark_data['demolition_activity'] == 'yes')
|
||
{
|
||
echo '<li>'.$final_remark_data['comment_of_demolition_activity'] .'</li>';
|
||
echo '<br><img border="3" src ="'. $final_remark_data['demolition_activity_pic'] .'" style="width:50%;height:200px;border-color:#0191ed" alt="Demolition Image Not Available"/>';
|
||
|
||
}
|
||
else
|
||
{
|
||
echo '<li>No demolition activity was observed in the locality.</li>';
|
||
}
|
||
}
|
||
|
||
|
||
if(isset($final_remark_data['sealing_activity']))
|
||
{
|
||
if($final_remark_data['sealing_activity'] == 'yes')
|
||
{
|
||
echo '<li>'.$final_remark_data['comment_of_sealing_activity'] .'</li>';
|
||
echo '<br><img border="3" src ="'. $final_remark_data['sealing_activity_pic'] .'" style="width:50%;height:200px;border-color:#0191ed" alt="Demolition Image Not Available"/>';
|
||
}
|
||
else
|
||
{
|
||
echo '<li>No sealing activity was observed in the locality.</li>';
|
||
}
|
||
}
|
||
|
||
if(isset($final_remark_data['outlet_location']))
|
||
{
|
||
if($final_remark_data['outlet_location'] == 'heavy_footfall')
|
||
{
|
||
echo '<li>Heavy Footfall ( Lots of customer in the locality / market place )</li>';
|
||
}
|
||
else if($final_remark_data['outlet_location'] == 'medium_footfall')
|
||
{
|
||
echo '<li>Medium Footfall ( Meduim no of customer in the locality / market place )</li>';
|
||
}
|
||
else if($final_remark_data['outlet_location'] == 'low_footfall')
|
||
{
|
||
echo '<li>LOw Footfall ( Few customer in the locality / market place )</li>';
|
||
}
|
||
}
|
||
|
||
echo "</ul>";
|
||
|
||
if($address_form['address_form_remark'])
|
||
{
|
||
echo '<br><span class="tooltip">'.$address_form['address_form_remark'].'<span class="tooltiptext">Address Form - Address Form Remarks </span></span>';}
|
||
echo "</p>";
|
||
// echo "<div id='page_break'></div>";
|
||
//die();
|
||
//
|
||
?>
|
||
|
||
<!-- ####################### End of Address Details Section ############################-->
|
||
|
||
|
||
|
||
<!-- ####################### Loan Details Details Section ############################-->
|
||
<p contenteditable="true"><b>LOAN DETAILS:</b></p>
|
||
<?php
|
||
|
||
//print_r($loan_form);die();
|
||
$loan_amount = MYUTIL::customIndianNumberFormat($loan_form['loan_amount']);
|
||
echo '<span>During the PD visit, person met provide the following information about loan applied for:</span>';
|
||
|
||
$is_current_product_bl = $pd_master_details[0]['prod_catagory'] == "BL" ? true: false;
|
||
$is_current_product_lab = $pd_master_details[0]['prod_catagory'] == "LAP" ? true: false;
|
||
$is_current_product_laep = $pd_master_details[0]['prod_catagory'] == "LAEP" ? true: false;
|
||
// echo $pd_master_details[0]['product_abbr'];
|
||
// die();
|
||
$loan_table_dispaly_rows = array();
|
||
|
||
$loan_table_dispaly_rows[] = array('particulars' => 'Total Loan Amount applied for','details' => "<span style='font-family: DejaVu Sans; sans-serif;font-size:10px'>₹</span>"." ".$loan_amount.' ('.MYUTIL::numtowords($loan_form['loan_amount']).')');
|
||
if($is_current_product_bl || $is_current_product_laep)
|
||
{
|
||
$to_dispaly = !strcasecmp($loan_form['is_there_total_fund'], 'yes disclose') ? ('Disclosed '."<span style='font-family: DejaVu Sans; sans-serif;font-size:10px'>₹</span>"." ".MYUTIL::customIndianNumberFormat($loan_form['fund_amt']).' ('.MYUTIL::numtowords($loan_form['fund_amt']).')'):'Not Disclosed';
|
||
$loan_table_dispaly_rows[] = array('particulars' => 'Total Fund Requirement','details' => $to_dispaly);
|
||
}
|
||
$loan_table_dispaly_rows[] = array('particulars' => 'Loan Tenure expected','details' => $loan_form['loan_tenure'] != "" ? $loan_form['loan_tenure'].' Months' : 'Not provided');
|
||
|
||
$end_use = '';
|
||
$to_remove_for = false;
|
||
foreach($loan_form['end_use_master'] as $enduse)
|
||
{
|
||
if(strpos(strval($enduse), 'Others') === false) { $end_use.= $enduse.' and ';}
|
||
else {
|
||
|
||
$to_remove_for = true;
|
||
$end_use.=$loan_form['end_use_other'].' and';
|
||
}
|
||
}
|
||
$end_use = substr_replace($end_use, '', strrpos($end_use, 'and'),strlen($end_use));
|
||
//echo substr($end_use,0,3);
|
||
|
||
|
||
if(strcasecmp(substr($end_use,0,3),'for'))
|
||
{
|
||
if(!(count($loan_form['end_use_master']) == 1 && $to_remove_for))
|
||
{
|
||
$end_use = 'For '.$end_use;
|
||
}
|
||
}
|
||
|
||
$loan_table_dispaly_rows[] = array('particulars' => 'Loan Purpose','details' => $end_use);
|
||
|
||
if(strcasecmp($loan_form['is_transfer'],'no'))
|
||
{
|
||
|
||
$loan_table_dispaly_rows[] = array('particulars' => 'Balance Transfer Amount','details' => "<span style='font-family: DejaVu Sans; sans-serif;font-size:10px'>₹</span>"." ".MYUTIL::customIndianNumberFormat($loan_form['balance_transfer_amount']).' ('.MYUTIL::numtowords($loan_form['balance_transfer_amount']).')');
|
||
|
||
$loan_table_dispaly_rows[] = array('particulars' => 'Top Up Amount applied for','details' => "<span style='font-family: DejaVu Sans; sans-serif;font-size:10px'>₹</span>"." ".MYUTIL::customIndianNumberFormat($loan_form['topup_amount']).($loan_form['topup_amount'] ? (' ('.MYUTIL::numtowords($loan_form['topup_amount']).')') : '') );
|
||
|
||
if($loan_form['end_use_topup_master'])
|
||
{
|
||
$loan_table_dispaly_rows[] = array('particulars' => 'End Use of Topup','details' => ( strcasecmp('others',$loan_form['end_use_topup_master'])) ? $loan_form['end_use_topup_master'] : $loan_form['other_end_use_topup'] );
|
||
}
|
||
|
||
|
||
$loan_table_dispaly_rows[] = array('particulars' => 'Balance Transfer from','details' => $loan_form['lender'] == 1 ? $loan_form['other_bt_lender']: $loan_form['lender_master']);
|
||
|
||
}
|
||
else{
|
||
//echo 'sdn-'.((!$is_current_product_bl) && !$is_current_product_lab); die();
|
||
if((!$is_current_product_bl) && !$is_current_product_lab && !$is_current_product_laep)
|
||
{
|
||
$loan_table_dispaly_rows[] = array('particulars' => 'Amount of Own Contribution','details' =>"<span style='font-family: DejaVu Sans; sans-serif;font-size:10px'>₹</span>"." ".MYUTIL::customIndianNumberFormat($loan_form['own_contribution']).' ('.MYUTIL::numtowords($loan_form['own_contribution']).')' );
|
||
$source_of_own_contribution = '';
|
||
|
||
foreach($loan_form['source_of_own_contribution_master'] as $own_source)
|
||
{
|
||
|
||
if(!strcasecmp($own_source, 'others')) { $source_of_own_contribution.=$loan_form['other_source'].' and ';}else{ $source_of_own_contribution.= $own_source.' and '; }
|
||
}
|
||
$source_of_own_contribution = substr_replace($source_of_own_contribution, '', strrpos($source_of_own_contribution, ' and '),strlen($source_of_own_contribution));
|
||
|
||
$loan_table_dispaly_rows[] = array('particulars' => 'Source of Own Contribution','details' => $source_of_own_contribution);
|
||
}
|
||
}
|
||
|
||
$loan_table_dispaly_rows[] = array('particulars' => 'EMI Comfortable Paying','details' => $rupee_symbol." ".MYUTIL::customIndianNumberFormat($loan_form['emi_level']).' ('.MYUTIL::numtowords($loan_form['emi_level']).')' );
|
||
|
||
if(!$is_current_product_bl && !$is_current_product_laep)
|
||
{
|
||
|
||
if(isset($loan_form['property_type_master']) && $loan_form['property_type_master'] != "")
|
||
{
|
||
$loan_table_dispaly_rows[] = array('particulars' => 'Type of Property Being Mortgaged','details' => substr_count($loan_form['property_type_master'],'Others') ? $loan_form['property_type_others'] : $loan_form['property_type_master']);
|
||
|
||
$owners_list = null;foreach($loan_form['owners_list_master'] as $owner){ $owners_list.=$owner.' and '; }
|
||
$owners_list = substr_replace($owners_list, '', strrpos($owners_list, 'and'),strlen($owners_list));
|
||
if($owners_list == '')
|
||
{
|
||
if(isset($loan_form['owner_name_group'][0]['owner_name']))
|
||
{
|
||
$owners_list = $loan_form['owner_name_group'][0]['owner_name']['name'];
|
||
}
|
||
}
|
||
$loan_table_dispaly_rows[] = array('particulars' => 'Name of the current / proposed owner(s) of the Property being Mortgaged','details' => $owners_list);
|
||
|
||
$loan_table_dispaly_rows[] = array('particulars' => 'Status of Construction','details' => $loan_form['construction_status_master']);
|
||
|
||
$loan_table_dispaly_rows[] = array('particulars' => 'Estimated Market Value of the property being mortgaged','details' => ($loan_form['emv_per_customer'] != "" ? $rupee_symbol." ".MYUTIL::customIndianNumberFormat($loan_form['emv_per_customer']).' ('.MYUTIL::numtowords($loan_form['emv_per_customer']).')' : 'Not Provided'));
|
||
}
|
||
}
|
||
|
||
if(isset($loan_form['property_seller']) && $loan_form['property_seller'] != '')
|
||
{
|
||
$loan_table_dispaly_rows[] = array('particulars' => 'Current Owner/Seller of the property','details' => $loan_form['property_seller'] );
|
||
|
||
|
||
}
|
||
|
||
if(isset($loan_form['address']) && $loan_form['address'] != '')
|
||
{
|
||
$address_of_owner_seller_property = $loan_form['address'] . (isset($loan_form['city_master']) ? ', '.$loan_form['city_master'] : '') . (isset($loan_form['state_master']) ? ', '.$loan_form['state_master'] : '') . (isset($loan_form['pincode_master']) ? ', '.$loan_form['pincode_master'] : '');
|
||
|
||
$loan_table_dispaly_rows[] = array('particulars' => 'Address of the property','details' => $address_of_owner_seller_property );
|
||
}
|
||
//print_r($loan_table_dispaly_rows);
|
||
?>
|
||
<br><br>
|
||
<table class="scorecard_table">
|
||
<tr> <th style="text-align:center;">S.No</th> <th>Loan Particulars</th> <th>Loan Particular Details</th> </tr>
|
||
<tbody>
|
||
<?php
|
||
foreach($loan_table_dispaly_rows as $row_key => $row)
|
||
{
|
||
echo '<tr> <td style="text-align:center;width:25px;">'.($row_key + 1)."</td> <td>".$row['particulars']."</td> <td>".$row['details'] ."</td> </tr>";
|
||
}
|
||
?>
|
||
</tbody>
|
||
</table>
|
||
<?php
|
||
//
|
||
echo "<br><br>".$loan_form['loandetails_remarks'];
|
||
?>
|
||
<!-- ####################### End of Loan Details Details Section ############################-->
|
||
|
||
|
||
<!-- #################Employeement Section section #################-->
|
||
<?php
|
||
/*
|
||
$employeement_data = array();
|
||
$salary_mode_text = array('both_bank_transfer_cash' => 'both bank and cash','bank_transfer' => 'bank transfer','paid_in_cash' => 'cash');
|
||
if(isset($pd_processed_forms[12]))
|
||
{
|
||
$employeement_data = json_decode($pd_processed_forms[12][0]['processed_json'],true);
|
||
}
|
||
//print_r($employeement_data); die();
|
||
if(count($employeement_data))
|
||
{
|
||
echo "<h3>Employment Information</h3>" ;
|
||
if(isset($employeement_data['photo_id_card'])){
|
||
if ($employeement_data['photo_id_card'] == 'Not Provided'){ echo "<p>Person met/contacted has not provided ID Card</p>";}
|
||
else if($employeement_data['photo_id_card'] == 'Others'){ echo "<p>Person met/contacted provided ".$employeement_data['photo_id_others']." as ID Card.</p>"; }
|
||
else{echo "<p>Person met/contacted provided ".$employeement_data['photo_id_card']." as ID Card.</p>"; }
|
||
}
|
||
|
||
echo "<p><b>Employer Name : </b>". explode('-', $employeement_data['employer_name'])[1] ."</p>" ;
|
||
|
||
echo "<p style='text-align:justify'><b>Company Profile : </b>". $employeement_data['employer_in_brief'] ."</p>" ;
|
||
|
||
echo "<p>The applicant has served ". $employeement_data['how_long_year'] ." Years ".($employeement_data['how_long_month'] ? ' and '.$employeement_data['how_long_month'].' months' : '' )." as employee in this firm / company. " ;
|
||
|
||
echo "Applicant has total work experience of ". $employeement_data['total_business_experience']." years.</p>";
|
||
|
||
echo $employeement_data['total_business_previous_experience'] ? ("<p>Previously, applicant ".$employeement_data['total_business_previous_experience']) : '';
|
||
|
||
echo $employeement_data['was_met'] == 'no'? "<p>No one was met at the visited premises who could confirm the employment details of loan applicant. </p>":"<p>During PD visit, ".$employeement_data['name_person_met'].' ( '. ($employeement_data['others_person_met'] ? $employeement_data['others_person_met'] : $employeement_data['designation_person_met_master']) .' ) was met at the visited premises.';
|
||
|
||
echo ($employeement_data['confirm_salary'] == 'no'? '<p>Salary amount was not confirmed because '.$employeement_data['sal_amount_was_not_confirmed'].' </p>' : '<p>Salary amount confirmed by person met is '.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($employeement_data['confirm_salary_amount']).'.</p>');
|
||
|
||
|
||
echo $employeement_data['attendance_seen'] == 'no' ? "<p>Attendance Register was not seen during visit.</p>": "<p>Attendance register was seen during visit. </p>";
|
||
|
||
echo $employeement_data['sal_reg_seen'] == 'no' ? "<p>Salary register was not seen during visit.</p>": "<p>Salary register was seen during visit.</p>";
|
||
|
||
|
||
|
||
|
||
echo "<p style='text-align:justify'>Salary paid to the applicant between ".MYUTIL::addOrdinalNumberSuffix($employeement_data['from_date_the_salary_is_rcv']) ." and ".MYUTIL::addOrdinalNumberSuffix($employeement_data['to_date_the_salary_is_rcv']). " of every month via ".$salary_mode_text [ $employeement_data['mode_of_getting_salary'] ]."</p>";
|
||
|
||
if((isset($employeement_data['amount_paid_in_cash']) && $employeement_data['amount_paid_in_cash']) && (isset($employeement_data['amount_paid_through_bank']) && $employeement_data['amount_paid_through_bank']))
|
||
{
|
||
echo $rupee_symbol.' '.$employeement_data['amount_paid_in_cash']." paid as cash and ".$rupee_symbol.' '.$employeement_data['amount_paid_through_bank']." as bank transfer";
|
||
}
|
||
// else if(isset($employeement_data['amount_paid_in_cash']) && $employeement_data['amount_paid_in_cash'])
|
||
// {
|
||
// echo "entire salary is paid as cash.";
|
||
// }
|
||
// else if(isset($employeement_data['amount_paid_through_bank']) && $employeement_data['amount_paid_through_bank'])
|
||
// {
|
||
// echo "entire salary is paid as bank transfer.";
|
||
// }
|
||
|
||
echo "<p>Applicant gets monthly gross salary of ". $rupee_symbol." ". MYUTIL::customIndianNumberFormat($employeement_data['gross_monthly_salary'])." and net monthly salary of ".$rupee_symbol." ". MYUTIL::customIndianNumberFormat($employeement_data['net_monthly_salary'])."</p>";
|
||
|
||
|
||
echo $employeement_data['check_validated'] == "not validated" ? "<p>The salary amount was not validated during visit because ".$employeement_data['why_was_it_not_validated']."</p>": "<p>The salary amount was validated during visit ".$employeement_data['how_was_it_validated']."</p>";
|
||
|
||
echo $employeement_data['any_delays'] == 'yes' ? '<p>As per person met, sometimes there is delay in salary payment.</p>' : '<p>Generally, there is no delay in salary payment.</p>';
|
||
|
||
|
||
// echo $employeement_data['bonus_incentive'] ? "<p>The applicant receives a bonus ( ".($employeement_data['bonus_type'] == 'others' ? $employeement_data['bonus_type_other']: $employeement_data['bonus_type']).") of ".$rupee_symbol." ".MYUTIL::customIndianNumberFormat($employeement_data['bonus_incentive'])." ".$employeement_data['bonus_frequency_master'].'.</p>': '<p>Applicant does not get any Bonus amount or Incentives.</p>';
|
||
if(isset($employeement_data['bonus_incentive'])){
|
||
if($employeement_data['bonus_incentive'] > 0){
|
||
echo $employeement_data['bonus_incentive'] ? "<p>The applicant receives a bonus ( ".($employeement_data['bonus_type'] == 'others' ? $employeement_data['bonus_type_other']: $employeement_data['bonus_type']).") of ".$rupee_symbol." ".MYUTIL::customIndianNumberFormat($employeement_data['bonus_incentive'])." ".$employeement_data['bonus_frequency_master'].'.</p>': '<p>Applicant does not get any Bonus amount or Incentives.</p>';
|
||
}
|
||
else{
|
||
echo "Applicant does not get any Bonus amount or Incentives ";
|
||
}
|
||
}
|
||
|
||
echo $employeement_data['id_card_issued_company'] == 'yes' ? '<p>ID card issued by employer was seen by PD officer and same is available in zipped file enclosed with report.<p>' : '<p>ID card issued by employer was not seen because, '.$employeement_data['why_company_id_proof_not_available'].'</p>';
|
||
//echo "<br>***********************************";
|
||
|
||
echo $employeement_data['employment_remarks'] != "" ? "<p>".$employeement_data['employment_remarks']."</p>": "";
|
||
}
|
||
|
||
|
||
|
||
//die();
|
||
*/
|
||
|
||
$employeement_data = array();
|
||
$salary_mode_text = array('both_bank_transfer_cash' => 'both bank and cash','bank_transfer' => 'bank transfer','paid_in_cash' => 'cash');
|
||
if(isset($pd_processed_forms[12]))
|
||
{
|
||
$employeement_data = json_decode($pd_processed_forms[12][0]['processed_json'],true);
|
||
}
|
||
//print_r($employeement_data);
|
||
echo "<h3>Employment Information</h3>" ; //die();
|
||
if(count($employeement_data))
|
||
{
|
||
if($employeement_data['was_met'] == 'yes')
|
||
{
|
||
$designation_of_person_met = $employeement_data['designation_person_met'] == 1 ? $employeement_data['others_person_met'] : $employeement_data['designation_person_met_master'];
|
||
echo '<p>During PD '.$employeement_data['name_person_met'] .' who is ('.$designation_of_person_met .') of the company/firm was met/contacted.</p>';
|
||
}
|
||
else
|
||
{
|
||
echo '<p>During PD employer/Manager was not met/contacted.</p>';
|
||
}
|
||
// print_r($employeement_data);
|
||
if(isset($employeement_data['photo_id_card'])){
|
||
if ($employeement_data['photo_id_card'] == 'Not Provided'){ echo "<p>Person met/contacted has not provided ID Card</p>";}
|
||
else if($employeement_data['photo_id_card'] == 'Others'){ echo "<p>Person met/contacted provided ".$employeement_data['photo_id_others']." as ID Card.</p>"; }
|
||
else{echo "<p>Person met/contacted provided ".$employeement_data['photo_id_card']." as ID Card.</p>"; }
|
||
}
|
||
if($employeement_data['visiting_card'] == 'yes'){ echo '<p>Person met/contacted provided company ID Card/Visiting Card.</p>';}
|
||
else{ echo '<p>Person met/contacted was not provided company ID Card/Visiting Card.</p>'; }
|
||
echo "<p><b>Employer Name : </b>". explode('-', $employeement_data['employer_name'])[1] ."</p>" ;
|
||
echo "<p style='text-align:justify'><b>Company Profile : </b>". $employeement_data['employer_in_brief'] ."</p>" ;
|
||
|
||
echo "<p>The applicant has served ". $employeement_data['how_long_year'] ." Years ".($employeement_data['how_long_month'] ? ' and '.$employeement_data['how_long_month'].' months' : '' )." as employee in this firm / company. " ;
|
||
|
||
echo "Applicant has total work experience of ". $employeement_data['total_business_experience']." years.</p>";
|
||
|
||
echo $employeement_data['total_business_previous_experience'] ? ("<p>Previously, applicant ".$employeement_data['total_business_previous_experience']) : '';
|
||
|
||
if(isset($employeement_data['employer_applicant_relation']) && $employeement_data['employer_applicant_relation'] == 'yes'){
|
||
echo '<p> Employer and applicant are relatives. Employer is ( '.$employeement_data['employer_applicant_relation_type'].' ) of applicant.</p>';
|
||
}else if(isset($employeement_data['employer_applicant_relation']) && $employeement_data['employer_applicant_relation'] == 'no'){
|
||
echo '<p> There is no relationship between employer and applicant. </p>';
|
||
}
|
||
|
||
if(isset($employeement_data['no_of_employee_in_firm'])){
|
||
echo '<p> Number of employees working in firm '.$employeement_data['no_of_employee_in_firm'].' </p>';
|
||
}
|
||
|
||
// echo $employeement_data['was_met'] == 'no'? "<p>No one was met at the visited premises who could confirm the employment details of loan applicant. </p>":"<p>During PD visit, ".$employeement_data['name_person_met'].' ( '. ($employeement_data['others_person_met'] ? $employeement_data['others_person_met'] : $employeement_data['designation_person_met_master']) .' ) was met at the visited premises.';
|
||
|
||
// echo ($employeement_data['confirm_salary'] == 'no'? '<p>Salary amount was not confirmed person met/contacted because '.$employeement_data['sal_amount_was_not_confirmed'].' </p>' : '<p>Salary amount confirmed by person met/contacted is '.$rupee_symbol.' '.MYUTIL::customIndianNumberFormat($employeement_data['confirm_salary_amount']).'.</p>');
|
||
|
||
|
||
// echo $employeement_data['attendance_seen'] == 'no' ? "<p>Attendance Register was not seen during visit.</p>": "<p>Attendance register was seen during visit. </p>";
|
||
|
||
// echo $employeement_data['sal_reg_seen'] == 'no' ? "<p>Salary register was not seen during visit.</p>": "<p>Salary register was seen during visit.</p>";
|
||
|
||
|
||
|
||
|
||
echo "<p style='text-align:justify'>Salary paid to the applicant between ".MYUTIL::addOrdinalNumberSuffix($employeement_data['from_date_the_salary_is_rcv']) ." and ".MYUTIL::addOrdinalNumberSuffix($employeement_data['to_date_the_salary_is_rcv']). " of every month via ".$salary_mode_text [ $employeement_data['mode_of_getting_salary'] ].".</p>";
|
||
if((isset($employeement_data['amount_paid_in_cash']) && $employeement_data['amount_paid_in_cash']) && (isset($employeement_data['amount_paid_through_bank']) && $employeement_data['amount_paid_through_bank']))
|
||
{
|
||
echo "Applicant is getting ".$rupee_symbol.' '.$employeement_data['amount_paid_in_cash']." paid as cash and ".$rupee_symbol.' '.$employeement_data['amount_paid_through_bank']." as bank transfer.";
|
||
}
|
||
|
||
if(isset($employeement_data['sal_paid_regularly']) && $employeement_data['sal_paid_regularly'] == 'yes')
|
||
{
|
||
echo '<p>Salary has been paid regularly for last three months.</p>';
|
||
}
|
||
else
|
||
{
|
||
echo '<p>Salary has been not paid regularly for last three months becasue '.$employeement_data['reason_not_sal_pay'].'.</p>' ;
|
||
}
|
||
|
||
// else if(isset($employeement_data['amount_paid_in_cash']) && $employeement_data['amount_paid_in_cash'])
|
||
// {
|
||
// echo "entire salary is paid as cash.";
|
||
// }
|
||
// else if(isset($employeement_data['amount_paid_through_bank']) && $employeement_data['amount_paid_through_bank'])
|
||
// {
|
||
// echo "entire salary is paid as bank transfer.";
|
||
// }
|
||
|
||
echo "<p>Applicant gets monthly gross salary of ". $rupee_symbol." ". MYUTIL::customIndianNumberFormat($employeement_data['gross_monthly_salary'])." and net monthly salary of ".$rupee_symbol." ". MYUTIL::customIndianNumberFormat($employeement_data['net_monthly_salary'])."</p>";
|
||
|
||
if(isset($employeement_data['bonus_incentive'])){
|
||
if($employeement_data['bonus_incentive'] > 0){
|
||
echo $employeement_data['bonus_incentive'] ? "<p>The applicant receives a bonus/incentives ( ".($employeement_data['bonus_type'] == 'others' ? $employeement_data['bonus_type_other']: $employeement_data['bonus_type']).") of ".$rupee_symbol." ".MYUTIL::customIndianNumberFormat($employeement_data['bonus_incentive'])." ".$employeement_data['bonus_frequency_master'].'.</p>': '<p>Applicant does not get any Bonus amount or Incentives.</p>';
|
||
}
|
||
else{
|
||
echo "Applicant does not get any Bonus amount or Incentives ";
|
||
}
|
||
}
|
||
|
||
|
||
// echo $employeement_data['check_validated'] == "not validated" ? "<p>The salary amount was not validated during visit because ".$employeement_data['why_was_it_not_validated']."</p>": "<p>The salary amount was validated during visit ".$employeement_data['how_was_it_validated']."</p>";
|
||
|
||
// echo $employeement_data['any_delays'] == 'yes' ? '<p>As per person met, sometimes there is delay in salary payment.</p>' : '<p>Generally, there is no delay in salary payment.</p>';
|
||
|
||
|
||
// echo $employeement_data['bonus_incentive'] ? "<p>The applicant receives a bonus ( ".($employeement_data['bonus_type'] == 'others' ? $employeement_data['bonus_type_other']: $employeement_data['bonus_type']).") of ".$rupee_symbol." ".MYUTIL::customIndianNumberFormat($employeement_data['bonus_incentive'])." ".$employeement_data['bonus_frequency_master'].'.</p>': '<p>Applicant does not get any Bonus amount or Incentives.</p>';
|
||
|
||
echo $employeement_data['id_card_issued_company'] == 'yes' ? '<p>ID card issued by employer was seen by PD officer and same is available in zipped file enclosed with report.<p>' : '<p>ID card issued by employer was not seen because, '.$employeement_data['why_company_id_proof_not_available'].'</p>';
|
||
//echo "<br>***********************************";
|
||
|
||
echo $employeement_data['employment_remarks'] != "" ? "<p>".$employeement_data['employment_remarks']."</p>": "";
|
||
|
||
echo "<h3>Employment Document Sighted</h3>" ;
|
||
$document_name = '';
|
||
$document_name .= ($employeement_data['sal_reg_seen'] == 'yes' ? 'Salary Register, ': '');
|
||
$document_name .= ($employeement_data['attendance_seen'] == 'yes' ? 'Attendance Register, ' : '');
|
||
$document_name .= ($employeement_data['cash_voucher'] == 'yes'? 'Cash Voucher,' : '');
|
||
$document_name .= ($employeement_data['sal_certificate'] == 'yes' ? 'Salary Certificate, ' : '');
|
||
$document_name .= ($employeement_data['sal_slip'] == 'yes' ? 'Salary Slip, ': '');
|
||
$document_name .= ($employeement_data['other_doc'] == 'yes' ? $employeement_data['other_doc_name'].', ' : '');
|
||
|
||
if($document_name != '')
|
||
{
|
||
$document_name = substr_replace($document_name,'', -2);
|
||
echo "<p> $document_name were seen during Field visit and photographs of same is available in zipped file enclosed with report.</p>";
|
||
}
|
||
else
|
||
{
|
||
$reason = vendor_form::getSalNotConfirmedResons($employeement_data['docs_sighted']['doc_not_available'],(isset($employeement_data['docs_sighted']['doc_not_available_specify']) ? $employeement_data['docs_sighted']['doc_not_available_specify'] : ''));
|
||
$dis = '<p>Applicant’s employment documents were not seen during Field visit';
|
||
if($reason) { $dis .= " becasue, $reason"; }; $reason .= '</p>.';
|
||
echo $dis;
|
||
}
|
||
//******************old
|
||
// if(!$employeement_data['doc_not_available'])
|
||
// {
|
||
// echo '<p>Following documents sighted of applicant’s employment.</p>';
|
||
// // foreach ($variable as $key => $value)
|
||
// // {
|
||
|
||
// // }
|
||
// }
|
||
// else
|
||
// {
|
||
|
||
// $doc_not_available_resan = '';
|
||
// foreach ($employeement_data['doc_not_available'] as $dna_key => $dna_value)
|
||
// {
|
||
// $doc_not_available_resan .= $dna_value.', ';
|
||
// }
|
||
// //$doc_not_available_resan = $employeement_data['doc_not_available_specify'] ? ($doc_not_available_resan.', ') : $doc_not_available_resan;
|
||
// $doc_not_available_resan = $doc_not_available_resan ? ( substr_replace($doc_not_available_resan,' ',-2)) : '';
|
||
|
||
// $ids = '<p>Applicant’s employment documents were not seen';
|
||
// if($doc_not_available_resan){$ids .= 'because '.$doc_not_available_resan;}
|
||
// $ids .= '</p>';
|
||
// echo $ids;
|
||
// }
|
||
|
||
}
|
||
|
||
?>
|
||
|
||
<!-- #################End of Employeement Section section #################-->
|
||
|
||
|
||
|
||
<!-- #################RI section #################-->
|
||
|
||
<?php
|
||
if(isset($pd_processed_forms[17]) && count($pd_processed_forms[17]))
|
||
{
|
||
$rental_data = array();
|
||
foreach($pd_processed_forms[17] as $rental_property_key => $rental_property)
|
||
{
|
||
//echo $rental_property_key;
|
||
$current_property = json_decode($rental_property['processed_json'],true);
|
||
$rental_data[] = RENTALFORM::getRentalText($current_property);
|
||
|
||
}
|
||
|
||
|
||
if(count($rental_data))
|
||
{
|
||
echo '<div id="page_break"></div>';
|
||
echo '<p><b> Rental Income Details</b></p>';
|
||
|
||
foreach ($rental_data as $key => $value) {
|
||
|
||
echo '<br><b>Property : '.($key + 1).'</b>';
|
||
echo '<br><br>Address of Property : <b>'.($value['address_property']).'</b>';
|
||
echo '<br><br>Type of Property : <b>'.($value['type_of_property']).'</b>';
|
||
echo '<br><br>Name of the Property Owner`s : <b>'.($value['property_owners_name']).'</b>';
|
||
echo '<br><br>Name of the person`s who showing Property : <b>'.($value['property_showing_persons_name']).'</b>';
|
||
echo '<br><br>Property Document Proof Seen : <b>'.($value['property_document_proof_visted']).'</b>';
|
||
if(!strcasecmp($value['property_document_proof_visted'],'yes')) { echo ' Type of Property Document Visted : <b>'.($value['type_of_document_visited']).'</b>'; }
|
||
echo '<br><br>Unit Type : <b>' . ($value['unit_type']) . '</b>';
|
||
echo '<br><br>No of Floors/Units : <b>'.($value['no_of_floors']).'</b>';
|
||
echo ' '; echo $value['area_coverd'] != "" ? 'Area covered : <b>'.($value['area_coverd'].' '.$value['area_uom'].'</b>') : '';
|
||
|
||
if(isset($value['unit_details']['multistorey']) && count($value['unit_details']['multistorey']))
|
||
{
|
||
echo '<p><b>Multistorey Details:</b></p>';
|
||
echo '<table class="scorecard_table">';
|
||
echo '<tr> <th>Floor Name</th> <th>No of Units</th> <th>Rent same for <br> all Units</th> <th>Unit Details</th> <th>Total <br> Rent Amount</th></tr>';
|
||
foreach($value['unit_details']['multistorey'] as $multistorey_key => $multistorey_value)
|
||
{
|
||
echo '<tr> <td class="customtd">'. $multistorey_value['floor_name'] .'</td> <td class="customtd">'. $multistorey_value['no_units_in_floor'] .'</td><td class="customtd">'. $multistorey_value['same_rent'] .'</td><td class="customtd">'. $multistorey_value['unit_details'] .'</td><td class="customtd">'. $multistorey_value['total_floor_rent'] .'</td></tr>';
|
||
}
|
||
echo '<tr><td class="customtd" colspan="4"> Total </td><td class="customtd">'. $rupee_symbol.' '.$value['unit_details']['multistorey_over_all_total'].'</td></tr>';
|
||
echo '</table>';
|
||
|
||
}
|
||
|
||
echo '<p><b>Unit Details:</b></p>';
|
||
foreach ($value['unit_details']['property_core'] as $u_key => $unit_value) {
|
||
echo '<br>';
|
||
echo $unit_value['unit_name'];
|
||
echo '<table class="scorecard_table">';
|
||
echo $unit_value['header_row'];
|
||
echo $unit_value['first_owners_row'];
|
||
echo $unit_value['second_lessee_name_row'];
|
||
echo $unit_value['third_area_of_unit_row'];
|
||
echo $unit_value['fourth_payment_mode_row'];
|
||
echo $unit_value['fifth_lease_period_row'];
|
||
echo $unit_value['sixth_security_deposit_row'];
|
||
echo $unit_value['eigth_current_rent_received_row'];
|
||
echo $unit_value['nineth_difference_between_rent_amount_row'];
|
||
echo '</table>';
|
||
|
||
}
|
||
|
||
|
||
//print_r($value['third_check_details']);
|
||
if($value['third_check_details']['done_third_party_check'])
|
||
{
|
||
echo '<br>For property'.($key + 1).' Third Party check was done with ' . $value['third_check_details']['whom_third_party_check_done'];
|
||
echo isset($value['third_check_details']['description_third_party_check_done']) ? ' ('. $value['third_check_details']['description_third_party_check_done'].'). ' : ' ';
|
||
if($value['third_check_details']['rental_rates_third_party_check_done'] != "")
|
||
{
|
||
echo 'Rental rates in the area as per person whom third party check is done is '.$value['third_check_details']['rental_rates_third_party_check_done'];
|
||
}
|
||
}
|
||
else
|
||
{
|
||
|
||
echo '<br>For property '.($key + 1).' Third Party check not done.';
|
||
echo isset($value['third_check_details']['why_third_party_check_not_done']) && $value['third_check_details']['why_third_party_check_not_done'] != "" ?'Resaon - '.$value['third_check_details']['why_third_party_check_not_done'] : '';
|
||
}
|
||
echo '<br>' . $value['property_remark'];
|
||
|
||
}
|
||
|
||
}
|
||
|
||
|
||
}
|
||
|
||
|
||
?>
|
||
<!-- #################End of RI section #################-->
|
||
|
||
|
||
<!-- #################start other asset section #################-->
|
||
<?php
|
||
|
||
$otherAssetResult=array();
|
||
$is_personal_info_available = null;
|
||
foreach($pd_processed_forms[4] as $rowKey=> $oaRow) {
|
||
$otherAssetRow = json_decode($oaRow['processed_json'],true);
|
||
$other_assest_common_remrks = $otherAssetRow['assets_form_remark'];
|
||
if(isset($otherAssetRow['asset_info_available']) && $otherAssetRow['asset_info_available'] == 1)
|
||
{
|
||
$is_personal_info_available = 1;
|
||
|
||
if(count($otherAssetRow['assets_details'])>0){
|
||
$otherAssetResult=ASSETSFORM::getOthersAssetsDetails($otherAssetRow['assets_details'],$pd_master_details[0]['pd_id']);
|
||
|
||
//print_r($otherAssetResult);
|
||
}
|
||
}
|
||
}
|
||
?>
|
||
<!-- <div id="page_break"></div> -->
|
||
<h3 contenteditable="">Personal Assets</h3>
|
||
<?php
|
||
//print_r($otherAssetResult);die();
|
||
if($is_personal_info_available != null){ ?>
|
||
<table class="scorecard_table">
|
||
<thead>
|
||
<tr>
|
||
<th>Sr.No</th>
|
||
<th>Asset Type</th>
|
||
<th>Asset Description</th>
|
||
<th>Asset Owned By</th>
|
||
<th>Approx Market Value(Rs)</th>
|
||
<th>Age of the Assest</th>
|
||
<th>Loan Again Assest</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<?php foreach($otherAssetResult as $oakey => $paRow){
|
||
?>
|
||
<tr>
|
||
<td class="customtd"><?php echo (++$oakey); ?></td>
|
||
<td class="customtd"><?php echo $paRow['assets_mode']; ?></td>
|
||
<td class="customtd"><?php echo $paRow['about_assets']; ?></td>
|
||
<td class="customtd"><?php echo $paRow['name_of_the_owner']; ?></td>
|
||
<td class="customtd"><?php echo isset($paRow['is_sum_assured']) ? 'Sum Assured -<br> '. $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($paRow['approximate_market_value']) : ( ($paRow['approximate_market_value'] != '' && $paRow['approximate_market_value'] != 0 ? $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($paRow['approximate_market_value']): 'Not Provided' )); ?></td>
|
||
<td class="customtd"><?php echo $paRow['purchase_year'] ? $paRow['purchase_year'] : 'NA'; ?></td>
|
||
<td class="customtd"><?php echo ($paRow['emi']) ? 'Yes' : 'No'; ?></td>
|
||
</tr>
|
||
<?php } ?>
|
||
</tbody>
|
||
</table>
|
||
<?php }
|
||
else {?>
|
||
<p>As per Loan applicant, he does not have any other assets.</p>
|
||
<?php }
|
||
|
||
if($other_assest_common_remrks != ""){ echo '<p>'.$other_assest_common_remrks.'</p>'; }
|
||
|
||
?>
|
||
<!-- end other asset section -->
|
||
<!-- start individual banking section -->
|
||
<?php
|
||
$bankingResult=array();
|
||
$is_personal_banking_available = null;
|
||
// individual banking
|
||
foreach($pd_processed_forms[7] as $rowKey=> $ibRow) {
|
||
$individualBankRow = json_decode($ibRow['processed_json'],true);
|
||
$ind_banking_common_remarks = $individualBankRow['banking_form_remark'];
|
||
if(isset($individualBankRow['bank_info_available']) && $individualBankRow['bank_info_available'] == 1)
|
||
{
|
||
$is_personal_banking_available = 1;
|
||
if(count($individualBankRow['banking_details'])>0){
|
||
$getIndividualEachValues=BANKINGFORM::getIndividualBankingDetails($individualBankRow['banking_details'],$pd_master_details[0]['pd_id']);
|
||
$bankingResult = array_merge($bankingResult,$getIndividualEachValues);
|
||
|
||
}
|
||
}
|
||
}
|
||
|
||
|
||
?>
|
||
<h3 contenteditable="true">Personal Banking: </h3>
|
||
<?php if($is_personal_banking_available != null){
|
||
//print_r($bankingResult);
|
||
?>
|
||
<p>Below bank account details were shared :</p>
|
||
<table class="scorecard_table">
|
||
<thead>
|
||
<tr>
|
||
<th>Sr.No</th>
|
||
<th>Account Holder's Name</th>
|
||
<th>Bank Name</th>
|
||
<th>Account Type</th>
|
||
|
||
<th>OD / CC Limit</th>
|
||
<th>Vintage</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<?php foreach($bankingResult as $pbkey => $bdRow){
|
||
?>
|
||
<tr>
|
||
<td class="customtd"><?php echo (++$pbkey); ?></td>
|
||
<td class="customtd"><?php echo $bdRow['account_name'] ?></td>
|
||
<td class="customtd"><?php echo $bdRow['bank_name'] ?></td>
|
||
<td class="customtd"><?php echo $bdRow['account_type'] ?></td>
|
||
|
||
<td class="customtd"><?php echo $bdRow['od_cc_limit'] ? $bdRow['od_cc_limit'] : "NA" ?></td>
|
||
<td class="customtd"><?php echo $bdRow['vintage'] ?></td>
|
||
</tr>
|
||
<?php } ?>
|
||
</tbody>
|
||
</table>
|
||
<?php
|
||
|
||
|
||
}
|
||
|
||
if($ind_banking_common_remarks != ''){echo '<p>'.$ind_banking_common_remarks.'</p>'; } ?>
|
||
|
||
|
||
<!-- #################end business / individual banking section #################-->
|
||
|
||
|
||
|
||
<!-- start other income section -->
|
||
<?php
|
||
//
|
||
|
||
$otherIncomeResult=array();
|
||
$is_other_income_available = null;
|
||
foreach($pd_processed_forms[9] as $rowKey=> $iRow) {
|
||
$otherIcomeRow = json_decode($iRow['processed_json'],true);
|
||
$other_source_income_common_remarks = $otherIcomeRow['otherincome_remarks'];
|
||
|
||
|
||
if(strtoupper($otherIcomeRow['other_income'])=='YES' && count($otherIcomeRow['income_details'])>0){
|
||
$is_other_income_available = 1;
|
||
$otherIncomeResult=OTHERINCOMEFORM::getIncomeDetails($otherIcomeRow['income_details'],$pd_master_details[0]['pd_id']);
|
||
|
||
}
|
||
}
|
||
?>
|
||
<br>
|
||
<h3 contenteditable="true">Other Sources of Income of Individual Loan Applicants:</h3>
|
||
<?php if($is_other_income_available != null){
|
||
//print_r($otherIncomeResult);
|
||
?>
|
||
|
||
|
||
<table class="scorecard_table">
|
||
<thead>
|
||
<tr>
|
||
<th>Sr.No</th>
|
||
<th>Income Source</th>
|
||
<th>Earned by</th>
|
||
<th>Amount(Rs)</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<?php foreach($otherIncomeResult as $oidkey =>$oiRow){
|
||
?>
|
||
<tr>
|
||
<td class="customtd"><?php echo (++$oidkey) ?></td>
|
||
<td class="customtd"><?php echo $oiRow['source']; ?></td>
|
||
<td class="customtd"><?php echo $oiRow['earned_by'] ?></td>
|
||
|
||
<td class="customtd"><?php echo $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($oiRow['amount']).' '.$oiRow['frequency'] ?></td>
|
||
</tr>
|
||
<?php } ?>
|
||
</tbody>
|
||
</table>
|
||
<?php }
|
||
else {?>
|
||
<p>As per the loan applicants, they do not have any other source of Income.</p>
|
||
<?php }
|
||
if($other_source_income_common_remarks != ''){ echo '<p>'. $other_source_income_common_remarks.'</p>'; }
|
||
|
||
?>
|
||
|
||
<!-- end other income section -->
|
||
|
||
<!-- #################start family section #################-->
|
||
<?php
|
||
$familyResult=array();
|
||
foreach($pd_processed_forms[6] as $rowKey=> $fRow) {
|
||
$familyRow = json_decode($fRow['processed_json'],true);
|
||
//print_r($familyRow);die();
|
||
$other_family_form_common_remarks = $familyRow['family_details_form_remark'];
|
||
if(array_key_exists('family_details',$familyRow) && count($familyRow['family_details'])>0){
|
||
$familyResult=OTHERFAMILYFORM::getFamilyDetails($familyRow['family_details'],$pd_master_details[0]['pd_id']);
|
||
}
|
||
}
|
||
?>
|
||
|
||
<h3 contenteditable="true">Family Information:</h3>
|
||
<?php if(count($familyResult)>0){
|
||
//print_r($familyResult);
|
||
?>
|
||
<!-- <div id='page_break'></div> -->
|
||
|
||
<?php foreach($familyResult as $fmKey => $fmValue) { ?>
|
||
<!-- <p><strong><?php //echo ($fmKey+1).'. '.$fmValue['selected_person']; ?></strong></p> -->
|
||
<?php
|
||
$intro_text = '<span class="tooltip">'.$fmValue['selected_person_title'].$fmValue['selected_person'].'<span class="tooltiptext">Family Information - Select person for capturing family details</span></span>, <span contenteditable="true">who is an applicant in the case, resides at </span><span class="tooltip">'.$fmValue['residency_address'].'<span class="tooltiptext">Family Information - Residence Address of Select person </span></span><span contenteditable="true">.</span>';
|
||
|
||
$residence_text ='<span contenteditable="true">This is a </span><span class="tooltip">'. $fmValue['residence_ownership'].' <span class="tooltiptext">Family Information - Ownership of Residence </span></span><span contenteditable="true"> residence, where the applicant has been staying for </span><span class="tooltip">'. $fmValue['residence_No_of_years'].'<span class="tooltiptext">Family Information - No of Yrs in current residence </span></span><span contenteditable="true">.</span>';
|
||
$residence_text .= (!strcasecmp($fmValue['residence_ownership'],'rented')) ? '<span contenteditable="true"> The rent paid '.$rupee_symbol.' </span>'.$fmValue['rent'].'<span contenteditable="true"> per month.</span>' : '';
|
||
|
||
echo '<p>' . $intro_text . '</p>';echo '<p>' . $residence_text . '</p>';
|
||
|
||
?>
|
||
|
||
<?php if($fmValue['family_members_details'][0]['name'] != "" ){ ?>
|
||
<p>The table below provides details of other family members of <?php echo $fmValue['selected_person']." :";?></p>
|
||
<table class="scorecard_table">
|
||
<thead>
|
||
<tr>
|
||
<th>Sr.No</th>
|
||
<th>Name</th>
|
||
<th>Relation</th>
|
||
<th>Age</th>
|
||
<th>Earning Status</th>
|
||
<th>Occupation Details</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<?php foreach($fmValue['family_members_details'] as $fmdkey => $fmRow){
|
||
?>
|
||
<tr>
|
||
<td class="customtd"><?php echo (++$fmdkey) ?></td>
|
||
<td class="customtd"><?php echo $fmRow['name'] ?></td>
|
||
<td class="customtd"><?php echo $fmRow['family_member_relationship'] ?></td>
|
||
<td class="customtd"><?php echo $fmRow['family_member_age'] ?></td>
|
||
<td class="customtd"><?php echo $fmRow['family_member_earning'] ?></td>
|
||
<td class="customtd"><?php echo $fmRow['family_member_occupation'] ?></td>
|
||
</tr>
|
||
<?php } ?>
|
||
</tbody>
|
||
</table>
|
||
<?php } //name check if closed
|
||
if($fmValue['no_family_members_clix'] != "" || $fmValue['no_dependents_clix'] != "" ){
|
||
$text = 'There are '.$fmValue['no_family_members_clix'].' family member(s) ';
|
||
$text .= isset($fmValue['no_dependents_clix']) && $fmValue['no_dependents_clix'] != 0 ? ' of which ' . ($fmValue['no_dependents_clix'] == 1 ? 'One is' : $fmValue['no_dependents_clix']. ' are'). ' dependent on applicant.' : ' and none of them dependent on applicant.';
|
||
echo '<p>' . $text . '</p>';
|
||
}}?>
|
||
<?php }
|
||
else{?>
|
||
<p>Other Family Members is not available.</p>
|
||
<?php }
|
||
if($other_family_form_common_remarks != ""){ echo '<p>'.$other_family_form_common_remarks.'</p>'; }
|
||
|
||
?>
|
||
<!-- #################end family section #################-->
|
||
|
||
|
||
|
||
<!-- #################start Existing Loan obligations section################# -->
|
||
<?php
|
||
//
|
||
$existLoanResult=array();
|
||
$is_existing_loans_available = null;
|
||
$is_all_loan_details_availble = null;
|
||
foreach($pd_processed_forms[8] as $rowKey=> $elRow) {
|
||
$otherLoanRow = json_decode($elRow['processed_json'],true);
|
||
$existing_loan_form_common_remarks = $otherLoanRow['currentloan_remarks'];
|
||
$total_no_of_data = 0;
|
||
if(strtoupper($otherLoanRow['existing_loan'])=='YES' && count($otherLoanRow['loan_details'])>0){
|
||
$is_existing_loans_available = 1;
|
||
$is_all_loan_details_availble ='yes';
|
||
$total_no_of_data = count($otherLoanRow['loan_details']);
|
||
$existLoanResult=FINANCIALFORM::getOtherLoanDetails($otherLoanRow['loan_details'],$pd_master_details[0]['pd_id']);
|
||
}
|
||
|
||
}
|
||
//print_r($existLoanResult);//die();
|
||
?>
|
||
<br>
|
||
<h3 contenteditable="true">Existing loan obligation</h3>
|
||
<?php if($is_existing_loans_available != null && (!strcasecmp($is_all_loan_details_availble,'yes') && $existLoanResult['valid_data'] != 0)){
|
||
//print_r($existLoanResult);
|
||
|
||
?>
|
||
|
||
|
||
|
||
The table below lists the details of Existing Loan Obligations of the Loan Applicants.
|
||
<br><br>
|
||
<?php
|
||
$pre_loan_no = 0;
|
||
foreach($existLoanResult as $table_key => $single_table){
|
||
//print_r($single_table);die();
|
||
if(is_numeric($table_key))
|
||
{
|
||
?>
|
||
<table class="scorecard_table_resonal_assest" >
|
||
<!-- <thead> -->
|
||
<tr>
|
||
<th>Particulars</th>
|
||
<?php for($header = 1;$header <= $single_table['total_header']; $header++ )
|
||
{ $pre_loan_no++; echo "<th>Loan $pre_loan_no</th>"; } ?>
|
||
</tr>
|
||
<!-- </thead> -->
|
||
<tbody>
|
||
<?php
|
||
echo $single_table['first_row'];
|
||
echo $single_table['second_row'];
|
||
//echo $existLoanResult['third_row'];
|
||
echo $single_table['fourth_row'];
|
||
echo $single_table['fifth_row'];
|
||
echo $single_table['sixth_row'];
|
||
echo $single_table['seventh_row'];
|
||
echo $single_table['eigth_row'];
|
||
echo $single_table['ninth_row'];
|
||
echo $single_table['tenth_row'];
|
||
|
||
?>
|
||
|
||
</tbody>
|
||
</table>
|
||
<br>
|
||
<?php
|
||
}
|
||
}
|
||
}
|
||
else if($existLoanResult['valid_data'] == 0 && $is_existing_loans_available == null){?>
|
||
<p>As per loan applicant he does not have any existing loan obligations.</p>
|
||
<?php } ?>
|
||
<?php
|
||
if($existing_loan_form_common_remarks != ""){ echo '<p>'.$existing_loan_form_common_remarks.'</p>';}
|
||
?>
|
||
<!-- #################end Existing Loan obligations section ################# -->
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<!-- #################start neighbourhood/reference check #################-->
|
||
<!-- <?php
|
||
$existNeighRefCheck=array();
|
||
$pd_offiecer_status_about_neighbor = "";
|
||
foreach($pd_processed_forms[19] as $rowKey=> $nrcRow) {
|
||
$neighbourRefRow = json_decode($nrcRow['processed_json'],true);
|
||
//print_r($applicants_details);
|
||
//print_r($neighbourRefRow);die();
|
||
$neighbourhood_form_common_remarks = $neighbourRefRow['neighbour_reference_remark'];
|
||
if(strcasecmp($neighbourRefRow['neighbourhood_status'],'could not verify')){
|
||
$pd_offiecer_status_about_neighbor = $neighbourRefRow['neighbourhood_status'];
|
||
if(count($neighbourRefRow['neighbourhood_list'])>0){
|
||
$company_name = MYUTIL::findCompanyName($all_company_details,1,1);
|
||
|
||
$existNeighRefCheck=NEIGHBOURREFERENCECHECKFORM::getNeighbourhoodDetails($company_name,$neighbourRefRow['neighbourhood_list'],$pd_master_details[0],$applicants_details);//applicants_details comes from controller
|
||
}
|
||
}
|
||
// if(&& count($neighbourRefRow['referencecheck_list'])>0){
|
||
// $existNeighRefCheck=NEIGHBOURREFERENCECHECKFORM::getReferenceDetails($neighbourRefRow['referencecheck_list'],$pd_master_details[0]);
|
||
// }
|
||
}
|
||
?>
|
||
|
||
<h3 contenteditable="true">Neighbourhood / Reference Check</h3>
|
||
<?php
|
||
|
||
//echo $pd_offiecer_status_about_neighbor;
|
||
if(count($existNeighRefCheck)>0){
|
||
// print_r($existNeighRefCheck);die();
|
||
?>
|
||
|
||
<?php foreach($existNeighRefCheck as $nkey => $nfValue) {
|
||
|
||
echo $nfValue['neighbourhood_name_only'];
|
||
?>
|
||
|
||
<ul>
|
||
<li style="margin: 15px 0;"><?php echo $nfValue['neighbourhood_name']; ?></li>
|
||
<li style="margin: 15px 0;"><?php echo $nfValue['neighbourhood_do_know']; ?></li>
|
||
<li style="margin: 15px 0;"><?php echo $nfValue['neighbourhood_business_running_yr']; ?></li>
|
||
<li style="margin: 15px 0;"><?php echo $nfValue['ownership']; ?>
|
||
</ul>
|
||
<?php }?>
|
||
|
||
<li style="margin: 15px 0;"> Neighbourhood Check Status is <span style="font-size:16px;font-weight:bold;"><?php echo $pd_offiecer_status_about_neighbor;?>.</span></li>
|
||
</li>
|
||
|
||
|
||
|
||
<?php
|
||
}
|
||
else{?>
|
||
<!-- <p>Status of check: Could Not Verify. <br>Neighbour Check was not possible due to Could not verify</p> -->
|
||
<!-- <p>Neighbour Check was not possible due to Could not verify</p> --
|
||
<p>Status of the check: could not verify.<p>
|
||
|
||
<?php
|
||
}
|
||
if($neighbourhood_form_common_remarks != ""){ echo '<p>'. $neighbourhood_form_common_remarks.'</p>';}
|
||
?>
|
||
-->
|
||
<!-- #################end neighbourhood/reference check #################-->
|
||
|
||
<!-- #################Credit Manager Specific Query Section #################-->
|
||
<?php
|
||
|
||
$credit_officier_specific_queries = array();
|
||
if(isset($pd_processed_forms[24])) {
|
||
$credit_officier_specific_queries = json_decode($pd_processed_forms[24][0]['processed_json'],true);
|
||
}
|
||
// echo 'CREDIT ********************';
|
||
// print_r($data['pd_processed_forms'][24]);
|
||
//print_r($credit_officier_specific_queries);
|
||
// if(count($credit_officier_specific_queries))
|
||
// {
|
||
echo '<br>';
|
||
echo '<h3 contenteditable="true">Credit Manager`s Specific Queries:</h3>';
|
||
//echo '<br>';
|
||
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'].'<br>';
|
||
echo 'Answer - '. $value['answer'];
|
||
echo '<br><br>';
|
||
}
|
||
}
|
||
else
|
||
{
|
||
echo 'There are no specific queries raised by Credit Manager.';
|
||
}
|
||
|
||
echo '<br>';
|
||
echo '<h3 contenteditable="true">Document to be photographed/scanned: </h3>';
|
||
//
|
||
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'].'<br>';
|
||
echo 'Provided ( Yes / No ) : ' . ($doc_value['ans'] == 'yes' ? 'YES, Document available in zipped file enclosed with report'.'<br>' : 'NO<br>');
|
||
if($doc_value['ans'] != 'yes')
|
||
{
|
||
echo 'Reason : ' .$doc_value['reason'];
|
||
}
|
||
echo '<br><br>';
|
||
}
|
||
}
|
||
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 '<br>';
|
||
echo '<h3 contenteditable="true">Queries related to Covid-19: </h3>';
|
||
|
||
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'].'<br>';
|
||
$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 .'<br>';
|
||
$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].'<br>';
|
||
}
|
||
|
||
echo '<br>';
|
||
}
|
||
}
|
||
}
|
||
|
||
//}
|
||
|
||
?>
|
||
|
||
<!-- #################End of Credit Manager Specific Query Section #################-->
|
||
|
||
<!-- #################Final Remarks Section#################-->
|
||
<div class="page_break"></div>
|
||
<br><h3 contenteditable="true">PD OFFICER`S REMARKS ON CUSTOMER BEHAVIOUR, BUSINESS LOCATION & OVERALL PD STATUS</h3>
|
||
<?php
|
||
//print_r($final_remark_data);
|
||
$polite = null;$rude = null; $other_behaviour = null;$other_behaviour_remarks = null;
|
||
$fair = null;$well = null;$not = null;
|
||
|
||
$positive = null;$negative = null;$refer_to_credit = null;$fo_diplay = null;
|
||
$other_pd_officer_command = null;$other_command_remark = null;
|
||
|
||
$other_pd_officer_recommandation = null;$other_pd_officer_recommandation_remark = null;
|
||
if($final_remark_data['final_custormer_remark_type'] == 3){$polite = 1;}
|
||
else if($final_remark_data['final_custormer_remark_type'] == 2){$rude = 1;}
|
||
else if($final_remark_data['final_custormer_remark_type'] == 1){$other_behaviour = 1;
|
||
$other_behaviour_remarks = $final_remark_data['final_other_customer_behaviour'];
|
||
}
|
||
|
||
if(!strcasecmp($final_remark_data['is_service_provided'],'fairly_suited')){ $fair = 1;}
|
||
else if(!strcasecmp($final_remark_data['is_service_provided'],'well_suited')){$well = 1;}
|
||
else if(!strcasecmp($final_remark_data['is_service_provided'],'not_suited')){$not = 1;}
|
||
|
||
|
||
if($final_remark_data['pd_officers_recommendation'] == 2){$positive = 1;$fo_diplay = "Positive";}
|
||
else if($final_remark_data['pd_officers_recommendation'] == 3){
|
||
$negative = 1;$fo_diplay = "Negative";}
|
||
else if($final_remark_data['pd_officers_recommendation'] == 4){$refer_to_credit = 1;$fo_diplay = "Refer to credit";}
|
||
else if($final_remark_data['pd_officers_recommendation'] == 1){
|
||
$other_pd_officer_command = 1;
|
||
$other_command_remark = $final_remark_data['others_pd_officers_recommendation'];
|
||
}
|
||
$pd_officer_final_remark = isset($final_remark_data['final_form_remarks']) ? $final_remark_data['final_form_remarks'] : '';
|
||
|
||
//if(is_null($other_behaviour)){ echo 'null'; }
|
||
|
||
?>
|
||
<div>
|
||
|
||
<?php
|
||
if(isset($final_remark_data['market_intelligence']) && $final_remark_data['market_intelligence'] != '')
|
||
{
|
||
echo '<div class="intelligence">';
|
||
echo '<h3>Personal feedback or market intelligence on the case (if any):</h3>';
|
||
echo '<p>'.$final_remark_data['market_intelligence'].'</p>';
|
||
echo '</div>';
|
||
|
||
}
|
||
?>
|
||
<ul>
|
||
<li>Customer Behaviour: </li>
|
||
|
||
<br><br>
|
||
<!-- <table cellspacing="25">
|
||
<tr>
|
||
<td><div id="boxstyle2">polite <div class="ver_line"><?php if($polite){?><span style='font-family: DejaVu Sans; sans-serif;font-size:12px'>✔</span><?php } ?></div></div></td>
|
||
|
||
<td><div id="boxstyle2">Rude <?php if($rude){?><span style='font-family: DejaVu Sans; sans-serif;font-size:12px'>✔</span><?php } ?></div></td>
|
||
|
||
<td><div id="boxstyle2">Others as mentioned below <?php if($other_behaviour){?><span style='font-family: DejaVu Sans; sans-serif;font-size:12px'>✔</span><?php } ?></div></td>
|
||
</tr>
|
||
</table> -->
|
||
<?php $tick_mark ='<span style="font-family: DejaVu Sans; sans-serif;font-size:12px">✔</span>';
|
||
?>
|
||
<table>
|
||
<tr>
|
||
<td>
|
||
<div id="first_div" style="border-color:green;color:black;">Polite</div> <div id="tick_div" style="border-color:green;color:black;"><?php if($polite){ echo $tick_mark; } ?></div>
|
||
</td>
|
||
<td style="padding-left:50px;">
|
||
<div id="first_div" style="border-color:red;color:black;">Rude</div> <div id="tick_div" style="border-color:red;color:black;"><?php if($rude){ echo $tick_mark; } ?></div>
|
||
</td>
|
||
<?php if(!is_null($other_behaviour)){ ?>
|
||
<td style="padding-left:50px;">
|
||
<div id="first_div" style="border-color:red;color:black;">Others*</div> <div id="tick_div" style="border-color:red;color:black;"><?php if($other_behaviour){ echo $tick_mark; } ?></div>
|
||
</td>
|
||
<?php } ?>
|
||
</tr>
|
||
</table>
|
||
<br>
|
||
<?php if($other_behaviour){
|
||
|
||
echo "*".$other_behaviour_remarks;
|
||
echo '<br><br>';
|
||
}?>
|
||
|
||
|
||
<li>Suitability of Business Location: </li>
|
||
<br><br>
|
||
|
||
<table>
|
||
<!-- <tr>
|
||
<td><div id="boxstyle3">Well Suited <?php if($well){?><span style='font-family: DejaVu Sans; sans-serif;font-size:12px'>✔</span><?php } ?></div></td>
|
||
|
||
<td><div id="boxstyle3">Fairly Suited <?php if($fair){?><span style='font-family: DejaVu Sans; sans-serif;font-size:12px'>✔</span><?php } ?></div></td>
|
||
|
||
<td><div id="boxstyle3">Not Suited <?php if($not){?><span style='font-family: DejaVu Sans; sans-serif;font-size:12px'>✔</span><?php } ?></div></td>
|
||
</tr>-->
|
||
<tr>
|
||
<td >
|
||
<div id="first_div" style="border-color:green;color:black;">Well Suited</div> <div id="tick_div" style="border-color:green;color:black;"><?php if($well){ echo $tick_mark; } ?></div>
|
||
</td>
|
||
<td style="padding-left:50px;">
|
||
<div id="first_div" style="border-color:#ffff00;color:black;">Fairly Suited</div> <div id="tick_div" style="border-color:#ffff00;color:black;"><?php if($fair){ echo $tick_mark; } ?></div>
|
||
</td>
|
||
|
||
<td style="padding-left:50px;">
|
||
<div id="first_div" style="border-color:red;color:black;">Not Suited</div> <div id="tick_div" style="border-color:red;color:black;"><?php if($not){ echo $tick_mark; } ?></div>
|
||
</td>
|
||
</tr>
|
||
|
||
|
||
</table>
|
||
<br>
|
||
<li>PD Officer’s overall assessment: </li>
|
||
<br><br>
|
||
|
||
<table >
|
||
<!-- <tr>
|
||
<td><div id="boxstyle3">Positive <?php if($positive){?><span style='font-family: DejaVu Sans; sans-serif;font-size:12px'>✔</span><?php } ?></div></td>
|
||
|
||
<td><div id="boxstyle3">Refer to Credit <?php if($refer_to_credit){?><span style='font-family: DejaVu Sans; sans-serif;font-size:12px'>✔</span><?php } ?></div></td>
|
||
|
||
<td><div id="boxstyle3">Negative <?php if($negative){?><span style='font-family: DejaVu Sans; sans-serif;font-size:12px'>✔</span><?php } ?></div></td>
|
||
</tr>
|
||
|
||
<?php if($other_pd_officer_command){?>
|
||
<td><div id="boxstyle3">Others <?php if($other_pd_officer_command){?><span style='font-family: DejaVu Sans; sans-serif;font-size:12px'>✔</span><?php } ?></div></td>
|
||
<?php } ?>
|
||
</tr> -->
|
||
<tr>
|
||
<?php if($other_pd_officer_command == null){?>
|
||
<td >
|
||
<div id="first_div" style="border-color:green;color:black;">Positive</div> <div id="tick_div" style="border-color:green;color:black;"><?php if($positive){ echo $tick_mark; } ?></div>
|
||
</td>
|
||
<td style="padding-left:50px;">
|
||
<div id="first_div" style="border-color:#ffff00;color:black;">Refer to Credit</div> <div id="tick_div" style="border-color:#ffff00;color:black;"><?php if($refer_to_credit){ echo $tick_mark; } ?></div>
|
||
</td>
|
||
|
||
<td style="padding-left:50px;">
|
||
<div id="first_div" style="border-color:red;color:black;">Negative</div> <div id="tick_div" style="border-color:red;color:black;"><?php if($negative){ echo $tick_mark; } ?></div>
|
||
</td>
|
||
<?php }?>
|
||
<?php if($other_pd_officer_command){?>
|
||
<td>
|
||
<div id="first_div" style="border-color:red;color:black;">Others*</div> <div id="tick_div" style="border-color:red;color:black;"><?php if($other_pd_officer_command){ echo $tick_mark; } ?></div>
|
||
</td>
|
||
<?php } ?>
|
||
</tr>
|
||
|
||
|
||
</table>
|
||
<br>
|
||
<?php if(!$other_pd_officer_command){?>
|
||
</ul>
|
||
</div>
|
||
|
||
|
||
<p style="text-align:justify;">PD officer recommendation is <?php
|
||
|
||
if($positive){ $color_for_pd_offcier_recom = 'green';} else if($negative) { $color_for_pd_offcier_recom = 'red';}else{ $color_for_pd_offcier_recom = 'black';}
|
||
echo '<strong><span style="font-size:20px;color:'.$color_for_pd_offcier_recom.';">'.$fo_diplay.'</span>.</strong></p>';?> <p style="text-align:justify;">The following key points were considered while arriving at the aforementioned status.</p>
|
||
<?php
|
||
//
|
||
if($positive){ echo "<ul>"; foreach($final_remark_data['recommendation_positive'] as $pos){ echo "<li>".$pos['reason_for_positive']."</li>";}
|
||
|
||
}else if($negative){ echo "<ul>"; foreach($final_remark_data['recommendation_negative'] as $neg){ echo "<li>".$neg['reason_for_negative']."</li>";}
|
||
}
|
||
else if($refer_to_credit){ echo "<ul>"; foreach($final_remark_data['recommendation_refer_to_credit'] as $rtc){ echo "<li>".$rtc['reason_for_refer_to_credit']."</li>";}
|
||
}
|
||
echo "</ul>";
|
||
?>
|
||
<?php } else{ echo "<p>".$other_command_remark."</p>";}
|
||
|
||
echo '<p style="text-align:justify;">'.$pd_officer_final_remark.'</p>'
|
||
?>
|
||
<!-- #################End Final Remarks Section#################-->
|
||
<?php
|
||
if(count($pd_images['common_images']))
|
||
{
|
||
//echo count($pd_images['common_images']);
|
||
//print_r($pd_images['common_images']);
|
||
// foreach ($pd_images['common_images'] as $key => $value)
|
||
// {
|
||
// if($value['img_type'] == 1 || $value['img_type'] == 2 || $value['pd_document_title'] == 'satellite')
|
||
// {
|
||
// unset($pd_images['common_images'][$key]);
|
||
// }
|
||
// }
|
||
//echo count($pd_images['common_images']);
|
||
// print_r($pd_images['common_images']);
|
||
$pd_images['common_images'] = array_values($pd_images['common_images']);
|
||
$tot_rows = ceil(count($pd_images['common_images'])/3);
|
||
echo '<div id="page_break"></div>';
|
||
echo '<table class="scorecard_table"><tr><th class="thlargefont" colspan="10">Photograph`s</th></tr></table><br><table ><tbody>';
|
||
$employment_img_names = array('attendance_seen_pic' => 'Attendance Register Image','sal_reg_seen_pic' => 'Salary Register Image','id_card_image' => 'Employee ID card','name_board_img' => 'Name Board Image');
|
||
$add_factor = 0;
|
||
for($row = 0;$row < $tot_rows; $row++)
|
||
{
|
||
echo '<tr>';
|
||
|
||
$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 = isset($employment_img_names [ $pd_images['common_images'][$i]['pd_document_title'] ]) ? $employment_img_names [ $pd_images['common_images'][$i]['pd_document_title'] ] : $pd_images['common_images'][$i]['pd_document_title'];
|
||
echo '<td style="text-align:center;border:1px solid;"> <img src="'.$pd_images['common_images'][$i]['doc_url'].'" height = "200" width="200" alt="'.$pd_images['common_images'][$i]['pd_document_title'].'"/><br>'. $doc_title .'</td>';
|
||
}
|
||
|
||
//unset($p_key);
|
||
}
|
||
echo '</tr>';
|
||
}
|
||
echo '</tbody></table>';
|
||
}
|
||
?>
|
||
|
||
<?php
|
||
// ########################### End disclaimer start #########################################
|
||
echo "<p>";
|
||
$footer_lender_stamp = MYUTIL::dispatchDisclaimer($lender_disclaimer,3);
|
||
if(isset($footer_lender_stamp))
|
||
{
|
||
//$footer_lender_disclaimer = MYUTIL::dispatchDisclaimer($lender_disclaimer,3);
|
||
echo '<p align="right"><img height="200" width="200" src="https://pdgenie.com/logo/stamps/'.$footer_lender_stamp['disclaimer'].'" /></p>';
|
||
}
|
||
|
||
$footer_lender_disclaimer = MYUTIL::dispatchDisclaimer($lender_disclaimer,2);
|
||
|
||
if(isset($footer_lender_disclaimer))
|
||
{
|
||
echo '<p align="center"><i>'. $footer_lender_disclaimer['disclaimer'] .'</i></p>';
|
||
}
|
||
echo "</p>";
|
||
// ########################### End disclaimer end #########################################
|
||
?>
|
||
|
||
</body>
|
||
</html>
|
||
|
||
|