<?php
/* Smarty version 4.5.3, created on 2026-02-21 19:23:56
  from '/var/www/html/kaptembwa/ui/ui_custom/customer/orderView.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.5.3',
  'unifunc' => 'content_6999dc1ccdc962_95695889',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'ca8715e1d0efd4fcb400fad8d9d97b21e84c1e9b' => 
    array (
      0 => '/var/www/html/kaptembwa/ui/ui_custom/customer/orderView.tpl',
      1 => 1770489334,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:customer/header.tpl' => 1,
    'file:customer/footer.tpl' => 1,
  ),
),false)) {
function content_6999dc1ccdc962_95695889 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_subTemplateRender("file:customer/header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
<!-- user-orderView -->
<div class="row">
    <div class="col-md-3"></div>
    <div class="col-md-6">
        <div
            class="panel mb20 <?php if ($_smarty_tpl->tpl_vars['trx']->value['status'] == 1) {?>panel-warning<?php } elseif ($_smarty_tpl->tpl_vars['trx']->value['status'] == 2) {?>panel-success<?php } elseif ($_smarty_tpl->tpl_vars['trx']->value['status'] == 3) {?>panel-danger<?php } elseif ($_smarty_tpl->tpl_vars['trx']->value['status'] == 4) {?>panel-danger<?php } else { ?>panel-primary<?php }?> panel-hovered">
            <div class="panel-footer"><?php echo Lang::T('Transaction');?>
 #<?php echo $_smarty_tpl->tpl_vars['trx']->value['id'];?>
</div>
            <?php if (!in_array($_smarty_tpl->tpl_vars['trx']->value['routers'],array('balance','radius'))) {?>
                <div class="panel-body">
                    <div class="panel panel-primary panel-hovered">
                        <div class="panel-heading"><?php echo $_smarty_tpl->tpl_vars['router']->value['name'];?>
</div>
                        <div class="panel-body">
                            <?php echo $_smarty_tpl->tpl_vars['router']->value['description'];?>

                        </div>
                    </div>
                </div>
            <?php }?>
            <div class="table-responsive">
                <?php if ($_smarty_tpl->tpl_vars['trx']->value['pg_url_payment'] == 'balance') {?>
                    <table class="table table-bordered table-striped table-bordered">
                        <tbody>
                            <tr>
                                <td><?php echo Lang::T('Type');?>
</td>
                                <td><?php echo $_smarty_tpl->tpl_vars['trx']->value['plan_name'];?>
</td>
                            </tr>
                            <tr>
                                <td><?php echo Lang::T('Paid Date');?>
</td>
                                <td><?php echo date($_smarty_tpl->tpl_vars['_c']->value['date_format'],strtotime($_smarty_tpl->tpl_vars['trx']->value['paid_date']));?>

                                    <?php echo date('H:i',strtotime($_smarty_tpl->tpl_vars['trx']->value['paid_date']));?>
 </td>
                            </tr>
                            <tr>
                                <?php if ($_smarty_tpl->tpl_vars['trx']->value['plan_name'] == 'Receive Balance') {?>
                                    <td><?php echo Lang::T('From');?>
</td>
                                <?php } else { ?>
                                    <td><?php echo Lang::T('To');?>
</td>
                                <?php }?>
                                <td><?php echo $_smarty_tpl->tpl_vars['trx']->value['gateway'];?>
</td>
                            </tr>
                            <tr>
                                <td><?php echo Lang::T('Total');?>
</td>
                                <td><?php echo Lang::moneyFormat($_smarty_tpl->tpl_vars['trx']->value['price']);?>
</td>
                            </tr>
                            <?php if ($_smarty_tpl->tpl_vars['invoice']->value['note']) {?>
                                <tr>
                                    <td><?php echo Lang::T('Notes');?>
</td>
                                    <td>
                                        <?php echo nl2br($_smarty_tpl->tpl_vars['invoice']->value['note']);?>

                                    </td>
                                </tr>
                            <?php }?>
                        </tbody>
                    </table>
                <?php } else { ?>
                    <table class="table table-bordered table-striped table-bordered">
                        <tbody>
                            <tr>
                                <td><?php echo Lang::T('Status');?>
</td>
                                <td><?php if ($_smarty_tpl->tpl_vars['trx']->value['status'] == 1) {
echo Lang::T('UNPAID');
} elseif ($_smarty_tpl->tpl_vars['trx']->value['status'] == 2) {
echo Lang::T('PAID');
} elseif ($_smarty_tpl->tpl_vars['trx']->value['status'] == 3) {
echo Lang::T('FAILED');
} elseif ($_smarty_tpl->tpl_vars['trx']->value['status'] == 4) {
echo Lang::T('CANCELED');
} else {
echo Lang::T('UNKNOWN');
}?>
                                </td>
                            </tr>
                            <tr>
                                <td><?php echo Lang::T('expired');?>
</td>
                                <td><?php echo date($_smarty_tpl->tpl_vars['_c']->value['date_format'],strtotime($_smarty_tpl->tpl_vars['trx']->value['expired_date']));?>

                                    <?php echo date('H:i',strtotime($_smarty_tpl->tpl_vars['trx']->value['expired_date']));?>
 </td>
                            </tr>
                            <?php if ($_smarty_tpl->tpl_vars['trx']->value['status'] == 2) {?>
                                <tr>
                                    <td><?php echo Lang::T('Paid Date');?>
</td>
                                    <td><?php echo date($_smarty_tpl->tpl_vars['_c']->value['date_format'],strtotime($_smarty_tpl->tpl_vars['trx']->value['paid_date']));?>

                                        <?php echo date('H:i',strtotime($_smarty_tpl->tpl_vars['trx']->value['paid_date']));?>
 </td>
                                </tr>
                            <?php }?>
                            <tr>
                                <td><?php echo Lang::T('Package Name');?>
</td>
                                <td><?php echo $_smarty_tpl->tpl_vars['plan']->value['name_plan'];?>
</td>
                            </tr>
                            <?php if ($_smarty_tpl->tpl_vars['add_cost']->value != 0) {?>
                                <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['bills']->value, 'v', false, 'k');
$_smarty_tpl->tpl_vars['v']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['k']->value => $_smarty_tpl->tpl_vars['v']->value) {
$_smarty_tpl->tpl_vars['v']->do_else = false;
?>
                                    <tr>
                                        <td><?php echo $_smarty_tpl->tpl_vars['k']->value;?>
</td>
                                        <td><?php echo Lang::moneyFormat($_smarty_tpl->tpl_vars['v']->value);?>
</td>
                                    </tr>
                                <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
                                <tr>
                                    <td><?php echo Lang::T('Additional Cost');?>
</td>
                                    <td><?php echo Lang::moneyFormat($_smarty_tpl->tpl_vars['add_cost']->value);?>
</td>
                                </tr>
                            <?php }?>
                            <tr>
                                <td><?php echo Lang::T('Package Price');
if ($_smarty_tpl->tpl_vars['add_cost']->value != 0) {?><small> +
                                        <?php echo Lang::T('Additional Cost');
}?></small></td>
                                <td
                                    style="font-size: large; font-weight:bolder; font-family: 'Courier New', Courier, monospace; ">
                                    <?php echo Lang::moneyFormat($_smarty_tpl->tpl_vars['trx']->value['price']);?>
</td>
                            </tr>
                            <tr>
                                <td><?php echo Lang::T('Type');?>
</td>
                                <td><?php echo $_smarty_tpl->tpl_vars['plan']->value['type'];?>
</td>
                            </tr>
                            <?php if ($_smarty_tpl->tpl_vars['plan']->value['type'] != 'Balance') {?>
                                <?php if ($_smarty_tpl->tpl_vars['plan']->value['type'] == 'Hotspot') {?>
                                    <tr>
                                        <td><?php echo Lang::T('Plan_Type');?>
</td>
                                        <td><?php echo Lang::T($_smarty_tpl->tpl_vars['plan']->value['typebp']);?>
</td>
                                    </tr>
                                    <?php if ($_smarty_tpl->tpl_vars['plan']->value['typebp'] == 'Limited') {?>
                                        <?php if ($_smarty_tpl->tpl_vars['plan']->value['limit_type'] == 'Time_Limit' || $_smarty_tpl->tpl_vars['plan']->value['limit_type'] == 'Both_Limit') {?>
                                            <tr>
                                                <td><?php echo Lang::T('Time_Limit');?>
</td>
                                                <td><?php echo $_smarty_tpl->tpl_vars['ds']->value['time_limit'];?>
 <?php echo $_smarty_tpl->tpl_vars['ds']->value['time_unit'];?>
</td>
                                            </tr>
                                        <?php }?>
                                        <?php if ($_smarty_tpl->tpl_vars['plan']->value['limit_type'] == 'Data_Limit' || $_smarty_tpl->tpl_vars['plan']->value['limit_type'] == 'Both_Limit') {?>
                                            <tr>
                                                <td><?php echo Lang::T('Data_Limit');?>
</td>
                                                <td><?php echo $_smarty_tpl->tpl_vars['ds']->value['data_limit'];?>
 <?php echo $_smarty_tpl->tpl_vars['ds']->value['data_unit'];?>
</td>
                                            </tr>
                                        <?php }?>
                                    <?php }?>
                                <?php }?>
                                <tr>
                                    <td><?php echo Lang::T('Validity Periode');?>
</td>
                                    <td><?php echo $_smarty_tpl->tpl_vars['plan']->value['validity'];?>
 <?php echo $_smarty_tpl->tpl_vars['plan']->value['validity_unit'];?>
</td>
                                </tr>
                                <?php if ($_smarty_tpl->tpl_vars['_c']->value['show_bandwidth_plan'] == 'yes') {?>
                                    <tr>
                                        <td><?php echo Lang::T('Bandwidth Plans');?>
</td>
                                        <td><?php echo $_smarty_tpl->tpl_vars['bandw']->value['name_bw'];?>
<br><?php echo $_smarty_tpl->tpl_vars['bandw']->value['rate_down'];
echo $_smarty_tpl->tpl_vars['bandw']->value['rate_down_unit'];?>
/<?php echo $_smarty_tpl->tpl_vars['bandw']->value['rate_up'];
echo $_smarty_tpl->tpl_vars['bandw']->value['rate_up_unit'];?>

                                        </td>
                                    </tr>
                                <?php }?>
                            <?php }?>
                        </tbody>
                    </table>
                <?php }?>
            </div>
            <?php if ($_smarty_tpl->tpl_vars['trx']->value['status'] == 1) {?>
                <div class="panel-footer">
                    <div class="btn-group btn-group-justified">
                        <a href="<?php echo $_smarty_tpl->tpl_vars['trx']->value['pg_url_payment'];?>
" <?php if ($_smarty_tpl->tpl_vars['trx']->value['gateway'] == 'midtrans') {?> target="_blank" <?php }?>
                            class="btn btn-primary"><?php echo Lang::T('Pay Now');?>
</a>
                        <a href="<?php echo Text::url('order/view/',$_smarty_tpl->tpl_vars['trx']->value['id'],'/check');?>
"
                            class="btn btn-info"><?php echo Lang::T('Check for Payment');?>
</a>
                    </div>
                </div>
                <div class="panel-footer">
                    <a href="<?php echo Text::url('order/view/',$_smarty_tpl->tpl_vars['trx']->value['id'],'/cancel');?>
" class="btn btn-danger"
                        onclick="return ask(this, '<?php echo Lang::T('Cancel it?');?>
')"><?php echo Lang::T('Cancel');?>
</a>
                </div>
            <?php }?>
        </div>
    </div>
</div>
<?php $_smarty_tpl->_subTemplateRender("file:customer/footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
}
}
