get unpaid

This commit is contained in:
Ibnu Maksum 2022-09-11 11:02:30 +07:00
parent 98b592c8a9
commit 9ca2933b5d
No known key found for this signature in database
GPG Key ID: 7FC82848810579E5

View File

@ -1,4 +1,5 @@
<?php
/**
* PHP Mikrotik Billing (https://ibnux.github.io/phpmixbill/)
**/
@ -12,4 +13,10 @@ $ui->assign('_user', $user);
$bill = User::_billing();
$ui->assign('_bill', $bill);
$ui->assign('unpaid', ORM::for_table('tbl_payment_gateway')
->where('username', $user['username'])
->where('status', 1)
->find_one());
$ui->display('user-dashboard.tpl');