employer
This commit is contained in:
@@ -21,6 +21,13 @@ $routes->get('/digibko/v1/loan/ready', 'BkoReports::readyApplication');
|
||||
$routes->get('/digibko/v1/loan/approved', 'BkoReports::approvedApplication');
|
||||
$routes->get('/digibko/v1/loan/rejected', 'BkoReports::rejectedApplication');
|
||||
|
||||
$routes->get('/digibko/employers', 'BkoReports::employersList');
|
||||
|
||||
/*
|
||||
* Processing the loan from back office
|
||||
*/
|
||||
$routes->post('/digibko/v1/loan/start-processing', 'Loan::startProcessing');
|
||||
|
||||
$routes->get('/digibko/v1/dashboard/bvn/recent', 'DigiFiAuth::startBkoToken');
|
||||
//$routes->get('/digibko/v1/applications/pending', 'BkoReports::pendingApplication');
|
||||
|
||||
|
||||
@@ -112,6 +112,23 @@ class BkoReports extends BaseController
|
||||
// return $this->respond([], 200);
|
||||
}
|
||||
|
||||
public function employersList() :ResponseInterface {
|
||||
|
||||
$query = $this->db->query("SELECT c.firstname, c.lastname, a.uid,a.loan_amount,
|
||||
a.payment_month,a.sales_agent,a.gender,
|
||||
a.marital_status,a.email,a.address,
|
||||
a.state,a.country,a.status,a.added,
|
||||
a.updated
|
||||
FROM applications a
|
||||
LEFT JOIN customers c ON c.uid = a.customer_uid WHERE a.status = 7 ");
|
||||
$row = $query->getResult('array');
|
||||
$data = [
|
||||
'call_return' => '100',
|
||||
'records' => $row
|
||||
];
|
||||
return $this->respond($data, 200);
|
||||
// return $this->respond([], 200);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -109,4 +109,8 @@ disbursement
|
||||
|
||||
return $this->respond([], 200);
|
||||
}
|
||||
|
||||
public function startProcessing(){
|
||||
return [];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user