General
| Name |
{!! $application->name !!} |
| Score |
{!! $score !!} @if(isset($manual_applicant_creditscore)){!! $manual_applicant_creditscore !!} (Manual)@endif
|
| Purpose |
category->id) && $application->category->id == 24){
switch ($application->application_element->type_of_customer){
case 1:
echo 'Residential';
break;
case 2:
echo 'Rural C&I MSME ( Attachakki, Oil Expeller etc)';
break;
case 3:
echo 'Urban C&I MSME (Factories, Hospitals, Hotels, Offices, etc)';
break;
case 4:
echo 'Housing Society';
break;
case 5:
echo 'Schools & Universities';
break;
}
}else{
echo '-';
}
?>
|
| # Enq L12M |
{!! $enquiryPast12 !!} |
| Co-Applicant Name |
@if(isset($auto_co_applicant_name))
{!! $auto_co_applicant_name !!} |
@else
--missing-- |
@endif
| Co-Applicant Score |
@if(isset($auto_creditscore))
{!! $auto_creditscore->Score !!} @if(isset($manual_co_applicant_creditscore)){!! $manual_co_applicant_creditscore !!} (Manual)@endif |
@else
0 @if(isset($manual_co_applicant_creditscore)){!! $manual_co_applicant_creditscore !!} (Manual)@endif |
@endif
FOIR
| Monthly Income |
₹{!! money_format('%!i',$monthly_income) !!} |
| FOIR |
{!! $foir !!}% |
| ResidualFOIR |
{!! $ResidualFOIR !!}% |
| Max Eligible (Loan Amount) |
₹{!! money_format('%!i',$max_eligible) !!} |
| Max EMI serviced in last 36 months (A) |
₹{!! money_format('%!i',$max_emi_serviced) !!} |
| Current EMI amount (B) |
₹{!! money_format('%!i',$current_emi_sum) !!} |
| Eligibility Amount [(A-B)*50/100] |
₹{!! money_format('%!i',(($max_emi_serviced - $current_emi_sum) * 50 / 100)) !!} |
Loan + Demog
| Loan Value |
₹{!! money_format('%!i',$loan_amount) !!} |
| ROI % |
{!! $interest_rate !!} |
| Tenure |
{!! $tenure !!} |
| Profession |
{!! $profession !!} |
| Profession Type |
{!! $profession_type !!} |
| Industry |
{!! $industry !!} |
| Company Category |
{!! $company_category !!} |
| Company Name |
{!! $company_name !!} |
@if(isset($manual_applicant_creditscore))
Applicant (Manual Pulled Bureau)
@endif
@if(isset($manual_co_applicant_creditscore))
Co-Applicant (Manual Pulled Bureau)
@endif
@if(isset($bureauInput) && count($bureauInput) > 0)
BUREAU INPUT (Live + Closed) (Applicant)
| Account Status |
Last Reporting Date |
Last Payment Date |
Date Opened |
Date Closed |
Type of Loan |
Ownership |
Loan Sanctioned |
Loan Outstanding |
Overdue Amount |
{{--Schedule EMI | --}}
Principal Write-off |
EMI Calc-Old |
EMI Calc-New |
Last EMI Amount paid |
Max DPD |
Avg. DPD |
DPD in 6 Months |
DPD in 12 Months |
@foreach($bureauInput as $item)
0){
$red = "color:red;";
} ?>
0){
$red1 = "color:red;";
}
$red2 = '';
if($item['AccountStatus'] == 'Settled' || $item['AccountStatus'] == 'Suit Filed(Wilful Default) and Written-off' || $item['AccountStatus'] == 'Suit Filed' || $item['AccountStatus'] == 'Post (WO) Settled'|| $item['AccountStatus'] == 'Wilful default'|| $item['AccountStatus'] == 'Written-off'|| $item['AccountStatus'] == 'Doubtful'|| $item['AccountStatus'] == 'Restructured Loan'|| $item['AccountStatus'] == 'Loss' || $item['AccountStatus'] == 'Account Sold'){
$red2 = "color:red;";
}
$red3 = '';
if($item['PrincipalWriteOff'] > 0) {
$red3 = "color:red;";
}
if(isset($item['highlight']) && $item['highlight']){
$red2 = "color:red;";
}
?>
| {!! $item['AccountStatus'] or '' !!} |
{!! $item['reported_date'] or '' !!} |
{!! $item['last_payment_date'] or '' !!} |
|
|
@if(isset($item['is_close_date_updated']) && $item['is_close_date_updated'])@endif {!! $item['type_of_loan'] !!} |
{!! $item['owner_ship'] !!} |
₹{!! money_format('%!i',$item['loan_sanctioned']) !!} |
₹{!! money_format('%!i',$item['loan_outstanding']) !!} |
₹{!! money_format('%!i',$item['over_due_amount']) !!} |
{!! $item['PrincipalWriteOff'] or '' !!} |
{!! $item['schedule_emi'] !!} |
{!! $item['schedule_emi_new'] !!} |
₹{!! money_format('%!i',$item['last_emi_amount_paid']) !!} |
{!! $item['max_dpd'] !!} |
{!! $item['average_dpd'] !!} |
{!! $item['sixmonth'] !!} |
{!! $item['twelvemonth'] !!} |
@endforeach
@if($guarantor_loans !== '')
|
Guarantor Loans:
|
@foreach($guarantor_loans as $item)
0) {
$red3 = "color:red;";
}
?>
| {!! $item['AccountStatus'] or '' !!} |
{!! $item['ReportedDate'] or '' !!} |
{!! $item['LastPaymentDate'] or '' !!} |
|
|
{!! $item['AccountType'] !!} |
{!! $item['OwnershipType'] !!} |
₹{!! money_format('%!i',$item['ApprovedAmount']) !!} |
₹{!! money_format('%!i',$item['Balance']) !!} |
₹{!! money_format('%!i',$item['PastDueAmount']) !!} |
{!! $item['PrincipalWriteOff'] or '' !!} |
{!! $item['InstallmentAmountNew'] !!} |
{!! $item['InstallmentAmountNew'] !!} |
₹{!! money_format('%!i',$item['LastPayment']) !!} |
{!! $item['max_dpd'] or ''!!} |
{!! $item['average_dpd'] or '' !!} |
{!! $item['sixmonth'] !!} |
{!! $item['twelvemonth'] !!} |
@endforeach
@endif
"AUTO LOAN", 2 => "HOUSING LOAN", 3 => "PROPERTY LOAN", 4 => "LOAN AGAINST SHARES/SECURITIES", 5 => "PERSONAL LOAN", 6 => "CONSUMER LOAN", 7 => "GOLD LOAN", 8 => "EDUCATIONAL LOAN", 9 => "LOAN TO PROFESSIONAL", 10 => "CREDIT CARD", 11 => "LEASING", 12 => "OVERDRAFT", 13 => "TWO-WHEELER LOAN", 14 => "NON-FUNDED CREDIT FACILITY", 15 => "LOAN AGAINST BANK DEPOSITS", 16 => "FLEET CARD", 17 => "Commercial Vehicle Loan", 18 => "Telco – Wireless", 19 => "Telco – Broadband", 20 => "Telco – Landline", 23 => "GECL Secured", 24 => "GECL Unsecured", 31 => "Secured Credit Card", 32 => "Used Car Loan", 33 => "Construction Equipment Loan", 34 => "Tractor Loan", 35 => "Corporate Credit Card", 36 => "Kisan Credit Card", 37 => "Loan on Credit Card", 38 => "Prime Minister Jaan Dhan Yojana - Overdraft", 39 => "Mudra Loans – Shishu / Kishor / Tarun", 40 => "Microfinance – Business Loan", 41 => "Microfinance – Personal Loan", 42 => "Microfinance – Housing Loan", 43 => "Microfinance – Others", 44 => "Pradhan Mantri Awas Yojana - Credit Link Subsidy Scheme MAY CLSS", 45 => "P2P Personal Loan", 46 => "P2P Auto Loan", 47 => "P2P Education Loan", 51 => "BUSINESS LOAN – GENERAL", 52 => "BUSINESS LOAN –PRIORITY SECTOR – SMALL BUSINESS", 53 => "BUSINESS LOAN –PRIORITY SECTOR – AGRICULTURE", 54 => "BUSINESS LOAN –PRIORITY SECTOR – OTHERS", 55 => "BUSINESS NON-FUNDED CREDIT FACILITY – GENERAL", 56 => "BUSINESS NON-FUNDED CREDIT FACILITY – PRIORITY SECTOR – SMALL BUSINESS", 57 => "BUSINESS NON-FUNDED CREDIT FACILITY – PRIORITY SECTOR – AGRICULTURE", 58 => "BUSINESS NON-FUNDED CREDIT FACILITY – PRIORITY SECTOR – OTHERS", 59 => "BUSINESS LOANS AGAINST BANK DEPOSITS", 60 => "Staff Loan", 61 => "Business Loan - Unsecured", 0 => "Others"];
?>
| |
 |
Credit Enquiries |
@if(count((array)$Enquiries) > 0)
|
@else
No Records Found |
@endif
|
| This section shows the names of the credit institutions that have processed a credit / loan application for you. |
|
@if(count((array)$Enquiries) > 0 && !empty($Enquiries))
| Sr. No |
Enquiry Date |
Member Type |
Purpose |
Enquiry Amount |
Enquiry Type |
@foreach($Enquiries as $key=>$credit_caps_detail)
| {!! $keyMes !!} |
Date_of_Request) && !empty($credit_caps_detail->ReportTime) ? \Carbon\Carbon::parse($credit_caps_detail->Date_of_Request)->format('d-M-Y').' '.\Carbon\Carbon::parse($credit_caps_detail->ReportTime)->format('H:i:s') : '-'?> |
- |
Enquiry_Reason) && array_key_exists((int)$credit_caps_detail->Enquiry_Reason, $accountType) ? $accountType[(int)$credit_caps_detail->Enquiry_Reason] : '-' ?> |
Amount_Financed) ? $credit_caps_detail->Amount_Financed : '-'?> |
Credit |
@endforeach
|
@endif
@endif
@if(isset($bureauInputCoApplicant) && count($bureauInputCoApplicant) > 0)
BUREAU INPUT (Live + Closed) (Co-Applicant)
| Account Status |
Last Reporting Date |
Last Payment Date |
Date Opened |
Date Closed |
Type of Loan |
Ownership |
Loan Sanctioned |
Loan Outstanding |
Overdue Amount |
{{--Schedule EMI | --}}
Principal Write-off |
EMI Calc-Old |
EMI Calc-New |
Last EMI Amount paid |
Max DPD |
Avg. DPD |
DPD in 6 Months |
DPD in 12 Months |
@foreach($bureauInputCoApplicant as $item)
0){
$red = "color:red;";
} ?>
0){
$red1 = "color:red;";
}
$red2 = '';
if($item['AccountStatus'] == 'Settled' || $item['AccountStatus'] == 'Suit Filed(Wilful Default) and Written-off' || $item['AccountStatus'] == 'Suit Filed' || $item['AccountStatus'] == 'Post (WO) Settled'|| $item['AccountStatus'] == 'Wilful default'|| $item['AccountStatus'] == 'Written-off'|| $item['AccountStatus'] == 'Doubtful'|| $item['AccountStatus'] == 'Restructured Loan'|| $item['AccountStatus'] == 'Loss' || $item['AccountStatus'] == 'Account Sold'){
$red2 = "color:red;";
}
$red3 = '';
if($item['PrincipalWriteOff'] > 0) {
$red3 = "color:red;";
}
if(isset($item['highlight']) && $item['highlight']){
$red2 = "color:red;";
}
?>
| {!! $item['AccountStatus'] or '' !!} |
{!! $item['reported_date'] or '' !!} |
{!! $item['last_payment_date'] or '' !!} |
|
|
@if(isset($item['is_close_date_updated']) && $item['is_close_date_updated'])@endif {!! $item['type_of_loan'] !!} |
{!! $item['owner_ship'] !!} |
₹{!! money_format('%!i',$item['loan_sanctioned']) !!} |
₹{!! money_format('%!i',$item['loan_outstanding']) !!} |
₹{!! money_format('%!i',$item['over_due_amount']) !!} |
{!! $item['PrincipalWriteOff'] or '' !!} |
{!! $item['schedule_emi'] !!} |
{!! $item['schedule_emi_new'] !!} |
₹{!! money_format('%!i',$item['last_emi_amount_paid']) !!} |
{!! $item['max_dpd'] !!} |
{!! $item['average_dpd'] !!} |
{!! $item['sixmonth'] !!} |
{!! $item['twelvemonth'] !!} |
@endforeach
@if($guarantor_loans !== '')
|
Guarantor Loans:
|
@foreach($guarantor_loans as $item)
0) {
$red3 = "color:red;";
}
?>
| {!! $item['AccountStatus'] or '' !!} |
{!! $item['ReportedDate'] or '' !!} |
{!! $item['LastPaymentDate'] or '' !!} |
|
|
{!! $item['AccountType'] !!} |
{!! $item['OwnershipType'] !!} |
₹{!! money_format('%!i',$item['ApprovedAmount']) !!} |
₹{!! money_format('%!i',$item['Balance']) !!} |
₹{!! money_format('%!i',$item['PastDueAmount']) !!} |
{!! $item['PrincipalWriteOff'] or '' !!} |
{!! $item['InstallmentAmountNew'] !!} |
{!! $item['InstallmentAmountNew'] !!} |
₹{!! money_format('%!i',$item['LastPayment']) !!} |
{!! $item['max_dpd'] or ''!!} |
{!! $item['average_dpd'] or '' !!} |
{!! $item['sixmonth'] or '' !!} |
{!! $item['twelvemonth'] or '' !!} |
@endforeach
@endif
"AUTO LOAN", 2 => "HOUSING LOAN", 3 => "PROPERTY LOAN", 4 => "LOAN AGAINST SHARES/SECURITIES", 5 => "PERSONAL LOAN", 6 => "CONSUMER LOAN", 7 => "GOLD LOAN", 8 => "EDUCATIONAL LOAN", 9 => "LOAN TO PROFESSIONAL", 10 => "CREDIT CARD", 11 => "LEASING", 12 => "OVERDRAFT", 13 => "TWO-WHEELER LOAN", 14 => "NON-FUNDED CREDIT FACILITY", 15 => "LOAN AGAINST BANK DEPOSITS", 16 => "FLEET CARD", 17 => "Commercial Vehicle Loan", 18 => "Telco – Wireless", 19 => "Telco – Broadband", 20 => "Telco – Landline", 23 => "GECL Secured", 24 => "GECL Unsecured", 31 => "Secured Credit Card", 32 => "Used Car Loan", 33 => "Construction Equipment Loan", 34 => "Tractor Loan", 35 => "Corporate Credit Card", 36 => "Kisan Credit Card", 37 => "Loan on Credit Card", 38 => "Prime Minister Jaan Dhan Yojana - Overdraft", 39 => "Mudra Loans – Shishu / Kishor / Tarun", 40 => "Microfinance – Business Loan", 41 => "Microfinance – Personal Loan", 42 => "Microfinance – Housing Loan", 43 => "Microfinance – Others", 44 => "Pradhan Mantri Awas Yojana - Credit Link Subsidy Scheme MAY CLSS", 45 => "P2P Personal Loan", 46 => "P2P Auto Loan", 47 => "P2P Education Loan", 51 => "BUSINESS LOAN – GENERAL", 52 => "BUSINESS LOAN –PRIORITY SECTOR – SMALL BUSINESS", 53 => "BUSINESS LOAN –PRIORITY SECTOR – AGRICULTURE", 54 => "BUSINESS LOAN –PRIORITY SECTOR – OTHERS", 55 => "BUSINESS NON-FUNDED CREDIT FACILITY – GENERAL", 56 => "BUSINESS NON-FUNDED CREDIT FACILITY – PRIORITY SECTOR – SMALL BUSINESS", 57 => "BUSINESS NON-FUNDED CREDIT FACILITY – PRIORITY SECTOR – AGRICULTURE", 58 => "BUSINESS NON-FUNDED CREDIT FACILITY – PRIORITY SECTOR – OTHERS", 59 => "BUSINESS LOANS AGAINST BANK DEPOSITS", 60 => "Staff Loan", 61 => "Business Loan - Unsecured", 0 => "Others"];
?>
| |
 |
Credit Enquiries |
@if(count((array)$Co_Enquiries) > 0)
|
@else
No Records Found |
@endif
|
| This section shows the names of the credit institutions that have processed a credit / loan application for you. |
|
@if(count((array)$Co_Enquiries) > 0 && !empty($Co_Enquiries))
| Sr. No |
Enquiry Date |
Member Type |
Purpose |
Enquiry Amount |
Enquiry Type |
@foreach($Co_Enquiries as $key=>$credit_caps_detail)
| {!! $nKeysEs !!} |
Date_of_Request) && !empty($credit_caps_detail->ReportTime) ? \Carbon\Carbon::parse($credit_caps_detail->Date_of_Request)->format('d-M-Y').' '.\Carbon\Carbon::parse($credit_caps_detail->ReportTime)->format('H:i:s') : '-'?> |
- |
Enquiry_Reason) && array_key_exists((int)$credit_caps_detail->Enquiry_Reason, $accountType) ? $accountType[(int)$credit_caps_detail->Enquiry_Reason] : '-' ?> |
Amount_Financed) ? $credit_caps_detail->Amount_Financed : '-'?> |
Credit |
@endforeach
|
@endif
@endif
@if(isset($finbit_data) and count($finbit_data) > 0)
applicant_type == 2 ? 2 : 1;
$accountHolder = '-';
foreach ($finbit->consumer_application_file as $item) {
if ($finbit->finbit_uid == str_replace('"',"",$item->accountUID)) {
$fraudReport = \App\FraudReport::where('consumer_application_file_id', $item->id)->first(['accountHolder']);
$accountHolder = isset($fraudReport->accountHolder) ? $fraudReport->accountHolder : '-';
}
}
if($type == 1){
$average_balance = isset($finbit->average_balance) && $finbit->average_balance > 0 ? money_format('%!i',$finbit->average_balance) : '-';
$average_balance_three_months = isset($finbit->average_balance_three_months) && $finbit->average_balance_three_months > 0 ? money_format('%!i',$finbit->average_balance_three_months) : '-';
$avg_emi_three_months = isset($finbit->avg_emi_three_months) && $finbit->avg_emi_three_months > 0 ? money_format('%!i',$finbit->avg_emi_three_months) : '-';
$table .= '
| '.$finbit->consumer_application->name.' | '.
''.$accountHolder.' | '.
''.$finbit->period_from.' | '.
''.$finbit->period_too.' | '.
'₹'.$average_balance.' | '.
'₹'.$average_balance_three_months.' | '.
'₹'.$avg_emi_three_months.' | '.
''.$finbit->inwards_bounce_transaction.' | '.
''.$finbit->outwards_bounce_transaction.' | '.
'
';
}else{
$average_balance = isset($finbit->average_balance) && $finbit->average_balance > 0 ? money_format('%!i',$finbit->average_balance) : '-';
$average_balance_three_months = isset($finbit->average_balance_three_months) && $finbit->average_balance_three_months > 0 ? money_format('%!i',$finbit->average_balance_three_months) : '-';
$avg_emi_three_months = isset($finbit->avg_emi_three_months) && $finbit->avg_emi_three_months > 0 ? money_format('%!i',$finbit->avg_emi_three_months) : '-';
$tableCoApplicant = '
| '.$finbit->consumer_application->co_applicant_name.' | '.
''.$accountHolder.' | '.
''.$finbit->period_from.' | '.
''.$finbit->period_too.' | '.
'₹'.$average_balance.' | '.
'₹'.$average_balance_three_months.' | '.
'₹'.$avg_emi_three_months.' | '.
''.$finbit->inwards_bounce_transaction.' | '.
''.$finbit->outwards_bounce_transaction.' | '.
'
';
}
}
?>
@endif
@if(isset($dataApplicant) || isset($dataCoApplicant))
'.$dataApplicant['name'].' | '.
'
'.$dataApplicant['name'].' | '.
'
'.$dataApplicant['startDate'].' | '.
'
'.$dataApplicant['endDate'].' | '.
'
₹'.$dataApplicant['avgBalance'].' | '.
'
₹'.$dataApplicant['adjustedAvgBalance'].' | '.
'
'.$dataApplicant['noOfEmiBounces'].' | '.
'
₹'.$dataApplicant['inwardChequeBounce'].' | '.
'
₹'.$dataApplicant['outwardChequeBounce'].' | '.
'
₹'.$dataApplicant['avgMonthlyEmi'].' | '.
'
'.$dataApplicant['speculativeTradeCount'].' | '.
'
₹'.$dataApplicant['speculativeTradeAmount'].' | '.
'';
}
if(isset($dataCoApplicant) && count($dataCoApplicant)){
$co_pirimid_table .= '
| '.$dataCoApplicant['name'].' | '.
''.$dataCoApplicant['name'].' | '.
''.$dataCoApplicant['startDate'].' | '.
''.$dataCoApplicant['endDate'].' | '.
'₹'.$dataCoApplicant['avgBalance'].' | '.
'₹'.$dataCoApplicant['adjustedAvgBalance'].' | '.
''.$dataCoApplicant['noOfEmiBounces'].' | '.
'₹'.$dataCoApplicant['inwardChequeBounce'].' | '.
'₹'.$dataCoApplicant['outwardChequeBounce'].' | '.
'₹'.$dataCoApplicant['avgMonthlyEmi'].' | '.
''.$dataCoApplicant['speculativeTradeCount'].' | '.
'₹'.$dataCoApplicant['speculativeTradeAmount'].' | '.
'
';
}
?>
@endif
@if(isset($pirimid_table) && $pirimid_table != "" && false)
Pirimid Account Details - Applicant
| Name |
Account Holder Name |
Statement From |
Statement Too |
Average Balance |
Adjusted Average balance |
No. EMI Bounces |
Inwards Cheque Bounce Txns |
Outward Cheque Bounce Txns |
Average Monthly EMI Amount |
Speculative Trade Count |
Speculative Trade Amount |
{!! $pirimid_table !!}
@endif
@if(isset($co_pirimid_table) && $co_pirimid_table != "" && false)
Pirimid Account Details - Co-Applicant
| Name |
Account Holder Name |
Statement From |
Statement Too |
Average Balance |
Adjusted Average balance |
No. EMI Bounces |
Inwards Cheque Bounce Txns |
Outward Cheque Bounce Txns |
Average Monthly EMI Amount |
Speculative Trade Count |
Speculative Trade Amount |
{!! $co_pirimid_table !!}
@endif
@if(isset($table) && $table)
Finbit Account Details - Applicant
| Name |
Account Holder Name |
Statement From |
Statement Too |
Average balance |
Average balance 3 months |
Average EMI 3 months |
Inwards Bounce Transaction |
Outwards Bounce Transaction |
{!! $table !!}
@endif
@if(isset($tableCoApplicant) && $tableCoApplicant)
Finbit Account Details - Co-Applicant
| Name |
Account Holder Name |
Statement From |
Statement Too |
Average balance |
Average balance 3 months |
Average EMI 3 months |
Inwards Bounce Transaction |
Outwards Bounce Transaction |
{!! $tableCoApplicant !!}
@endif
@if(isset($dataApplicant['salaryList']) and count($dataApplicant['salaryList']) > 0 && false)
Salary Details of Applicant
| Amount of Salary |
@foreach($dataApplicant['salaryList'] as $salary)
₹ {{ $salary['amount'] or '-' }} |
@endforeach
| Date Salary was credited |
@foreach($dataApplicant['salaryList'] as $salary)
{!! $salary['date'] or '-' !!} |
@endforeach
@endif
@if(isset($dataCoApplicant['salaryList']) and count($dataCoApplicant['salaryList']) > 0 && false)
Salary Details of Applicant
| Amount of Salary |
@foreach($dataCoApplicant['salaryList'] as $salary)
₹ {{ $salary['amount'] or '-' }} |
@endforeach
| Date Salary was credited |
@foreach($dataCoApplicant['salaryList'] as $salary)
{!! $salary['date'] or '-' !!} |
@endforeach
@endif
@if(isset($epfReport) and count($epfReport) > 0)
EPF Details
| Applicant Type |
Employee Name |
Organization Name |
isEmployed |
isRecent |
@foreach($epfReport as $epfReportItem)
data, 1);
// $isEmployed = $uanNameMatch = false;
// if($epf_data['result']['uan'] && is_array($epf_data['result']['uan']) && !empty($epf_data['result']['uan'])) {
// foreach ($epf_data['result']['uan'] as $uanData) {
// foreach ($uanData['employer'] as $uanDataEmployer) {
// $isEmployed = $uanDataEmployer['isEmployed'] ?? false;
// $uanNameMatch = $uanDataEmployer['uanNameMatch'] ?? false;
// }
// }
// }else{
// $isEmployed = isset($epf_data['result']['nameLookup']['isEmployed']) ? $epf_data['result']['nameLookup']['isEmployed'] : '-';
// $uanNameMatch = isset($epf_data['result']['nameLookup']['uanNameMatch']) ? $epf_data['result']['nameLookup']['uanNameMatch'] : '-';
// }
if(isset($epfReportItem['data'])){
$epf_data = json_decode($epfReportItem['data'], 1);
$isEmployed = $isRecent = false;
$summary = $epf_data['result']['summary'];
if (isset($summary)){
$current_employer = $summary['uanLookup']['currentEmployer'] ?? '';
// $employee_name = $summary['nameLookup']['matchName'] ?? "";
if($current_employer){
$uan_data = $epf_data['result']['uan'];
foreach ($uan_data as $data) {}
$current_employer_details = array_filter($data['employer'], function($employer) use ($current_employer) {
return $employer['name'] === $current_employer;
});
if($current_employer_details){
$firstEmployer = reset($current_employer_details);
$employee_name = $firstEmployer['matchName'] ?? "";
$isEmployed = $firstEmployer['isEmployed'] ?? null;
$isRecent = $firstEmployer['isRecent'] ?? null;
}
}
else if (isset($epf_data['result']['nameLookup']['organizationName'])) {
$current_employer = $epf_data['result']['nameLookup']['organizationName'];
$employee_name = $epf_data['result']['nameLookup']['employeeName'] ?? "";
$isEmployed = $epf_data['result']['nameLookup']['isEmployed'] ?? "";
$isRecent = $epf_data['result']['nameLookup']['isRecent'] ?? "";
}
}
}
// }else{
// $isEmployed = isset($epf_data['result']['nameLookup']['isEmployed']) ? $epf_data['result']['nameLookup']['isEmployed'] : '-';
// $uanNameMatch = isset($epf_data['result']['nameLookup']['uanNameMatch']) ? $epf_data['result']['nameLookup']['uanNameMatch'] : '-';
// }
?>
|
{!! $employee_name or '' !!} |
{!! $current_employer or '' !!} |
|
|
@endforeach
@endif
@if(isset($fraud_report_data) and !empty($fraud_report_data) and count($fraud_report_data) > 0)
@include('admin.consumer-application.scorecard.file_validation', ['fraud_report_data' => $fraud_report_data, 'type' => 'Applicant'])
@endif
@if(isset($fraud_report_coapplicants) and !empty($fraud_report_coapplicants) and count($fraud_report_coapplicants) > 0)
@include('admin.consumer-application.scorecard.file_validation', ['fraud_report_data' => $fraud_report_coapplicants, 'type' => 'Co-Applicant'])
@endif
{{-- @if(isset($bounce_charges) and count($bounce_charges) > 0)
Bounce Transaction
| Transsaction Type |
Date |
Description |
Category |
Amount |
Transaction Type |
Balance |
Remark |
@foreach($bounce_charges as $bounce_charge)
| {!! $bounce_charge->transsaction_type !!} |
{!! $bounce_charge->date !!} |
{!! $bounce_charge->description !!} |
{!! $bounce_charge->category !!} |
₹{!! money_format('%!i',$bounce_charge->amount) !!} |
{!! $bounce_charge->transactionType !!} |
₹{!! money_format('%!i',$bounce_charge->balance) !!} |
{!! $bounce_charge->remark !!} |
@endforeach
@endif --}}
@if(isset($dataApplicant['bounceTransactions']) and count($dataApplicant['bounceTransactions']) > 0 && false)
Bounce Transaction (Applicant)
{{ count($dataApplicant['bounceTransactions']) }}
| Transaction Type |
Date |
Description |
Category |
Amount |
Transaction Type |
Balance |
Remark |
@foreach($dataApplicant['bounceTransactions'] as $transaction)
| {!! $transaction['counterParty'] !!} |
{!! $transaction['dateOfTransaction'] !!} |
{!! $transaction['narration'] !!} |
{!! $transaction['category'] !!} |
₹{!! number_format($transaction['amount'], 2) !!} |
{!! $transaction['type'] !!} |
₹{!! number_format($transaction['balance'], 2) !!} |
{!! $transaction['reference'] !!} |
@endforeach
@endif
@if(isset($dataCoApplicant['bounceTransactions']) and count($dataCoApplicant['bounceTransactions']) > 0 && false)
Bounce Transactions (Co-Applicant)
{{ count($dataCoApplicant['bounceTransactions']) }}
| Transaction Type |
Date |
Description |
Category |
Amount |
Transaction Type |
Balance |
Remark |
@foreach($dataCoApplicant['bounceTransactions'] as $transaction)
| {!! $transaction['counterParty'] !!} |
{!! $transaction['dateOfTransaction'] !!} |
{!! $transaction['narration'] !!} |
{!! $transaction['category'] !!} |
₹{!! number_format($transaction['amount'], 2) !!} |
{!! $transaction['type'] !!} |
₹{!! number_format($transaction['balance'], 2) !!} |
{!! $transaction['reference'] !!} |
@endforeach
@endif
@if(isset($dataApplicant['fcuIndicatorTransactions']) && count($dataApplicant['fcuIndicatorTransactions']) > 0 && false)
{{-- Collapsible toggle for main section --}}
Risk Events Transactions (Applicant)
▼ {{-- Down arrow icon --}}
{{-- Collapsible content --}}
@php
$fcuData = $dataApplicant['fcuIndicatorTransactions'];
$sectionTitles = [
'fraudIndicators' => 'Fraud Indicators',
'behaviouralIndicators' => 'Behavioural Indicators',
'riskIndicators' => 'Risk Indicators'
];
@endphp
@foreach($sectionTitles as $sectionKey => $sectionTitle)
@if(isset($fcuData[$sectionKey]))
{{ $sectionTitle }}
@foreach($fcuData[$sectionKey] as $indicatorKey => $indicator)
@if(isset($indicator['transactions']) && count($indicator['transactions']) > 0)
{{ ucwords(preg_replace('/([a-z])([A-Z])/', '$1 $2', str_replace('_', ' ', $indicatorKey))) }}
{{ count($indicator['transactions']) }}
@foreach(array_keys($indicator['transactions'][0]) as $header)
| {{ ucwords(str_replace('_', ' ', $header)) }} |
@endforeach
@foreach($indicator['transactions'] as $txn)
@foreach($txn as $value)
| {{ $value }} |
@endforeach
@endforeach
@endif
@endforeach
@endif
@endforeach
@endif
@if(isset($dataCoApplicant['fcuIndicatorTransactions']) && count($dataCoApplicant['fcuIndicatorTransactions']) > 0 && false)
Risk Events Transactions (Co-Applicant)
@php
$fcuData = $dataCoApplicant['fcuIndicatorTransactions'];
$sectionTitles = [
'fraudIndicators' => 'Fraud Indicators',
'behaviouralIndicators' => 'Behavioural Indicators',
'riskIndicators' => 'Risk Indicators'
];
@endphp
@foreach($sectionTitles as $sectionKey => $sectionTitle)
@if(isset($fcuData[$sectionKey]))
{{ $sectionTitle }}
@foreach($fcuData[$sectionKey] as $indicatorKey => $indicator)
@if(isset($indicator['transactions']) && count($indicator['transactions']) > 0)
{{ ucwords(preg_replace('/([a-z])([A-Z])/', '$1 $2', str_replace('_', ' ', $indicatorKey))) }}
{{ count($indicator['transactions']) }}
@foreach(array_keys($indicator['transactions'][0]) as $header)
| {{ ucwords(str_replace('_', ' ', $header)) }} |
@endforeach
@foreach($indicator['transactions'] as $txn)
@foreach($txn as $value)
| {{ $value }} |
@endforeach
@endforeach
@endif
@endforeach
@endif
@endforeach
@endif
OUTPUT
@if(\Illuminate\Support\Facades\Session::has('Score_Card_Weights|-18'))
| Parameter |
Value |
Score |
Max Score |
@foreach($scoreCard as $item)
| {!! $item['Parameter'] !!} |
{!! $item['value'] !!} |
{!! $item['score'] !!} |
{!! $item['max_score'] !!} |
@endforeach
|
Score |
{!! $finalScore !!} |
{!! $maxScore !!} |
@endif
|
Category |
Score : {!! $finalCategory !!} |
|
@if(isset($telecom_response->result))
@endif
@if(isset($mobileData) && $mobileData)
Mobile Data (Downloaded on Customer’s Device)
Risky Applications
@if(isset($mobileData['risky']) && $mobileData['risky'])
@foreach($mobileData['risky'] as $risky)
- {!! $risky !!} | View on PlayStore
@endforeach
|
@endif
Salary
@if(isset($mobileData['salary']) && $mobileData['salary'])
| Message |
@foreach($mobileData['salary'] as $risky)
| {!! $risky['message'] !!} {!! $risky['address'] !!} - {!! $risky['date'] !!} |
@endforeach
|
@endif
Charges Debited/Charged
@if(isset($mobileData['charges']) && $mobileData['charges'])
| Message |
@foreach($mobileData['charges'] as $risky)
| {!! $risky['message'] !!} {!! $risky['address'] !!} - {!! $risky['date'] !!} |
@endforeach
|
@endif
@endif