mitrobill/ui/ui/user-dashboard.tpl
2022-10-17 11:57:39 +07:00

113 lines
5.2 KiB
Smarty

{include file="sections/user-header.tpl"}
<!-- user-dashboard -->
<div class="row">
<div class="col col-md-6 col-md-push-6">
{if $unpaid }
<div class="box box-danger box-solid">
<div class="box-header">
<h3 class="box-title">{Lang::T('Unpaid Order')}</h3>
</div>
<table class="table table-condensed table-bordered table-striped table-hover">
<tbody>
<tr>
<td>{Lang::T('expired')}</td>
<td>{date({$_c['date_format']}, strtotime($unpaid['expired_date']))}
{date('H:i', strtotime($unpaid['expired_date']))} </td>
</tr>
<tr>
<td>{$_L['Plan_Name']}</td>
<td>{$unpaid['plan_name']}</td>
</tr>
<tr>
<td>{$_L['Plan_Price']}</td>
<td>{$unpaid['price']}</td>
</tr>
<tr>
<td>{Lang::T('Routers')}</td>
<td>{$unpaid['routers']}</td>
</tr>
</tbody>
</table>
<div class="box-footer p-2">
<a class="btn btn-danger btn-block btn-sm" href="{$_url}order/view/{$unpaid['id']}">
<span class="icon"><i class="ion ion-card"></i></span>
<span>{Lang::T('PAY NOW')}</span>
</a>
</div>
</div>
{/if}
<div class="box box-info box-solid">
<div class="box-header">
<h3 class="box-title">{$_L['Announcement']}</h3>
</div>
<div class="box-body" style="max-height:296px;overflow:scroll;">
{include file="$_path/../pages/Announcement.html"}
</div>
</div>
</div>
<div class="col col-md-6 col-md-pull-6">
<div class="box box-primary box-solid">
<div class="box-header">
<h3 class="box-title">{$_L['Account_Information']}</h3>
</div>
<table class="table table-bordered table-striped table-bordered table-hover">
<tr>
<td class="small text-success text-uppercase text-normal">{$_L['Username']}</td>
<td class="small mb15">{$_bill['username']}</td>
</tr>
<tr>
<td class="small text-primary text-uppercase text-normal">{$_L['Plan_Name']}</td>
<td class="small mb15">{$_bill['namebp']}</td>
</tr>
<tr>
<td class="small text-info text-uppercase text-normal">{$_L['Created_On']}</td>
<td class="small mb15">
{if $_bill['time'] ne ''}{date($_c['date_format'], strtotime($_bill['recharged_on']))}
{$_bill['time']}{/if}&nbsp;</td>
</tr>
<tr>
<td class="small text-danger text-uppercase text-normal">{$_L['Expires_On']}</td>
<td class="small mb15">
{if $_bill['time'] ne ''}{date($_c['date_format'], strtotime($_bill['expiration']))}
{$_bill['time']}{/if}&nbsp;</td>
</tr>
</table>
</div>
<br>
<div class="box box-primary box-solid mb30">
<div class="box-header">
<h3 class="box-title">{$_L['Voucher_Activation']}</h3>
</div>
<div class="box-body">
<form method="post" role="form" class="form-horizontal" action="{$_url}voucher/activation-post">
<div class="form-group">
<label class="col-sm-4 control-label text-center">{$_L['Code_Voucher']}</label>
<div class="col-sm-7">
<input type="text" id="code" name="code" class="form-control"
placeholder="{$_L['Enter_Voucher_Code']}">
</div>
</div>
<div class="form-group" align="center">
<button class="btn btn-success" type="submit">{$_L['Recharge']}</button>
</div>
</form>
</div>
<div class="box-body">
<div class="btn-group btn-group-justified" role="group">
<a class="btn btn-warning" href="{$_url}order/voucher">
<i class="ion ion-ios-cart"></i>
{$_L['Order_Voucher']}
</a>
{if $_c['payment_gateway'] != 'none' or $_c['payment_gateway'] == '' }
<a href="{$_url}order/package" class="btn btn-primary">
<i class="ion ion-ios-cart"></i>
{Lang::T('Order Package')}
</a>
{/if}
</div>
</div>
</div>
</div>
</div>
{include file="sections/user-footer.tpl"}