Load profile

This commit is contained in:
CHIEFSOFT\ameye
2024-05-01 08:13:13 -04:00
parent 6b068294c7
commit 8ab9ffe85e
4 changed files with 35 additions and 5 deletions
+8 -2
View File
@@ -10,8 +10,14 @@ class BkoReports extends BaseController
public function startedApplication() :ResponseInterface
{
//SELECT uid,loan_amount,payment_month,sales_agent,gender,marital_status,email,address,state,country,status,added,updated FROM applications;
return $this->respond([], 200);
$query = $this->db->query("SELECT uid,loan_amount,payment_month,sales_agent,gender,marital_status,email,address,state,country,status,added,updated FROM applications ");
$row = $query->getResult('array');
$data = [
'call_return' => '100',
'records' => $row
];
return $this->respond($data, 200);
// return $this->respond([], 200);
}
public function pendingApplication() :ResponseInterface
{