forked from kevinowino869/mitrobill
Payment Gateway Audit page
This commit is contained in:
79
ui/ui/paymentgateway-audit-view.tpl
Normal file
79
ui/ui/paymentgateway-audit-view.tpl
Normal file
@ -0,0 +1,79 @@
|
||||
{include file="sections/header.tpl"}
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-5">
|
||||
<div class="panel panel-hovered mb20 panel-primary">
|
||||
<div class="panel-heading">
|
||||
{$pg['gateway_trx_id']}
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<ul class="list-group list-group-unbordered">
|
||||
<li class="list-group-item">
|
||||
<b>TRX ID</b> <span class="pull-right"> {$pg['id']} </span>
|
||||
</li>
|
||||
<li class="list-group-item">
|
||||
<b>{Lang::T('Invoice')}</b> <span class="pull-right">
|
||||
<a href="{$_url}reports/activation&q={$pg['trx_invoice']}" class="text-black">{$pg['trx_invoice']}</a>
|
||||
</span>
|
||||
</li>
|
||||
<li class="list-group-item">
|
||||
<b>{Lang::T('Status')}</b> <span
|
||||
class="pull-right"> {if $pg['status'] == 1}UNPAID{elseif $pg['status'] == 2}PAID{elseif $pg['status'] == 3}FAILED{else}CANCELED{/if} </span>
|
||||
</li>
|
||||
<li class="list-group-item">
|
||||
<b>{Lang::T('Username')}</b>
|
||||
<span class="pull-right"> <a href="{$_url}customers/viewu/{$pg['username']}" class="text-black">{$pg['username']}</a> </span>
|
||||
</li>
|
||||
<li class="list-group-item">
|
||||
<b>{Lang::T('Plan Name')}</b> <span class="pull-right"> {$pg['plan_name']} </span>
|
||||
</li>
|
||||
<li class="list-group-item">
|
||||
<b>{Lang::T('Routers')}</b> <span class="pull-right"> {$pg['routers']} </span>
|
||||
</li>
|
||||
<li class="list-group-item">
|
||||
<b>{Lang::T('Price')}</b> <span
|
||||
class="pull-right"> {Lang::moneyFormat($pg['price'])} </span>
|
||||
</li>
|
||||
<li class="list-group-item">
|
||||
<b>{Lang::T('Payment Link')}</b> <span class="pull-right"> {if $pg['pg_url_payment']}
|
||||
<a href="{$pg['pg_url_payment']}" target="_blank" class="btn btn-xs btn-default"
|
||||
rel="noopener noreferrer">open</a>
|
||||
{/if} </span>
|
||||
</li>
|
||||
<li class="list-group-item">
|
||||
<b>{Lang::T('Channel')}</b> <span class="pull-right"> {$pg['payment_method']} -
|
||||
{$pg['payment_channel']} </span>
|
||||
</li>
|
||||
<li class="list-group-item">
|
||||
<b>{Lang::T('Created')}</b> <span
|
||||
class="pull-right"> {if $pg['created_date'] != null}{Lang::dateTimeFormat($pg['created_date'])}{/if} </span>
|
||||
</li>
|
||||
<li class="list-group-item">
|
||||
<b>{Lang::T('Expired')}</b> <span
|
||||
class="pull-right"> {if $pg['expired_date'] != null}{Lang::dateTimeFormat($pg['expired_date'])}{/if} </span>
|
||||
</li>
|
||||
<li class="list-group-item">
|
||||
<b>{Lang::T('Paid')}</b> <span
|
||||
class="pull-right"> {if $pg['paid_date'] != null}{Lang::dateTimeFormat($pg['paid_date'])}{/if} </span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel panel-hovered mb20 panel-primary">
|
||||
<div class="panel-heading">
|
||||
Response when request payment
|
||||
</div>
|
||||
<pre class="panel-body p-1">{if $pg['pg_request'] != null}{Lang::jsonArray2text(json_decode($pg['pg_request'], true))}{/if}</pre>
|
||||
</div>
|
||||
<div class="panel panel-hovered mb20 panel-primary">
|
||||
<div class="panel-heading">
|
||||
Response when payment PAID
|
||||
</div>
|
||||
<pre class="panel-body p-1">{if $pg['pg_request'] != null}{Lang::jsonArray2text(json_decode($pg['pg_paid_response'], true))}{/if}</pre>
|
||||
</div>
|
||||
|
||||
{include file="sections/footer.tpl"}
|
71
ui/ui/paymentgateway-audit.tpl
Normal file
71
ui/ui/paymentgateway-audit.tpl
Normal file
@ -0,0 +1,71 @@
|
||||
{include file="sections/header.tpl"}
|
||||
<div class="panel panel-hovered mb20 panel-primary">
|
||||
<div class="panel-heading">
|
||||
{ucwords($pg)}
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<form id="site-search" method="post" action="{$_url}paymentgateway/audit/{$pg}">
|
||||
<div class="input-group">
|
||||
<input type="text" name="q" class="form-control" placeholder="{Lang::T('Search')}..."
|
||||
value="{$q}">
|
||||
<div class="input-group-btn">
|
||||
<button type="submit" class="btn btn-danger" title="Clear Search Query"
|
||||
href="{$_url}plan/list"><span class="glyphicon glyphicon-search"></span></button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered table-striped table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>TRX ID</th>
|
||||
<th>PG ID</th>
|
||||
<th>{Lang::T('Username')}</th>
|
||||
<th>{Lang::T('Plan Name')}</th>
|
||||
<th>{Lang::T('Routers')}</th>
|
||||
<th>{Lang::T('Price')}</th>
|
||||
<th>{Lang::T('Payment Link')}</th>
|
||||
<th>{Lang::T('Channel')}</th>
|
||||
<th>{Lang::T('Created')}</th>
|
||||
<th>{Lang::T('Expired')}</th>
|
||||
<th>{Lang::T('Paid')}</th>
|
||||
<th>{Lang::T('Invoice')}</th>
|
||||
<th>{Lang::T('Status')}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach $pgs as $pg}
|
||||
<tr class="{if $pg['status'] == 1}warning{elseif $pg['status'] == 2}success{else}danger{/if}">
|
||||
<td>{$pg['id']}</td>
|
||||
<td><a href="{$_url}paymentgateway/audit-view/{$pg['id']}"
|
||||
class="text-black">{$pg['gateway_trx_id']}</a></td>
|
||||
<td><a href="{$_url}customers/viewu/{$pg['username']}" class="text-black">{$pg['username']}</a>
|
||||
</td>
|
||||
<td>{$pg['plan_name']}</td>
|
||||
<td>{$pg['routers']}</td>
|
||||
<td>{Lang::moneyFormat($pg['price'])}</td>
|
||||
<td>
|
||||
{if $pg['pg_url_payment']}
|
||||
<a href="{$pg['pg_url_payment']}" target="_blank" class="btn btn-xs btn-default btn-block"
|
||||
rel="noopener noreferrer">open</a>
|
||||
{/if}
|
||||
</td>
|
||||
<td>{$pg['payment_method']} - {$pg['payment_channel']}</td>
|
||||
<td>{if $pg['created_date'] != null}{Lang::dateTimeFormat($pg['created_date'])}{/if}</td>
|
||||
<td>{if $pg['expired_date'] != null}{Lang::dateTimeFormat($pg['expired_date'])}{/if}</td>
|
||||
<td>{if $pg['paid_date'] != null}{Lang::dateTimeFormat($pg['paid_date'])}{/if}</td>
|
||||
<td>{if $pg['trx_invoice']}<a href="{$_url}reports/activation&q={$pg['trx_invoice']}"
|
||||
class="text-black">{$pg['trx_invoice']}</a>{/if}</td>
|
||||
<td>{if $pg['status'] == 1}UNPAID{elseif $pg['status'] == 2}PAID{elseif $pg['status'] == 3}FAILED{else}CANCELED{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{include file="pagination.tpl"}
|
||||
<a href="{$_url}paymentgateway/" class="btn btn-default btn-xs">kembali</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{include file="sections/footer.tpl"}
|
@ -14,9 +14,19 @@
|
||||
<td><a href="{$_url}paymentgateway/{$pg}"
|
||||
class="btn btn-block btn-{if in_array($pg, $actives)}info{else}default{/if} text-left">{ucwords($pg)}</a>
|
||||
</td>
|
||||
<td width="10"><a href="{$_url}paymentgateway/delete/{$pg}"
|
||||
onclick="return confirm('{Lang::T('Delete')} {$pg}?')" class="btn btn-danger"><i
|
||||
class="glyphicon glyphicon-trash"></i></a></td>
|
||||
<td width="114">
|
||||
<div class="btn-group" role="group" aria-label="...">
|
||||
<div class="btn-group" role="group">
|
||||
<a href="{$_url}paymentgateway/audit/{$pg}"
|
||||
class="btn btn-success text-black">Audit</a>
|
||||
</div>
|
||||
<div class="btn-group" role="group">
|
||||
<a href="{$_url}paymentgateway/delete/{$pg}"
|
||||
onclick="return confirm('{Lang::T('Delete')} {$pg}?')"
|
||||
class="btn btn-danger"><i class="glyphicon glyphicon-trash"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
|
Reference in New Issue
Block a user