mitrobill/ui/ui/reports-period-view.tpl

75 lines
3.8 KiB
Smarty
Raw Normal View History

2022-09-06 10:31:33 +07:00
{include file="sections/header.tpl"}
2022-10-15 23:18:24 +07:00
<!-- reports-period-view -->
2022-09-06 10:31:33 +07:00
2022-10-15 23:18:24 +07:00
<div class="row">
<div class="col-md-12">
<div class="invoice-wrap">
<div class="clearfix invoice-head">
<h3 class="brand-logo text-uppercase text-bold left mt15">
2024-02-13 13:54:01 +07:00
<span class="text">{Lang::T('Daily Reports')}</span>
2022-10-15 23:18:24 +07:00
</h3>
</div>
<div class="clearfix invoice-subhead mb20">
<div class="group clearfix left">
2024-02-13 13:54:01 +07:00
<p class="text-bold mb5">{Lang::T('All Transactions at Date')}:</p>
2022-10-15 23:18:24 +07:00
<p class="small">{$stype} [{date( $_c['date_format'], strtotime($fdate))} -
{date( $_c['date_format'], strtotime($tdate))}]</p>
</div>
<div class="group clearfix right">
<form method="post" action="{$_url}export/print-by-period" target="_blank">
<input type="hidden" name="fdate" value="{$fdate}">
<input type="hidden" name="tdate" value="{$tdate}">
<input type="hidden" name="stype" value="{$stype}">
<button type="submit" class="btn btn-default"><i class="fa fa-print"></i>
2024-02-13 13:54:01 +07:00
{Lang::T('Export for Print')}</button>
2022-10-15 23:18:24 +07:00
</form>
<form method="post" action="{$_url}export/pdf-by-period" target="_blank">
<input type="hidden" name="fdate" value="{$fdate}">
<input type="hidden" name="tdate" value="{$tdate}">
<input type="hidden" name="stype" value="{$stype}">
<button type="submit" class="btn btn-default"><i class="fa fa-file-pdf-o"></i>
2024-02-13 13:54:01 +07:00
{Lang::T('Export to PDF')}</button>
2022-10-15 23:18:24 +07:00
</form>
</div>
</div>
2022-10-16 14:48:21 +07:00
<div class="table-responsive">
2022-10-17 11:57:39 +07:00
<table class="table table-bordered table-striped table-condensed">
2022-10-15 23:18:24 +07:00
<thead>
<tr>
2024-02-13 13:54:01 +07:00
<th>{Lang::T('Username')}</th>
<th>{Lang::T('Type')}</th>
<th>{Lang::T('Plan Name')}</th>
<th>{Lang::T('Plan Price')}</th>
<th>{Lang::T('Created On')}</th>
<th>{Lang::T('Expires On')}</th>
<th>{Lang::T('Method')}</th>
<th>{Lang::T('Routers')}</th>
2022-10-15 23:18:24 +07:00
</tr>
</thead>
<tbody>
{foreach $d as $ds}
<tr>
<td>{$ds['username']}</td>
<td>{$ds['type']}</td>
<td>{$ds['plan_name']}</td>
2023-08-16 09:05:59 +07:00
<td class="text-right">{Lang::moneyFormat($ds['price'])}</td>
2023-08-28 09:44:57 +07:00
<td>{Lang::dateAndTimeFormat($ds['recharged_on'],$ds['recharged_time'])}</td>
<td>{Lang::dateAndTimeFormat($ds['expiration'],$ds['time'])}</td>
2022-10-15 23:18:24 +07:00
<td>{$ds['method']}</td>
<td>{$ds['routers']}</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
<div class="clearfix text-right total-sum mb10">
2024-02-13 13:54:01 +07:00
<h4 class="text-uppercase text-bold">{Lang::T('Total Income')}:</h4>
2023-08-16 09:05:59 +07:00
<h3 class="sum">{Lang::moneyFormat($dr)}</h3>
2022-10-15 23:18:24 +07:00
</div>
<p class="text-center small text-info">{$stype} [{date( $_c['date_format'], strtotime($fdate))} -
{date( $_c['date_format'], strtotime($tdate))}]</p>
</div>
</div>
</div>
2022-09-06 10:31:33 +07:00
2022-10-15 23:18:24 +07:00
{include file="sections/footer.tpl"}