289 lines
13 KiB
PHP
289 lines
13 KiB
PHP
<?php
|
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
|
$uparrow = '<span style="color:green;">↑</span>';
|
|
$downarrow = '<span style="color:red;">↓</span>';
|
|
$dash = '<span style="color:black;"> </span>';
|
|
$product_abbr = $master[0]['abbr'];
|
|
$product = $master[0]['name'];
|
|
$rupee_symbol = "<span style='font-family: DejaVu Sans; sans-serif;font-size:10px'>₹</span>";
|
|
$title = "";
|
|
if($section1['verification_type'] == "Office verification" || $section1['verification_type'] == "Workplace verification"){$title = "Workplace FI for ".$product; }
|
|
else if($section1['verification_type'] == "Residence verification"){$title = "Residence FI for ".$product;}
|
|
$smc_emp_code = $master[0]['smc_emp_code'];
|
|
$residence_ownership_arr = array("self_owned" => "Self-Owned","parental"=>"Parental","family_owned"=>"Family Owned","rented"=>"Rented");
|
|
$residence_yr_arr = array("0"=>"< 1 yr","1"=>"1-2 yrs","2"=>"2 to 5 yrs","3"=>"> 5 yrs");
|
|
$occupation_arr = array("0"=>"Salaried","1"=>"SENP","2"=>"SEP");
|
|
$constitution_arr = array("0"=>"Ltd","1"=>"Pvt","2"=>"Ltd","3"=>"Trust/Society","4"=>"Partnership/LLP","5"=>"Proprietorship");
|
|
|
|
?><!DOCTYPE html>
|
|
<html lang="en">
|
|
<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;*/
|
|
}
|
|
|
|
|
|
/* #########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: inline;
|
|
|
|
}
|
|
|
|
.scorecard_table td, .scorecard_table th {
|
|
border: 1px solid #000;
|
|
padding: 8px;
|
|
page-break-inside: inline;
|
|
|
|
|
|
}
|
|
|
|
.scorecard_table tr:nth-child(even){background-color: #f2f2f2;page-break-inside: inline; }
|
|
|
|
.scorecard_table tr:hover {background-color: #ddd;}
|
|
|
|
.scorecard_table th {
|
|
padding-top: 8px;
|
|
padding-bottom: 8px;
|
|
text-align: center;
|
|
background-color: #0d93a9;
|
|
color: white;page-break-inside: inline;
|
|
|
|
}
|
|
|
|
/* #########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%;
|
|
page-break-inside: avoid;
|
|
|
|
}
|
|
|
|
.scorecard_table2 td, .scorecard_table2 th {
|
|
border: 1px solid #000;
|
|
padding: 8px;
|
|
page-break-inside: avoid;
|
|
|
|
|
|
}
|
|
|
|
.scorecard_table2 tr:nth-child(even){background-color: #f2f2f2;page-break-inside: avoid; }
|
|
|
|
.scorecard_table2 tr:hover {background-color: #ddd;}
|
|
|
|
.scorecard_table2 th {
|
|
padding-top: 8px;
|
|
padding-bottom: 8px;
|
|
text-align: center;
|
|
background-color: #0d93a9;
|
|
color: white;page-break-inside: avoid;
|
|
|
|
}
|
|
|
|
/* #########End of Score Card 2 Table Styles######### */
|
|
|
|
.tdcenteralign{ text-align: center; }
|
|
.thlargefont{ font-size: 20px; }
|
|
|
|
</style>
|
|
|
|
|
|
</head>
|
|
<body style="font-family:Merriweather;font-size:12px;margin:15px 30px">
|
|
|
|
|
|
<footer>
|
|
<hr>
|
|
<img style="width:100px;height:50px;opacity: 0.5;padding-top: 5px;" src='https://pdgenie.com/logo/sineedge_red.png'/> Powered By PD Genie
|
|
</footer>
|
|
<header>
|
|
<div>
|
|
<img style="width:100px;height:50px;opacity: 0.5;" src='https://pdgenie.com/logo/sineedge_red.png'/>
|
|
</div>
|
|
<hr>
|
|
</header>
|
|
|
|
<table class="scorecard_table">
|
|
|
|
<tbody>
|
|
<tr>
|
|
<th class="thlargefont" colspan="10" ><?php echo $title; ?> </th>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="3"> Lender Name</td>
|
|
<td class = "tdcenteralign" colspan="7"> <?php echo isset($section1['lender_name_master']) ? $section1['lender_name_master'] : 'Not Provided'?> </td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="3"> Branch</td>
|
|
<td class = "tdcenteralign" colspan="7"> <?php echo isset($section1['branch_master']) ? $section1['branch_master'] : 'Not Provided'?> </td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="3"> Application ID</td>
|
|
<td class = "tdcenteralign" colspan="7"> <?php echo isset($section1['loan_application_id']) ? $section1['loan_application_id'] : 'Not Provided'?> </td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="3"> Product Name</td>
|
|
<td class = "tdcenteralign" colspan="7"> <?php echo isset($section1['product_name_master']) ? $section1['product_name_master'] : (isset($master[0]['name'])? $master[0]['name'] : 'Not Provided')?> </td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="3" >Loan Amount Applied for (Rs)</td>
|
|
<td class = "tdcenteralign" colspan="7"> <?php echo isset($section1['loan_amount']) ? $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($section1['loan_amount']) : 'Not Provided'; ?> </td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="3"> Applicant Name</td>
|
|
<td class = "tdcenteralign" colspan="7"> <?php echo isset($section1['applicant_name']) ? $section1['applicant_name'] : 'Not Provided'?> </td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="3"> Applicant Mobile Number</td>
|
|
<td class = "tdcenteralign" colspan="7"> <?php echo isset($section1['applicant_mobile_no']) ? $section1['applicant_mobile_no'] : 'Not Provided'?> </td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="3"> Verification Type</td>
|
|
<td class = "tdcenteralign" colspan="7"> <?php echo isset($section1['verification_type']) ? $section1['verification_type'] : 'Not Provided'; ?> </td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<br>
|
|
<div id="page_break"></div>
|
|
<table class="scorecard_table">
|
|
<tbody>
|
|
<tr>
|
|
<th class="thlargefont" colspan="10">Additional Questions</th>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="3"> 1. Have you previously defaulted on any loans or declared bankruptcy?</td>
|
|
<td class = "tdcenteralign" colspan="7"> <?php echo isset($section1['have_you_previously_defaulted_on_any_loans_or_declared_bankruptcy']) && !empty($section1['have_you_previously_defaulted_on_any_loans_or_declared_bankruptcy']) ? $section1['have_you_previously_defaulted_on_any_loans_or_declared_bankruptcy']:'Not Provided'; ?> </td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="3"> 2. Can you provide proof of a stable source of income to repay the loan?</td>
|
|
<td class = "tdcenteralign" colspan="7"> <?php echo isset($section1['can_you_provide_proof_of_a_stable_source_of_income_to_repay_the_loan']) && !empty($section1['can_you_provide_proof_of_a_stable_source_of_income_to_repay_the_loan']) ?$section1['can_you_provide_proof_of_a_stable_source_of_income_to_repay_the_loan']:'Not Provided'; ?> </td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="3"> 3. Are you currently employed or have a steady source of income?</td>
|
|
<td class = "tdcenteralign" colspan="7"> <?php echo isset($section1['are_you_currently_employed_or_have_a_steady_source_of_income']) && !empty($section1['are_you_currently_employed_or_have_a_steady_source_of_income'])?$section1['are_you_currently_employed_or_have_a_steady_source_of_income']:'Not Provided'; ?> </td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="3"> 4. Will the loan be used for personal or business purposes?</td>
|
|
<td class = "tdcenteralign" colspan="7"> <?php echo isset($section1['are_you_currently_employed_or_have_a_steady_source_of_income']) && !empty($section1['are_you_currently_employed_or_have_a_steady_source_of_income'])?$section1['are_you_currently_employed_or_have_a_steady_source_of_income']:'Not Provided'; ?> </td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="3"> 5. Are you willing to provide collateral or a cosigner for the loan?</td>
|
|
<td class = "tdcenteralign" colspan="7"> <?php echo isset($section1['are_you_willing_to_provide_collateral_or_a_cosigner_for_the_loan']) && !empty($section1['are_you_willing_to_provide_collateral_or_a_cosigner_for_the_loan'])?$section1['are_you_willing_to_provide_collateral_or_a_cosigner_for_the_loan']:'Not Provided'; ?> </td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="3"> 6. Have you ever been convicted of any financial crimes or fraud?</td>
|
|
<td class = "tdcenteralign" colspan="7"> <?php echo isset($section1['have_you_ever_been_convicted_of_any_financial_crimes_or_fraud']) && !empty($section1['have_you_ever_been_convicted_of_any_financial_crimes_or_fraud']) ?$section1['have_you_ever_been_convicted_of_any_financial_crimes_or_fraud']:'Not Provided'; ?> </td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="3"> 7. Are you able to provide valid identification and proof of residence?</td>
|
|
<td class = "tdcenteralign" colspan="7"> <?php echo isset($section1['are_you_able_to_provide_valid_identification_and_proof_of_residence']) && !empty($section1['are_you_able_to_provide_valid_identification_and_proof_of_residence']) ?$section1['are_you_able_to_provide_valid_identification_and_proof_of_residence']:'Not Provided'; ?> </td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="3"> 8. Do you have any outstanding legal judgments or liens against you?</td>
|
|
<td class = "tdcenteralign" colspan="7"> <?php echo isset($section1['do_you_have_any_outstanding_legal_judgments_or_liens_against_you?']) && !empty($section1['do_you_have_any_outstanding_legal_judgments_or_liens_against_you?']) ?$section1['do_you_have_any_outstanding_legal_judgments_or_liens_against_you?']:'Not Provided'; ?> </td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="3"> 9. Are you familiar with the terms and conditions of the loan, including interest rates and repayment terms?</td>
|
|
<td class = "tdcenteralign" colspan="7"> <?php echo isset($section1['are_you_familiar_with_the_terms_and_conditions_of_the_loan_including_interest_rates_and_repayment_terms']) && !empty($section1['are_you_familiar_with_the_terms_and_conditions_of_the_loan_including_interest_rates_and_repayment_terms']) ? $section1['are_you_familiar_with_the_terms_and_conditions_of_the_loan_including_interest_rates_and_repayment_terms'] :'Not Provided'; ?> </td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="3"> 10. Are you applying for any other loans concurrently that may affect your ability to repay this loan?"</td>
|
|
<td class = "tdcenteralign" colspan="7"> <?php echo isset($section1['are_you_applying_for_any_other_loans_concurrently_that_may_affect_your_ability_to_repay_this_loan']) && !empty($section1['are_you_applying_for_any_other_loans_concurrently_that_may_affect_your_ability_to_repay_this_loan']) ?$section1['are_you_applying_for_any_other_loans_concurrently_that_may_affect_your_ability_to_repay_this_loan']:'Not Provided'; ?> </td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<div id="page_break"></div>
|
|
<br><table class="scorecard_table"><tr><th class="thlargefont" colspan="10">Satellite Image of PD Location</th></tr></table><br>
|
|
<p><b>GPS Coordinates of location where PD Visit was done : <?php echo $geo_location ? $geo_location : '-'; ?></b></p>
|
|
<?php if($geo_location) { ?>
|
|
<img style="border:3px solid #0191ed;" src = "<?php echo $satellite_image; ?>" alt = "PD Visted Location Satellite Image " height="300px" width="630px">
|
|
<?php
|
|
}else{ echo '<p>Due to location access not provided by loan applicant Geo coordinates on photographs and Satellite image of PD location is not shown</p>';}
|
|
?>
|
|
<?php
|
|
$iter = 0;
|
|
// $photo_names = array('selfie_with_person_met' => 'Selfie with person met','satellite1' => 'satellite');
|
|
$photo_names = array('selfie_with_person_met' => 'Selfie with person met','approach_to_pd_location' => 'Approach to pd location','name_board_seen' => 'Name board seen', 'stock_image' => 'Stock image','workplace_interior_image' => 'Workplace interior image','satellite1' => 'satellite');
|
|
|
|
$tot_rows = ceil(count($section9) / 3);
|
|
|
|
if(count($section9))
|
|
{
|
|
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>';
|
|
|
|
$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($section9[$i]))
|
|
{
|
|
|
|
echo '<td style="text-align:center;border:1px solid;"> <img src="'.$section9[$i]['img'].'" height = "200" width="200" alt="'.$section9[$i]['img_name'].'"/><br>'.$photo_names [ $section9[$i]['img_name'] ].'</td>';
|
|
}
|
|
|
|
//unset($p_key);
|
|
}
|
|
echo '</tr>';
|
|
}
|
|
echo '</tbody></table>';
|
|
}
|
|
?>
|
|
</body>
|
|
</html>
|