2022-09-06 10:31:33 +07:00
|
|
|
{include file="sections/header.tpl"}
|
|
|
|
|
2022-10-16 14:48:21 +07:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-3 col-xs-6">
|
|
|
|
<div class="small-box bg-aqua">
|
|
|
|
<div class="inner">
|
|
|
|
<h4><sup>{$_c['currency_code']}</sup>
|
|
|
|
{number_format($iday,0,$_c['dec_point'],$_c['thousands_sep'])}</h4>
|
|
|
|
<p>{$_L['Income_Today']}</p>
|
2022-10-10 10:49:01 +07:00
|
|
|
</div>
|
2022-10-16 14:48:21 +07:00
|
|
|
<div class="icon">
|
|
|
|
<i class="ion ion-bag"></i>
|
2022-10-10 10:49:01 +07:00
|
|
|
</div>
|
2022-10-16 14:48:21 +07:00
|
|
|
<a href="{$_url}reports/by-date" class="small-box-footer">{$_L['View_Reports']} <i
|
|
|
|
class="fa fa-arrow-circle-right"></i></a>
|
2022-10-10 10:49:01 +07:00
|
|
|
</div>
|
2022-10-16 14:48:21 +07:00
|
|
|
</div>
|
|
|
|
<div class="col-lg-3 col-xs-6">
|
|
|
|
<div class="small-box bg-green">
|
|
|
|
<div class="inner">
|
|
|
|
<h4><sup>{$_c['currency_code']}</sup>
|
|
|
|
{number_format($imonth,0,$_c['dec_point'],$_c['thousands_sep'])}</h4>
|
2022-09-06 10:31:33 +07:00
|
|
|
|
2022-10-16 14:48:21 +07:00
|
|
|
<p>{$_L['Income_This_Month']}</p>
|
2022-10-10 10:49:01 +07:00
|
|
|
</div>
|
2022-10-16 14:48:21 +07:00
|
|
|
<div class="icon">
|
|
|
|
<i class="ion ion-stats-bars"></i>
|
2022-10-10 10:49:01 +07:00
|
|
|
</div>
|
2022-10-16 14:48:21 +07:00
|
|
|
<a href="{$_url}reports/by-period" class="small-box-footer">{$_L['View_Reports']} <i
|
|
|
|
class="fa fa-arrow-circle-right"></i></a>
|
2022-10-10 10:49:01 +07:00
|
|
|
</div>
|
2022-10-16 14:48:21 +07:00
|
|
|
</div>
|
|
|
|
<div class="col-lg-3 col-xs-6">
|
|
|
|
<div class="small-box bg-yellow">
|
|
|
|
<div class="inner">
|
2023-09-07 10:54:20 +07:00
|
|
|
<h4>{$u_act}/{$u_all}</h4>
|
2022-09-06 10:31:33 +07:00
|
|
|
|
2022-10-16 14:48:21 +07:00
|
|
|
<p>{$_L['Users_Active']}</p>
|
|
|
|
</div>
|
|
|
|
<div class="icon">
|
|
|
|
<i class="ion ion-person"></i>
|
2022-10-10 10:49:01 +07:00
|
|
|
</div>
|
2022-10-16 14:48:21 +07:00
|
|
|
<a href="{$_url}prepaid/list" class="small-box-footer">{$_L['View_All']} <i
|
|
|
|
class="fa fa-arrow-circle-right"></i></a>
|
2022-10-10 10:49:01 +07:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-10-16 14:48:21 +07:00
|
|
|
<div class="col-lg-3 col-xs-6">
|
|
|
|
<div class="small-box bg-red">
|
|
|
|
<div class="inner">
|
2023-09-07 10:54:20 +07:00
|
|
|
<h4>{$c_all}</h4>
|
2022-10-16 14:48:21 +07:00
|
|
|
|
|
|
|
<p>{$_L['Total_Users']}</p>
|
2022-10-10 10:49:01 +07:00
|
|
|
</div>
|
2022-10-16 14:48:21 +07:00
|
|
|
<div class="icon">
|
|
|
|
<i class="fa fa-users"></i>
|
2022-10-10 10:49:01 +07:00
|
|
|
</div>
|
2022-10-16 14:48:21 +07:00
|
|
|
<a href="{$_url}customers/list" class="small-box-footer">{$_L['View_All']} <i
|
|
|
|
class="fa fa-arrow-circle-right"></i></a>
|
2022-10-10 10:49:01 +07:00
|
|
|
</div>
|
2022-10-16 14:48:21 +07:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-09-07 14:44:04 +07:00
|
|
|
|
2022-10-16 14:48:21 +07:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-7">
|
2023-10-13 16:17:23 +07:00
|
|
|
{if $_c['disable_voucher'] != 'yes' && $stocks['unused']>0 || $stocks['used']>0}
|
2023-09-29 13:58:22 +07:00
|
|
|
<div class="panel panel-primary mb20 panel-hovered project-stats table-responsive">
|
|
|
|
<div class="panel-heading">Vouchers Stock</div>
|
|
|
|
<div class="table-responsive">
|
|
|
|
<table class="table">
|
|
|
|
<thead>
|
2022-10-16 14:48:21 +07:00
|
|
|
<tr>
|
2023-09-29 13:58:22 +07:00
|
|
|
<th>{$_L['Plan_Name']}</th>
|
|
|
|
<th>unused</th>
|
|
|
|
<th>used</th>
|
2022-10-16 14:48:21 +07:00
|
|
|
</tr>
|
2023-09-29 13:58:22 +07:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{foreach $plans as $stok}
|
|
|
|
<tr>
|
|
|
|
<td>{$stok['name_plan']}</td>
|
|
|
|
<td>{$stok['unused']}</td>
|
|
|
|
<td>{$stok['used']}</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
{/foreach}
|
|
|
|
<tr>
|
|
|
|
<td>Total</td>
|
|
|
|
<td>{$stocks['unused']}</td>
|
|
|
|
<td>{$stocks['used']}</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
2022-10-10 10:49:01 +07:00
|
|
|
</div>
|
2023-09-29 13:58:22 +07:00
|
|
|
{/if}
|
2022-10-16 14:48:21 +07:00
|
|
|
<div class="panel panel-warning mb20 panel-hovered project-stats table-responsive">
|
|
|
|
<div class="panel-heading">{$_L['User_Expired_Today']}</div>
|
|
|
|
<div class="table-responsive">
|
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Id</th>
|
|
|
|
<th>{$_L['Username']}</th>
|
|
|
|
<th>{$_L['Created_On']}</th>
|
|
|
|
<th>{$_L['Expires_On']}</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{$no = 1}
|
|
|
|
{foreach $expire as $expired}
|
|
|
|
<tr>
|
|
|
|
<td>{$no++}</td>
|
2023-08-23 15:00:34 +07:00
|
|
|
<td><a href="{$_url}customers/viewu/{$expired['username']}">{$expired['username']}</a></td>
|
2023-08-28 09:44:57 +07:00
|
|
|
<td>{Lang::dateAndTimeFormat($expired['recharged_on'],$expired['recharged_time'])}
|
2022-10-16 14:48:21 +07:00
|
|
|
</td>
|
2023-08-28 09:44:57 +07:00
|
|
|
<td>{Lang::dateAndTimeFormat($expired['expiration'],$expired['time'])}
|
2022-10-16 14:48:21 +07:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
{/foreach}
|
|
|
|
</table>
|
2022-10-10 10:49:01 +07:00
|
|
|
</div>
|
2023-12-27 20:10:56 +01:00
|
|
|
{$paginator['contents']}
|
2022-10-10 10:49:01 +07:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-09-07 14:44:04 +07:00
|
|
|
|
2022-10-16 14:48:21 +07:00
|
|
|
<div class="col-md-5">
|
|
|
|
<div class="panel panel-success panel-hovered mb20 activities">
|
|
|
|
<div class="panel-heading">{Lang::T('Payment Gateway')}: {$_c['payment_gateway']}</div>
|
|
|
|
</div>
|
|
|
|
<div class="panel panel-info panel-hovered mb20 activities">
|
2023-10-16 15:08:49 +07:00
|
|
|
<div class="panel-heading"><a href="{$_url}logs">{$_L['Activity_Log']}</a></div>
|
2022-10-16 14:48:21 +07:00
|
|
|
<div class="panel-body">
|
|
|
|
<ul class="list-unstyled">
|
|
|
|
{foreach $dlog as $dlogs}
|
|
|
|
<li class="primary">
|
|
|
|
<span class="point"></span>
|
|
|
|
<span class="time small text-muted">{time_elapsed_string($dlogs['date'],true)}</span>
|
|
|
|
<p>{$dlogs['description']}</p>
|
|
|
|
</li>
|
|
|
|
{/foreach}
|
|
|
|
</ul>
|
2022-10-10 10:49:01 +07:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-10-16 14:48:21 +07:00
|
|
|
|
|
|
|
</div>
|
2022-09-06 10:31:33 +07:00
|
|
|
|
2022-10-10 10:49:01 +07:00
|
|
|
<script>
|
|
|
|
window.addEventListener('DOMContentLoaded', function() {
|
2022-10-16 14:48:21 +07:00
|
|
|
$.getJSON("./version.json?" + Math.random(), function(data) {
|
2022-10-10 10:49:01 +07:00
|
|
|
var localVersion = data.version;
|
2022-10-16 14:48:21 +07:00
|
|
|
$('#version').html('Version: ' + localVersion);
|
2023-10-18 15:35:56 +07:00
|
|
|
$.getJSON("https://raw.githubusercontent.com/hotspotbilling/phpnuxbill/master/version.json?" + Math
|
2022-10-16 14:48:21 +07:00
|
|
|
.random(),
|
|
|
|
function(data) {
|
|
|
|
var latestVersion = data.version;
|
|
|
|
if (localVersion !== latestVersion) {
|
|
|
|
$('#version').html('Latest Version: ' + latestVersion);
|
|
|
|
}
|
|
|
|
});
|
2022-10-10 10:49:01 +07:00
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
2023-12-27 20:10:56 +01:00
|
|
|
{include file="sections/footer.tpl"}
|