mobile login

This commit is contained in:
CHIEFSOFT\ameye
2024-05-10 11:58:55 -04:00
parent b27f958a65
commit 8c80b5d962
3 changed files with 16 additions and 20 deletions
+5
View File
@@ -67,6 +67,7 @@ class Bko_Controller extends WRB_Controller {
return $data;
}
protected function bkoDashData() {
$this->load->model('backend_model');
$is_live = $this->backend_model->cfgReadChar("system.live");
$data = array();
@@ -197,6 +198,10 @@ class Bko_Controller extends WRB_Controller {
$data['total_members'] = $row['total_members'];
$mysql = "SELECT count(id) AS mobile_login FROM mobile_login WHERE added::date = now()::date";
$query = $this->db->query($mysql);
$row = $query->row_array();
$data['mobile_login'] = $row['mobile_login'];
$mysql = "SELECT sum(amount) AS total_balance FROM members_wallet WHERE currency = 'NAIRA'";
$query = $this->db->query($mysql);