Files
.github
admin
docs
install
pages_template
qrcode
scan
system
autoload
cache
controllers
devices
lan
paymentgateway
plugin
uploads
vendor
widgets
customer
activity_log.php
cron_monitor.php
customer_expired.php
default_info_row.php
graph_customers_insight.php
graph_monthly_registered_customers.php
graph_monthly_sales.php
html_php.php
html_php_card.php
info_payment_gateway.php
mikrotik_cron_monitor.php
template.md
top_widget.php
voucher_stocks.php
.htaccess
api.php
boot.php
composer.json
composer.lock
cron.php
cron_reminder.php
index.html
orm.php
updates.json
ui
.gitignore
.htaccess_firewall
CHANGELOG.md
Dockerfile
LICENSE
README.md
composer.json
config.sample.php
docker-compose.example.yml
favicon.ico
index.php
init.php
radius.php
update.php
version.json
mitrobill/system/widgets/default_info_row.php

17 lines
352 B
PHP
Raw Normal View History

2025-02-17 13:54:18 +07:00
<?php
class default_info_row
{
public function getWidget()
{
global $config,$ui;
if ($config['enable_balance'] == 'yes'){
$cb = ORM::for_table('tbl_customers')->whereGte('balance', 0)->sum('balance');
$ui->assign('cb', $cb);
}
return $ui->fetch('widget/default_info_row.tpl');
}
}