<?php
/* Smarty version 4.3.1, created on 2025-12-18 19:40:25
  from '/var/www/html/yatmack/system/paymentgateway/ui/bankstkpush.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.3.1',
  'unifunc' => 'content_69442e79250de0_04468865',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'e55c1fbb39343a012d1e05d5709d5bac739ea069' => 
    array (
      0 => '/var/www/html/yatmack/system/paymentgateway/ui/bankstkpush.tpl',
      1 => 1757869030,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:sections/header.tpl' => 1,
    'file:sections/footer.tpl' => 1,
  ),
),false)) {
function content_69442e79250de0_04468865 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_subTemplateRender("file:sections/header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
<div class="container-fluid">
    <form class="form-horizontal" method="post" role="form" action="<?php echo $_smarty_tpl->tpl_vars['_url']->value;?>
paymentgateway/BankStkPush" >
        <div class="row">
            <div class="col-sm-12 col-md-12">
                <div class="card card-primary card-hovered card-stacked mb30">
                    <div class="card-header">
                        <div class="row">
                            <div class="col-md-6">
                                <h4><?php echo Lang::T('BankStkPush Configuration');?>
</h4>
                            </div>
                            <div class="col-md-6 text-right">
                                <a href="<?php echo $_smarty_tpl->tpl_vars['_url']->value;?>
banks/list" class="btn btn-info">
                                    <i class="fa fa-cog"></i> <?php echo Lang::T('Manage Banks');?>

                                </a>
                            </div>
                        </div>
                    </div>
                    <div class="card-body">
                        <?php if ($_smarty_tpl->tpl_vars['banks']->value) {?>
                            <div class="form-group">
                                <label class="col-md-3 control-label"><?php echo Lang::T('Select Bank Account');?>
 <span class="text-danger">*</span></label>
                                <div class="col-md-6">
                                    <select class="form-control" name="selected_bank_id" id="selected_bank_id" required>
                                        <option value="">-- <?php echo Lang::T('Select Bank Account');?>
 --</option>
                                        <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['banks']->value, 'bank');
$_smarty_tpl->tpl_vars['bank']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['bank']->value) {
$_smarty_tpl->tpl_vars['bank']->do_else = false;
?>
                                        <option value="<?php echo $_smarty_tpl->tpl_vars['bank']->value->id;?>
" <?php if ($_smarty_tpl->tpl_vars['bank']->value->id == $_smarty_tpl->tpl_vars['selected_bank_id']->value) {?>selected<?php }?>>
                                            <?php echo $_smarty_tpl->tpl_vars['bank']->value->name;?>
 - <?php echo $_smarty_tpl->tpl_vars['bank']->value->account_number;?>
 (<?php echo $_smarty_tpl->tpl_vars['bank']->value->account_name;?>
)
                                            <?php if ($_smarty_tpl->tpl_vars['bank']->value->is_default) {?> - <?php echo Lang::T('DEFAULT');
}?>
                                        </option>
                                        <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
                                    </select>
                                    <small class="text-muted"><?php echo Lang::T('Only banks with STK Push support are shown');?>
</small>
                                </div>
                            </div>

                            <?php if ($_smarty_tpl->tpl_vars['selected_bank']->value) {?>
                            <div class="form-group">
                                <label class="col-md-3 control-label"><?php echo Lang::T('Selected Bank Details');?>
</label>
                                <div class="col-md-6">
                                    <div class="panel panel-info">
                                        <div class="panel-body">
                                            <strong><?php echo Lang::T('Bank Name');?>
:</strong> <?php echo $_smarty_tpl->tpl_vars['selected_bank']->value->name;?>
<br>
                                            <strong><?php echo Lang::T('Account Number');?>
:</strong> <code><?php echo $_smarty_tpl->tpl_vars['selected_bank']->value->account_number;?>
</code><br>
                                            <strong><?php echo Lang::T('Account Name');?>
:</strong> <?php echo $_smarty_tpl->tpl_vars['selected_bank']->value->account_name;?>
<br>
                                            <?php if ($_smarty_tpl->tpl_vars['selected_bank']->value->bank_code) {?>
                                            <strong><?php echo Lang::T('Bank Code');?>
:</strong> <span class="badge badge-info"><?php echo $_smarty_tpl->tpl_vars['selected_bank']->value->bank_code;?>
</span><br>
                                            <?php }?>
                                            <?php if ($_smarty_tpl->tpl_vars['selected_bank']->value->paybill) {?>
                                            <strong><?php echo Lang::T('Paybill');?>
:</strong> <code><?php echo $_smarty_tpl->tpl_vars['selected_bank']->value->paybill;?>
</code><br>
                                            <?php }?>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <?php }?>

                            <div class="form-group">
                                <div class="col-md-6 col-md-offset-3">
                                    <div class="alert alert-info">
                                        <i class="fa fa-info-circle"></i>
                                        <?php echo Lang::T('After applying these changes, funds will be sent to the selected bank account. Please ensure the bank details are correct.');?>

                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <div class="col-lg-offset-3 col-lg-6">
                                    <button class="btn btn-primary waves-effect waves-light" type="submit">
                                        <i class="fa fa-save"></i> <?php echo Lang::T('Save Configuration');?>

                                    </button>
                                    <a href="<?php echo $_smarty_tpl->tpl_vars['_url']->value;?>
banks/add" class="btn btn-success">
                                        <i class="fa fa-plus"></i> <?php echo Lang::T('Add New Bank');?>

                                    </a>
                                </div>
                            </div>
                        <?php } else { ?>
                            <div class="alert alert-warning">
                                <h4><i class="fa fa-warning"></i> <?php echo Lang::T('No Banks Available');?>
</h4>
                                <p><?php echo Lang::T('No banks with STK Push support are currently available. Please add banks first.');?>
</p>
                                <a href="<?php echo $_smarty_tpl->tpl_vars['_url']->value;?>
banks/add" class="btn btn-primary">
                                    <i class="fa fa-plus"></i> <?php echo Lang::T('Add First Bank');?>

                                </a>
                            </div>
                        <?php }?>
                    </div>
                </div>
            </div>
        </div>
    </form>
</div>


<?php $_smarty_tpl->_subTemplateRender("file:sections/footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
}
}
