<?php /* Smarty version 3.1.27, created on 2025-07-04 13:49:43
         compiled from "/home/zeebng/tradex.jasminewrubel.com/tmpl/withdrawal.tpl" */ ?>
<?php
/*%%SmartyHeaderCode:12169721476867dbf7053ae8_29544889%%*/
if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '831f7926d719232a3fcd5c2aca95f318f317387d' => 
    array (
      0 => '/home/zeebng/tradex.jasminewrubel.com/tmpl/withdrawal.tpl',
      1 => 1751636915,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '12169721476867dbf7053ae8_29544889',
  'variables' => 
  array (
    'say' => 0,
    'batch' => 0,
    'fatals' => 0,
    'settings' => 0,
    'errors' => 0,
    'currency_sign' => 0,
    'fees' => 0,
    'preview' => 0,
    'amount' => 0,
    'ec' => 0,
    'comment' => 0,
    'currency' => 0,
    'account' => 0,
    'converted' => 0,
    'to_withdraw' => 0,
    'userinfo' => 0,
    'ab_formated' => 0,
    'ps' => 0,
    'p' => 0,
    'frm' => 0,
    'have_available' => 0,
    'ti' => 0,
  ),
  'has_nocache_code' => false,
  'version' => '3.1.27',
  'unifunc' => 'content_6867dbf70ac506_93958698',
),false);
/*/%%SmartyHeaderCode%%*/
if ($_valid && !is_callable('content_6867dbf70ac506_93958698')) {
function content_6867dbf70ac506_93958698 ($_smarty_tpl) {
if (!is_callable('smarty_modifier_myescape')) require_once '/home/zeebng/tradex.jasminewrubel.com/inc/libs/smarty3/plugins/modifier.myescape.php';

$_smarty_tpl->properties['nocache_hash'] = '12169721476867dbf7053ae8_29544889';
echo $_smarty_tpl->getSubTemplate ("header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0);
?>


<div class="main-content">
  <div class="page-content">
    <div class="row">
      <div class="col-xl-12">
        <div class="card">
          <div class="card-body">
            <h4 class="card-title">Ask for withdrawal</h4>
            <br>

            <?php if ($_smarty_tpl->tpl_vars['say']->value == 'processed') {?>
              <?php if ($_smarty_tpl->tpl_vars['batch']->value == '') {?>Withdrawal request has been successfully saved.
              <?php } else { ?> Withdrawal has been processed. Batch id: <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['batch']->value);?>

              <?php }?>
              <br><br>
            <?php }?>

            <?php if ($_smarty_tpl->tpl_vars['fatals']->value) {?>
              <?php if ($_smarty_tpl->tpl_vars['fatals']->value['times_limit']) {?>
                You can withdraw <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['settings']->value['limit_withdraw_period_times']);?>
 per <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['settings']->value['limit_withdraw_period_date']);?>
 only.
              <?php }?>
            <?php } else { ?>

            
            <?php if ($_smarty_tpl->tpl_vars['say']->value == 'ec_forbidden' || $_smarty_tpl->tpl_vars['errors']->value['ec_forbidden']) {?>
              <div class="alert alert-warning">Withdraw for this processor is temporarily forbidden.</div>
            <?php }?>
            <?php if ($_smarty_tpl->tpl_vars['say']->value == 'on_hold' || $_smarty_tpl->tpl_vars['errors']->value['on_hold']) {?>
              <div class="alert alert-warning">This amount is currently on hold.</div>
            <?php }?>
            <?php if ($_smarty_tpl->tpl_vars['say']->value == 'zero' || $_smarty_tpl->tpl_vars['errors']->value['zero']) {?>
              <div class="alert alert-warning">Withdrawal amount must be greater than <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['currency_sign']->value);?>
0.00.</div>
            <?php }?>
            <?php if ($_smarty_tpl->tpl_vars['say']->value == 'less_min' || $_smarty_tpl->tpl_vars['errors']->value['less_min']) {?>
              <div class="alert alert-warning">Minimum withdrawal is <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['currency_sign']->value);
echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['fees']->value['amount_min']);?>
.</div>
            <?php }?>
            <?php if ($_smarty_tpl->tpl_vars['say']->value == 'greater_max' || $_smarty_tpl->tpl_vars['errors']->value['greater_max']) {?>
              <div class="alert alert-warning">Maximum withdrawal is <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['currency_sign']->value);
echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['fees']->value['amount_max']);?>
.</div>
            <?php }?>
            <?php if ($_smarty_tpl->tpl_vars['say']->value == 'daily_limit' || $_smarty_tpl->tpl_vars['errors']->value['daily_limit']) {?>
              <div class="alert alert-warning">You have exceeded your daily withdrawal limit.</div>
            <?php }?>
            <?php if ($_smarty_tpl->tpl_vars['say']->value == 'not_enought' || $_smarty_tpl->tpl_vars['errors']->value['not_enought']) {?>
              <div class="alert alert-warning">Requested amount exceeds your available balance.</div>
            <?php }?>
            <?php if ($_smarty_tpl->tpl_vars['say']->value == 'invalid_transaction_code' || $_smarty_tpl->tpl_vars['errors']->value['invalid_transaction_code']) {?>
              <div class="alert alert-danger">Invalid transaction code.</div>
            <?php }?>
            <?php if ($_smarty_tpl->tpl_vars['say']->value == 'invalid_tfa_code' || $_smarty_tpl->tpl_vars['errors']->value['invalid_tfa_code']) {?>
              <div class="alert alert-danger">Invalid 2FA code.</div>
            <?php }?>
            <?php if ($_smarty_tpl->tpl_vars['say']->value == 'no_deposits' || $_smarty_tpl->tpl_vars['errors']->value['no_deposits']) {?>
              <div class="alert alert-warning">Withdrawal is only available after making a deposit.</div>
            <?php }?>
            <?php if ($_smarty_tpl->tpl_vars['say']->value == 'no_active_deposits' || $_smarty_tpl->tpl_vars['errors']->value['no_active_deposits']) {?>
              <div class="alert alert-warning">You must have an active deposit to withdraw.</div>
            <?php }?>
            <?php if ($_smarty_tpl->tpl_vars['errors']->value['turing_image']) {?>
              <div class="alert alert-danger">Invalid CAPTCHA.</div>
            <?php }?>

            
            <?php if ($_smarty_tpl->tpl_vars['preview']->value) {?>

              <form method="post">
                <input type="hidden" name="a" value="withdraw">
                <input type="hidden" name="action" value="withdraw">
                <input type="hidden" name="amount" value="<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['amount']->value);?>
">
                <input type="hidden" name="ec" value="<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['ec']->value);?>
">
                <input type="hidden" name="comment" value="<?php echo smarty_modifier_myescape(htmlspecialchars($_smarty_tpl->tpl_vars['comment']->value, ENT_QUOTES, 'UTF-8', true));?>
">

                <table class="table table-sm">
                  <tr><th>Payment System:</th><td><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['currency']->value);?>
</td></tr>
                  <tr><th>Account:</th><td><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['account']->value);?>
</td></tr>
                  <tr><th>Debit Amount:</th><td><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['currency_sign']->value);
echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['amount']->value);?>
</td></tr>
                  <tr>
                    <th>Withdrawal Fee:</th>
                    <td>
                      <?php if ($_smarty_tpl->tpl_vars['fees']->value['fee'] > 0) {?>
                        <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['fees']->value['percent']);?>
% + <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['currency_sign']->value);
echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['fees']->value['add_amount']);?>

                        (min. <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['currency_sign']->value);
echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['fees']->value['fee_min']);?>
, max. 
                        <?php if ($_smarty_tpl->tpl_vars['fees']->value['fee_max']) {
echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['currency_sign']->value);
echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['fees']->value['fee_max']);
} else { ?>no<?php }?>)
                      <?php } else { ?>
                        No fee
                      <?php }?>
                    </td>
                  </tr>

                  <?php if ($_smarty_tpl->tpl_vars['converted']->value) {?>
                  <tr><th>Credit Amount:</th><td><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['currency_sign']->value);
echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['converted']->value['amount']);?>
</td></tr>
                  <tr><th><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['converted']->value['fiat']);?>
 Amount:</th><td><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['to_withdraw']->value);?>
</td></tr>
                  <?php } else { ?>
                  <tr><th>Credit Amount:</th><td><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['currency_sign']->value);
echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['to_withdraw']->value);?>
</td></tr>
                  <?php }?>

                  <?php if ($_smarty_tpl->tpl_vars['comment']->value) {?>
                  <tr><th>Note:</th><td><?php echo smarty_modifier_myescape(htmlspecialchars($_smarty_tpl->tpl_vars['comment']->value, ENT_QUOTES, 'UTF-8', true));?>
</td></tr>
                  <?php }?>

                  <?php if ($_smarty_tpl->tpl_vars['settings']->value['use_transaction_code'] && $_smarty_tpl->tpl_vars['userinfo']->value['transaction_code']) {?>
                  <tr>
                    <th>Transaction Code:</th>
                    <td><input type="password" name="transaction_code" class="form-control form-control-sm" size="15"></td>
                  </tr>
                  <?php }?>

                  <?php if ($_smarty_tpl->tpl_vars['userinfo']->value['tfa_settings']['withdraw']) {?>
                  <tr>
                    <th>2FA Code:</th>
                    <td>
                      <input type="text" name="tfa_code" class="form-control form-control-sm" size="15">
                      <input type="hidden" name="tfa_time" id="tfa_time">
                    </td>
                  </tr>
                  
                  <?php echo '<script'; ?>
>
                    document.getElementById('tfa_time').value = (new Date()).getTime();
                  <?php echo '</script'; ?>
>
                  
                  <?php }?>

                  <tr>
                    <td colspan="2">
                      <input type="submit" value="Confirm" class="btn btn-sm btn-primary">
                    </td>
                  </tr>
                </table>
              </form>

            
            <?php } else { ?>
              <form method="post">
                <input type="hidden" name="a" value="withdraw">
                <input type="hidden" name="action" value="preview">
                <input type="hidden" name="say" value="">

                <table class="table table-sm">
                  <tr>
                    <td>Account Balance:</td>
                    <td><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['currency_sign']->value);?>
<b><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['ab_formated']->value['total']);?>
</b></td>
                  </tr>
                  <tr>
                    <td>Pending Withdrawals:</td>
                    <td><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['currency_sign']->value);?>
<b><?php if ($_smarty_tpl->tpl_vars['ab_formated']->value['withdraw_pending'] != 0) {
echo smarty_modifier_myescape(amount_smarty_format($_smarty_tpl->tpl_vars['ab_formated']->value['withdraw_pending']));
} else { ?>0.00<?php }?></b></td>
                  </tr>
                </table>

                <table class="table table-sm">
                  <tr>
                    <th></th>
                    <th>Processing</th>
                    <th>Available</th>
                    <th>Pending</th>
                    <th>Account</th>
                  </tr>
                  <?php
$_from = $_smarty_tpl->tpl_vars['ps']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$_smarty_tpl->tpl_vars['p'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['p']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['p']->value) {
$_smarty_tpl->tpl_vars['p']->_loop = true;
$foreach_p_Sav = $_smarty_tpl->tpl_vars['p'];
?>
                  <tr>
                    <td>
                      <?php if ($_smarty_tpl->tpl_vars['p']->value['available'] > 0 && ($_smarty_tpl->tpl_vars['p']->value['status'] > 0 || $_smarty_tpl->tpl_vars['p']->value['available'] > 0)) {?>
                        <input type="radio" name="ec" value="<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['p']->value['id']);?>
" <?php if ($_smarty_tpl->tpl_vars['frm']->value['ec'] == $_smarty_tpl->tpl_vars['p']->value['id']) {?>checked<?php }?>>
                      <?php }?>
                    </td>
                    <td><img src="images/<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['p']->value['id']);?>
.gif" width="44" height="17" class="align-middle"> <?php echo smarty_modifier_myescape(htmlspecialchars($_smarty_tpl->tpl_vars['p']->value['name'], ENT_QUOTES, 'UTF-8', true));?>
</td>
                    <td><b class="text-success"><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['currency_sign']->value);
echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['p']->value['available']);?>
</b></td>
                    <td><b class="text-danger"><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['currency_sign']->value);
echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['p']->value['pending']);?>
</b></td>
                    <td>
                      <?php if ($_smarty_tpl->tpl_vars['p']->value['account'] != '') {?>
                        <?php echo smarty_modifier_myescape(htmlspecialchars($_smarty_tpl->tpl_vars['p']->value['account'], ENT_QUOTES, 'UTF-8', true));?>

                      <?php } else { ?>
                        <a href="<?php echo smarty_modifier_myescape(encurl("?a=edit_account"));?>
"><i>not set</i></a>
                      <?php }?>
                    </td>
                  </tr>
                  <?php
$_smarty_tpl->tpl_vars['p'] = $foreach_p_Sav;
}
?>
                </table>

                <?php if ($_smarty_tpl->tpl_vars['have_available']->value) {?>
                <table class="table table-sm w-50">
                  <tr>
                    <td>Withdrawal (<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['currency_sign']->value);?>
):</td>
                    <td><input type="text" name="amount" value="<?php echo smarty_modifier_myescape((($tmp = @amount_smarty_format($_smarty_tpl->tpl_vars['frm']->value['amount']))===null||$tmp==='' ? "10.00" : $tmp));?>
" class="form-control form-control-sm"></td>
                  </tr>
                  <tr>
                    <td colspan="2">
                      <textarea name="comment" class="form-control form-control-sm" rows="4">Your comment</textarea>
                    </td>
                  </tr>

                  <?php if ($_smarty_tpl->tpl_vars['ti']->value['check']['withdrawal']) {?>
                  <tr>
                    <td><img src="<?php echo smarty_modifier_myescape(encurl("?a=show_validation_image&".((string)$_smarty_tpl->tpl_vars['ti']->value['session']['name'])."=".((string)$_smarty_tpl->tpl_vars['ti']->value['session']['id'])."&rand=".((string)$_smarty_tpl->tpl_vars['ti']->value['session']['rand'])));?>
"></td>
                    <td><input type="text" name="validation_number" class="form-control form-control-sm" size="15"></td>
                  </tr>
                  <?php }?>

                  <tr>
                    <td colspan="2"><input type="submit" value="Request" class="btn btn-sm btn-primary"></td>
                  </tr>
                </table>
                <?php } else { ?>
                  <br><br><div class="alert alert-info">You have no funds to withdraw.</div>
                <?php }?>
              </form>
            <?php }?>
            <?php }?>

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

<?php echo $_smarty_tpl->getSubTemplate ("footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0);
?>

<?php }
}
?>