diff --git a/system/controllers/dashboard.php b/system/controllers/dashboard.php index aee57c36..1858a334 100644 --- a/system/controllers/dashboard.php +++ b/system/controllers/dashboard.php @@ -55,6 +55,10 @@ if ($imonth == '') { } $ui->assign('imonth', $imonth); +$cb = ORM::for_table('tbl_customers')->whereGte('balance', 0)->sum('balance'); + +$ui->assign('cb', $cb); + $u_act = ORM::for_table('tbl_user_recharges')->where('status', 'on')->count(); if (empty($u_act)) { $u_act = '0'; diff --git a/ui/ui/dashboard.tpl b/ui/ui/dashboard.tpl index 45b409eb..1b9814ee 100644 --- a/ui/ui/dashboard.tpl +++ b/ui/ui/dashboard.tpl @@ -1,67 +1,64 @@ {include file="sections/header.tpl"}
{Lang::T('Income Today')}
+ {if in_array($_admin['user_type'],['SuperAdmin','Admin', 'Report'])} +{Lang::T('Income This Month')}
+{Lang::T('Users Active')}
+{Lang::T('Total Users')}
+