{include file="sections/header.tpl"}


<div class="row">
    <div class="col-sm-5">
        <div class="card card-hovered mb20 card-primary">
            <div class="card-title text-center">
                {$pg['gateway_trx_id']}
            </div>
            <div class="card-body">
                <ul class="list-group list-group-unbordered">
                    <li class="list-group-item">
                        <b>{Lang::T('TRX ID')}</b> <span class="pull-right">&nbsp;{$pg['id']}&nbsp;</span>
                    </li>
                    <li class="list-group-item">
                        <b>{Lang::T('Invoice')}</b> <span class="pull-right">&nbsp;
                        <a href="{$_url}reports/activation&q={$pg['trx_invoice']}" class="text-black">{$pg['trx_invoice']}</a>
                        &nbsp;</span>
                    </li>
                    <li class="list-group-item">
                        <b>{Lang::T('Status')}</b> <span
                            class="pull-right">&nbsp;{if $pg['status'] == 1}UNPAID{elseif $pg['status'] == 2}PAID{elseif $pg['status'] == 3}FAILED{else}CANCELED{/if}&nbsp;</span>
                    </li>
                    <li class="list-group-item">
                        <b>{Lang::T('Username')}</b>
                        <span class="pull-right">&nbsp;<a href="{$_url}customers/viewu/{$pg['username']}" class="text-black">{$pg['username']}</a>&nbsp;</span>
                    </li>
                    <li class="list-group-item">
                        <b>{Lang::T('Plan Name')}</b> <span class="pull-right">&nbsp;{$pg['plan_name']}&nbsp;</span>
                    </li>
                    <li class="list-group-item">
                        <b>{Lang::T('Routers')}</b> <span class="pull-right">&nbsp;{$pg['routers']}&nbsp;</span>
                    </li>
                    <li class="list-group-item">
                        <b>{Lang::T('Price')}</b> <span
                            class="pull-right">&nbsp;{Lang::moneyFormat($pg['price'])}&nbsp;</span>
                    </li>
                    
                    <li class="list-group-item">
                        <b>{Lang::T('Channel')}</b> <span class="pull-right">&nbsp;{$pg['payment_method']} -
                            {$pg['payment_channel']}&nbsp;</span>
                    </li>
                    <li class="list-group-item">
                        <b>{Lang::T('Created')}</b> <span
                            class="pull-right">&nbsp;{if $pg['created_date'] != null}{Lang::dateTimeFormat($pg['created_date'])}{/if}&nbsp;</span>
                    </li>
                    <li class="list-group-item">
                        <b>{Lang::T('Expired')}</b> <span
                            class="pull-right">&nbsp;{if $pg['expired_date'] != null}{Lang::dateTimeFormat($pg['expired_date'])}{/if}&nbsp;</span>
                    </li>
                    <li class="list-group-item">
                        <b>{Lang::T('Paid')}</b> <span
                            class="pull-right">&nbsp;{if $pg['paid_date'] != null}{Lang::dateTimeFormat($pg['paid_date'])}{/if}&nbsp;</span>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</div>

<div class="card card-hovered mb20 card-primary">
    <div class="card-title text-center">
        {Lang::T('Response when request payment')}
    </div>
    <div class="table-responsive">
        <table class="table table-bordered table-striped table-condensed">
            {foreach $pg['pg_request'] as $k => $v}
                <tr>
                    <td>{$k}</td>
                    <td>{$v}</td>
                </tr>
            {/foreach}
        </table>
    </div>
</div>
<div class="card card-hovered mb20 card-primary">
    <div class="card-title text-center">
        {Lang::T('Response when payment PAID')}
    </div>
    <div class="table-responsive">
        <table class="table table-bordered table-striped table-condensed">
            {foreach $pg['pg_paid_response'] as $k => $v}
                <tr>
                    <td>{$k}</td>
                    <td>{$v}</td>
                </tr>
            {/foreach}
        </table>
    </div>
</div>

{include file="sections/footer.tpl"}
