This commit is contained in:
CHIEFSOFT\ameye
2024-06-05 14:31:09 -04:00
parent 53a45ae399
commit 685e735bba
3 changed files with 28 additions and 0 deletions
+17
View File
@@ -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);
}
}