From d35c7080d9963c2cd68dda4068d2b8d898e13dfb Mon Sep 17 00:00:00 2001 From: iBNu Maksum Date: Wed, 7 Aug 2024 09:32:01 +0700 Subject: [PATCH] Revert "Fix the view" --- ui/ui/paymentgateway-audit-view.tpl | 187 +++++++++++----------------- ui/ui/paymentgateway-audit.tpl | 14 ++- 2 files changed, 83 insertions(+), 118 deletions(-) diff --git a/ui/ui/paymentgateway-audit-view.tpl b/ui/ui/paymentgateway-audit-view.tpl index 90dc2308..844f6fb0 100644 --- a/ui/ui/paymentgateway-audit-view.tpl +++ b/ui/ui/paymentgateway-audit-view.tpl @@ -1,122 +1,79 @@ {include file="sections/header.tpl"} -
-
-
-
-
- {$pg['id']} -
-
-
    -
  • - Gateway trx id - {$pg['gateway_trx_id']} -
  • -
  • - {Lang::T('Invoice')} - - {$pg['trx_invoice']} - -
  • -
  • - {Lang::T('Status')} - - {if $pg['status'] == 1}UNPAID{elseif $pg['status'] == 2}PAID{elseif $pg['status'] == 3}FAILED{else}CANCELED{/if} - -
  • -
  • - {Lang::T('Username')} - - {$pg['username']} - -
  • -
  • - {Lang::T('Plan Name')} - {$pg['plan_name']} -
  • -
  • - {Lang::T('Routers')} - {$pg['routers']} -
  • -
  • - {Lang::T('Price')} - {Lang::moneyFormat($pg['price'])} -
  • -
  • - {Lang::T('Payment Link')} - - {if $pg['pg_url_payment']} - click here - {/if} - -
  • -
  • - {Lang::T('Channel')} - {$pg['payment_method']} - {$pg['payment_channel']} -
  • -
  • - {Lang::T('Created')} - {if $pg['created_date'] != null}{Lang::dateTimeFormat($pg['created_date'])}{/if} -
  • -
  • - {Lang::T('Expired')} - {if $pg['expired_date'] != null}{Lang::dateTimeFormat($pg['expired_date'])}{/if} -
  • -
  • - {Lang::T('Paid')} - {if $pg['paid_date'] != null}{Lang::dateTimeFormat($pg['paid_date'])}{/if} -
  • -
-
-
-
-
-
-
- Response -
-
- {if $pg['pg_paid_response'] != null} - {assign var='paid_response' value=json_decode($pg['pg_paid_response'], true)} - - - - - - - - - {foreach from=$paid_response key=k item=v} - {if is_array($v)} - {foreach from=$v key=vk item=vv} - {if is_array($vv)} - {foreach from=$vv key=vvk item=vvv} - - - - - {/foreach} - {else} - - - - - {/if} - {/foreach} - {else} - - - - - {/if} - {/foreach} - -
KeyValue
{$k} - {$vk} - {$vvk}{$vvv|json_encode}
{$k} - {$vk}{$vv|json_encode nofilter}
{$k}{if is_array(json_decode($v, true))}{$v|json_encode}{else}{$v nofilter}{/if}
- {/if} +
+
+
+
+ {$pg['gateway_trx_id']} +
+
+
    +
  • + TRX ID  {$pg['id']}  +
  • +
  • + {Lang::T('Invoice')}   + {$pg['trx_invoice']} +   +
  • +
  • + {Lang::T('Status')}  {if $pg['status'] == 1}UNPAID{elseif $pg['status'] == 2}PAID{elseif $pg['status'] == 3}FAILED{else}CANCELED{/if}  +
  • +
  • + {Lang::T('Username')} +  {$pg['username']}  +
  • +
  • + {Lang::T('Plan Name')}  {$pg['plan_name']}  +
  • +
  • + {Lang::T('Routers')}  {$pg['routers']}  +
  • +
  • + {Lang::T('Price')}  {Lang::moneyFormat($pg['price'])}  +
  • +
  • + {Lang::T('Payment Link')}  {if $pg['pg_url_payment']} + open + {/if}  +
  • +
  • + {Lang::T('Channel')}  {$pg['payment_method']} - + {$pg['payment_channel']}  +
  • +
  • + {Lang::T('Created')}  {if $pg['created_date'] != null}{Lang::dateTimeFormat($pg['created_date'])}{/if}  +
  • +
  • + {Lang::T('Expired')}  {if $pg['expired_date'] != null}{Lang::dateTimeFormat($pg['expired_date'])}{/if}  +
  • +
  • + {Lang::T('Paid')}  {if $pg['paid_date'] != null}{Lang::dateTimeFormat($pg['paid_date'])}{/if}  +
  • +
+
-{include file="sections/footer.tpl"} +
+
+ Response when request payment +
+
{if $pg['pg_request'] != null}{Lang::jsonArray2text(json_decode($pg['pg_request'], true))}{/if}
+
+
+
+ Response when payment PAID +
+
{if $pg['pg_request'] != null}{Lang::jsonArray2text(json_decode($pg['pg_paid_response'], true))}{/if}
+
+ +{include file="sections/footer.tpl"} \ No newline at end of file diff --git a/ui/ui/paymentgateway-audit.tpl b/ui/ui/paymentgateway-audit.tpl index 3863bece..e10de7d3 100644 --- a/ui/ui/paymentgateway-audit.tpl +++ b/ui/ui/paymentgateway-audit.tpl @@ -17,12 +17,16 @@ + + + + @@ -31,11 +35,13 @@ {foreach $pgs as $pg} + + class="text-black">{$pg['gateway_trx_id']} + + + @@ -55,8 +63,8 @@
TRX ID PG ID {Lang::T('Username')} {Lang::T('Plan Name')}{Lang::T('Routers')} {Lang::T('Price')} {Lang::T('Payment Link')}{Lang::T('Channel')} {Lang::T('Created')}{Lang::T('Expired')} {Lang::T('Paid')} {Lang::T('Invoice')} {Lang::T('Status')}
{$pg['id']} {$pg['id']} {$pg['username']} {$pg['plan_name']}{$pg['routers']} {Lang::moneyFormat($pg['price'])} {if $pg['pg_url_payment']} @@ -43,7 +49,9 @@ rel="noopener noreferrer">open {/if} {$pg['payment_method']} - {$pg['payment_channel']} {if $pg['created_date'] != null}{Lang::dateTimeFormat($pg['created_date'])}{/if}{if $pg['expired_date'] != null}{Lang::dateTimeFormat($pg['expired_date'])}{/if} {if $pg['paid_date'] != null}{Lang::dateTimeFormat($pg['paid_date'])}{/if} {if $pg['trx_invoice']}{$pg['trx_invoice']}{/if}
{include file="pagination.tpl"} - + kembali
-{include file="sections/footer.tpl"} +{include file="sections/footer.tpl"} \ No newline at end of file