dash data

This commit is contained in:
CHIEFSOFT\ameye
2024-09-03 11:24:17 -04:00
parent 233dfb5480
commit 69731f7cb7
+19
View File
@@ -27,6 +27,24 @@ class BkoDash extends BaseController
// a.updated
// FROM applications a
// LEFT JOIN customers c ON c.uid = a.customer_uid LIMIT 10");
$dash_data["active_loans"] = 0;
$dash_data["applications"] = 0;
$dash_data["today_application"] = 0;
$dash_data["curr_month"] = "September";
$dash_data["curr_application_amount"] = "0";
$dash_data["curr_application_percentage"] = "0";
$dash_data["curr_application_direction"] = "up";
$dash_data["recent_applications"] = [];
$dash_data["ready_loans"] = 0;
$dash_data["verified_loans"] = 0;
$dash_data["approved_loans"] = 0;
$query = $this->db->query("SELECT 'DummyName' AS firstname, 'DummyLast-'||a.id AS lastname, a.uid,a.loan_amount,
a.payment_month,a.sales_agent,a.gender,
a.marital_status,a.email,a.address,
@@ -42,6 +60,7 @@ class BkoDash extends BaseController
$data = [
'call_return' => '100',
'dash_data' => $dash_data,
'recent_applications' => $row,
'recent_bvn' => $row2
];