dash data
This commit is contained in:
@@ -27,6 +27,24 @@ class BkoDash extends BaseController
|
|||||||
// a.updated
|
// a.updated
|
||||||
// FROM applications a
|
// FROM applications a
|
||||||
// LEFT JOIN customers c ON c.uid = a.customer_uid LIMIT 10");
|
// 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,
|
$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.payment_month,a.sales_agent,a.gender,
|
||||||
a.marital_status,a.email,a.address,
|
a.marital_status,a.email,a.address,
|
||||||
@@ -42,6 +60,7 @@ class BkoDash extends BaseController
|
|||||||
|
|
||||||
$data = [
|
$data = [
|
||||||
'call_return' => '100',
|
'call_return' => '100',
|
||||||
|
'dash_data' => $dash_data,
|
||||||
'recent_applications' => $row,
|
'recent_applications' => $row,
|
||||||
'recent_bvn' => $row2
|
'recent_bvn' => $row2
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user