mitrobill/ui/ui/user-orderHistory.tpl

56 lines
2.9 KiB
Smarty
Raw Normal View History

2022-09-11 11:02:10 +07:00
{include file="sections/user-header.tpl"}
2022-10-15 23:18:24 +07:00
<!-- user-orderHistory -->
2022-09-11 11:02:10 +07:00
2022-10-15 23:18:24 +07:00
<div class="row">
<div class="col-sm-12">
2022-10-17 11:57:39 +07:00
<div class="panel mb20 panel-hovered panel-primary">
2024-02-13 13:54:01 +07:00
<div class="panel-heading">{Lang::T('Order History')}</div>
2022-10-15 23:18:24 +07:00
<div class="panel-body">
2022-10-16 14:48:21 +07:00
<div class="table-responsive">
<table id="datatable" 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('Plan Name')}</th>
2022-10-15 23:18:24 +07:00
<th>{Lang::T('Gateway')}</th>
<th>{Lang::T('Routers')}</th>
2024-02-13 13:54:01 +07:00
<th>{Lang::T('Type')}</th>
<th>{Lang::T('Plan Price')}</th>
<th>{Lang::T('Created On')}</th>
<th>{Lang::T('Expires On')}</th>
2022-10-15 23:18:24 +07:00
<th>{Lang::T('Date Done')}</th>
2024-02-13 13:54:01 +07:00
<th>{Lang::T('Method')}</th>
2022-10-15 23:18:24 +07:00
</tr>
</thead>
<tbody>
{foreach $d as $ds}
<tr>
<td><a href="{$_url}order/view/{$ds['id']}">{$ds['plan_name']}</a></td>
<td>{$ds['gateway']}</td>
<td>{$ds['routers']}</td>
<td>{$ds['payment_channel']}</td>
2023-08-15 16:21:35 +07:00
<td>{Lang::moneyFormat($ds['price'])}</td>
2022-10-15 23:18:24 +07:00
<td class="text-primary">{date("{$_c['date_format']} H:i",
strtotime($ds['created_date']))}</td>
<td class="text-danger">{date("{$_c['date_format']} H:i",
strtotime($ds['expired_date']))}</td>
<td class="text-success">{if $ds['status']!=1}{date("{$_c['date_format']} H:i",
strtotime($ds['paid_date']))}{/if}</td>
2024-02-13 13:54:01 +07:00
<td>{if $ds['status']==1}{Lang::T('UNPAID')}
{elseif $ds['status']==2}{Lang::T('PAID')}
2022-10-15 23:18:24 +07:00
{elseif $ds['status']==3}{$_L['FAILED']}
2024-02-13 13:54:01 +07:00
{elseif $ds['status']==4}{Lang::T('CANCELED')}
{elseif $ds['status']==5}{Lang::T('UNKNOWN')}
2022-10-15 23:18:24 +07:00
{/if}</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
{include file="pagination.tpl"}
2022-10-15 23:18:24 +07:00
</div>
</div>
</div>
</div>
2022-09-11 11:02:10 +07:00
2022-10-15 23:18:24 +07:00
{include file="sections/user-footer.tpl"}