<?php /* Smarty version 3.1.27, created on 2025-07-03 17:47:05
         compiled from "/home/ewfdahxt/public_html/tmpl/withdrawal.tpl" */ ?>
<?php
/*%%SmartyHeaderCode:16885287276866c219bee3e7_37962844%%*/
if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '7fab933612178f355f103a4be4c6bc70410b9dbb' => 
    array (
      0 => '/home/ewfdahxt/public_html/tmpl/withdrawal.tpl',
      1 => 1749991331,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '16885287276866c219bee3e7_37962844',
  'variables' => 
  array (
    'say' => 0,
    'batch' => 0,
    'fatals' => 0,
    'fatal' => 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,
    'have_available' => 0,
    'frm' => 0,
    'ps' => 0,
    'p' => 0,
    'wfch' => 0,
  ),
  'has_nocache_code' => false,
  'version' => '3.1.27',
  'unifunc' => 'content_6866c219c48219_10936187',
),false);
/*/%%SmartyHeaderCode%%*/
if ($_valid && !is_callable('content_6866c219c48219_10936187')) {
function content_6866c219c48219_10936187 ($_smarty_tpl) {
if (!is_callable('smarty_modifier_myescape')) require_once '/home/ewfdahxt/public_html/inc/libs/smarty3/plugins/modifier.myescape.php';

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


<?php if ($_smarty_tpl->tpl_vars['say']->value == 'processed') {?>
<div class="suceess"><?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);
}?></div>
<?php }?>

<?php if ($_smarty_tpl->tpl_vars['fatals']->value) {?>
  <?php if ($_smarty_tpl->tpl_vars['fatal']->value == 'times_limit' || $_smarty_tpl->tpl_vars['fatals']->value['times_limit']) {?>
  <div class="error">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.</div>
  <?php }?>

<?php } else { ?>

<?php if ($_smarty_tpl->tpl_vars['errors']->value['ec_forbidden']) {?><div class="error">Sorry, withdraw for this processing is temproary forbidden.</div><?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['on_hold']) {?><div class="error">Sorry, this amount on hold now.</div><?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['zero']) {?>Sorry, you can't request a withdraw smaller than <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['currency_sign']->value);?>
0.00 only</div><?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['less_min']) {?><div class="error">Sorry, you can request not less than <?php echo smarty_modifier_myescape(amount_smarty_fiat($_smarty_tpl->tpl_vars['fees']->value['amount_min']));?>
</div><?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['greater_max']) {?><div class="error">Sorry, you can request not greater than <?php echo smarty_modifier_myescape(amount_smarty_fiat($_smarty_tpl->tpl_vars['fees']->value['amount_max']));?>
</div><?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['daily_limit']) {?><div class="error">Sorry, you have exceeded a daily limit</div><?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['not_enought']) {?><div class="error">Sorry, you have requested the amount larger than the one on your balance.</div><?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['invalid_transaction_code']) {?><div class="error">You have entered the invalid transaction code.</div><?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['invalid_tfa_code']) {?><div class="error">You have entered invalid 2FA code.</div><?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['no_deposits']) {?><div class="error">You have not done any deposits yet. Withdrawal function will be available after a deposit.</div><?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['no_active_deposits']) {?><div class="error">You must have active deposit to withdraw.</div><?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['no_account']) {?><div class="error">Please, provide your account to withdraw funds to first <a href="<?php echo smarty_modifier_myescape(encurl("?a=edit_account"));?>
">here</a>.</div><?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['demo']) {?><div class="error">Withdraw is not available for demo account.</div><?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['turing_image']) {?><div class="error">Invalid turing image</div><?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['account_suspended']) {?><div class="error">Account is suspended</div><?php }?>

<?php if ($_smarty_tpl->tpl_vars['preview']->value) {?>
	<!-- Hor-Content -->
			<div class="hor-content main-content">
				<div class="container">

					<!--Page header-->
					<div class="page-header">

						<div class="page-leftheader">
							<ol class="breadcrumb">
								<li class="breadcrumb-item"><a href="/"><i class="fe fe-home mr-2 fs-14"></i>Home</a>
								</li>
								<li class="breadcrumb-item active" aria-current="page"><a href="#">Pay Portal</a>
								</li>
							</ol>
						</div>

						<div class="page-rightheader">
							<div class="btn btn-list">
								<a href="./#packages" class="btn btn-info"><i class="fe fe-settings mr-1"></i> Invest</a>
								<a href="withdraw.php" class="btn btn-danger"><i class="fe fe-printer mr-1"></i> Withdraw </a>
							</div>
						</div>

					</div>
					<!--End Page header-->

					<!-- Row-1 -->
					<div class="row">

                        <div class="col-md-6 col-lg-6">
                            <div class="card overflow-hidden">
                                <div class="card-body">
<h5 class="card-title mb-3"><u>Payment Details:</u></h5>
<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 cellspacing=0 cellpadding=2 border=0 class="form deposit_confirm">
<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(amount_smarty_fiat($_smarty_tpl->tpl_vars['amount']->value,$_smarty_tpl->tpl_vars['ec']->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(amount_smarty_fiat($_smarty_tpl->tpl_vars['fees']->value['add_amount'],$_smarty_tpl->tpl_vars['ec']->value));?>
 (min. <?php echo smarty_modifier_myescape(amount_smarty_fiat($_smarty_tpl->tpl_vars['fees']->value['fee_min'],$_smarty_tpl->tpl_vars['ec']->value));?>
 max. <?php if ($_smarty_tpl->tpl_vars['fees']->value['fee_max']) {
echo smarty_modifier_myescape(amount_smarty_fiat($_smarty_tpl->tpl_vars['fees']->value['fee_max'],$_smarty_tpl->tpl_vars['ec']->value));
} else { ?>no<?php }?>)
<?php } else { ?>
We have no fee for this operation.
<?php }?>
</td>
</tr>

<?php if ($_smarty_tpl->tpl_vars['converted']->value) {?>
<tr>
 <th>Credit Amount:</th>
 <td><?php echo smarty_modifier_myescape(amount_smarty_fiat($_smarty_tpl->tpl_vars['converted']->value['amount'],$_smarty_tpl->tpl_vars['ec']->value));?>
</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(amount_smarty_fiat($_smarty_tpl->tpl_vars['to_withdraw']->value,$_smarty_tpl->tpl_vars['ec']->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=inpts size=15></td>
</tr>
<?php }?>
<?php echo $_smarty_tpl->getSubTemplate ("captcha.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('action'=>"withdrawal"), 0);
?>

<?php if ($_smarty_tpl->tpl_vars['userinfo']->value['tfa_settings']['withdraw']) {?>
<tr>
 <th>2FA Code:</th>
 <td><input type="text" name="tfa_code" class=inpts size=15> <input type="hidden" name="tfa_time" id="tfa_time"></td>
</tr>

<?php echo '<script'; ?>
 language=javascript>
document.getElementById('tfa_time').value = (new Date()).getTime();
<?php echo '</script'; ?>
>

<?php }?>
<tr>
 <td colspan=2><input type=submit value="Confirm" class="btn btn-primary"></td>
</tr></table></div>
                            </div>
                        </div>
                       
</form>
	</div>
					<!-- End Row-1 -->

				</div>
			</div>
			<!-- End hor-content-->
		</div>

<?php } else { ?>

	<!-- Hor-Content -->
			<div class="hor-content main-content">
				<div class="container">

					<!--Page header-->
					<div class="page-header">

						<div class="page-leftheader">
							<ol class="breadcrumb">
								<li class="breadcrumb-item"><a href="/"><i class="fe fe-home mr-2 fs-14"></i>Home</a>
								</li>
								<li class="breadcrumb-item active" aria-current="page"><a href="#">Withdraw Portal</a>
								</li>
							</ol>
						</div>

						<div class="page-rightheader">
							<div class="btn btn-list">
								<a href="?a=deposit" class="btn btn-info"><i class="fe fe-settings mr-1"></i> Invest</a>
								<a href="?a=withdraw" class="btn btn-danger"><i class="fe fe-printer mr-1"></i> Withdraw </a>
							</div>
						</div>

					</div>
					<!--End Page header-->
<?php if ($_smarty_tpl->tpl_vars['have_available']->value) {?>
					<!-- Row-1 -->
					<div class="row">


                        <div class="col-md-6 col-lg-4">
                            <div class="card overflow-hidden">
                                <div class="card-body">
<h5 class="card-title mb-3"><u>Withdrawal Details:</u></h5>
<p class="class-text"><b>Step 1:</b> <br> Enter the withdrawal amount</p>
<p class="class-text"><b>Step 2:</b> <br> Click the confirm withdraw button to proceed</p>
                                </div>
                            </div>
                        </div>

                        <div class="col-md-6 col-lg-8">
                            <div class="card overflow-hidden">
<div class="card-body">
<h5 class="card-title mb-3">wallet address</h5>
<form method=post>
<input type=hidden name=a value=withdraw>
<input type=hidden name=action value=preview>
<input type=hidden name=say value="">
<div class="row">
<div class="col-lg">
<input class="form-control" placeholder="Enter amount" 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));?>
">
<br>
<?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'];
?>
<p><?php echo smarty_modifier_myescape(htmlspecialchars($_smarty_tpl->tpl_vars['p']->value['name'], ENT_QUOTES, 'UTF-8', true));?>
 - <?php if ($_smarty_tpl->tpl_vars['p']->value['account'] != '') {
echo smarty_modifier_myescape(htmlspecialchars($_smarty_tpl->tpl_vars['p']->value['account'], ENT_QUOTES, 'UTF-8', true));
} else { ?><a href="<?php echo smarty_modifier_myescape(encurl("?a=edit_account"));?>
"><i>not set</i></a><?php }?></p>
<?php
$_smarty_tpl->tpl_vars['p'] = $foreach_p_Sav;
}
?>
<br>
<select class="form-control" name="ec">
<?php $_smarty_tpl->tpl_vars["wfch"] = new Smarty_Variable(1, null, 0);?>
<?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'];
?>
<?php if ($_smarty_tpl->tpl_vars['p']->value['available'] > 0) {?><option 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'] || $_smarty_tpl->tpl_vars['wfch']->value) {
$_smarty_tpl->tpl_vars["wfch"] = new Smarty_Variable(0, null, 0);?>checked<?php }?>>
<?php echo smarty_modifier_myescape(htmlspecialchars($_smarty_tpl->tpl_vars['p']->value['name'], ENT_QUOTES, 'UTF-8', true));?>
 - <?php echo smarty_modifier_myescape(amount_smarty_fiat($_smarty_tpl->tpl_vars['p']->value['available'],$_smarty_tpl->tpl_vars['p']->value['ec']));?>
 &nbsp; (<?php if ($_smarty_tpl->tpl_vars['p']->value['account'] != '') {
echo smarty_modifier_myescape(htmlspecialchars($_smarty_tpl->tpl_vars['p']->value['account'], ENT_QUOTES, 'UTF-8', true));
} else { ?><a href="<?php echo smarty_modifier_myescape(encurl("?a=edit_account"));?>
"><i>not set</i></a><?php }?>)
</option><?php }?>
<?php
$_smarty_tpl->tpl_vars['p'] = $foreach_p_Sav;
}
?>
</select>
<br>
<button type="submit" class="btn btn-primary">Confirm Withdraw</button>
</div>
</div>
<?php } else { ?>
<br><br>
You have no funds to withdraw.
<?php }?>
</form>
 </div>

                            </div>
                        </div>

					</div>
					<!-- End Row-1 -->

				</div>
			</div>
			<!-- End hor-content-->
		</div>
<?php }?>

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

<?php }
}
?>