diff --git a/system/controllers/home.php b/system/controllers/home.php index b0489782..5f1adc04 100644 --- a/system/controllers/home.php +++ b/system/controllers/home.php @@ -1,9 +1,10 @@ assign('_title', $_L['Dashboard'].' - '. $config['CompanyName']); +$ui->assign('_title', $_L['Dashboard'] . ' - ' . $config['CompanyName']); $user = User::_info(); $ui->assign('_user', $user); @@ -12,4 +13,10 @@ $ui->assign('_user', $user); $bill = User::_billing(); $ui->assign('_bill', $bill); -$ui->display('user-dashboard.tpl'); \ No newline at end of file + +$ui->assign('unpaid', ORM::for_table('tbl_payment_gateway') + ->where('username', $user['username']) + ->where('status', 1) + ->find_one()); + +$ui->display('user-dashboard.tpl');