<?php /* Smarty version 3.1.27, created on 2025-01-21 15:26:27
         compiled from "/home/greenfie/user.future-trade.ltd/tmpl/withdrawal.tpl" */ ?>
<?php
/*%%SmartyHeaderCode:1287635369678fbca3af0804_55471895%%*/
if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '6bdab7a12058638ea8a04a9d5a1e91fffa37ae8d' => 
    array (
      0 => '/home/greenfie/user.future-trade.ltd/tmpl/withdrawal.tpl',
      1 => 1731707674,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1287635369678fbca3af0804_55471895',
  'variables' => 
  array (
    'say' => 0,
    'batch' => 0,
    'fatals' => 0,
    'fatal' => 0,
    'settings' => 0,
    'errors' => 0,
    'currency_sign' => 0,
    'fees' => 0,
    'amount' => 0,
    'ec' => 0,
    'comment' => 0,
    'ps' => 0,
    'p' => 0,
    'ab_formated' => 0,
    'frm' => 0,
    'wfch' => 0,
  ),
  'has_nocache_code' => false,
  'version' => '3.1.27',
  'unifunc' => 'content_678fbca3b1a3c8_97115590',
),false);
/*/%%SmartyHeaderCode%%*/
if ($_valid && !is_callable('content_678fbca3b1a3c8_97115590')) {
function content_678fbca3b1a3c8_97115590 ($_smarty_tpl) {
if (!is_callable('smarty_modifier_myescape')) require_once '/home/greenfie/user.future-trade.ltd/inc/libs/smarty3/plugins/modifier.myescape.php';

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

<section class="content">
	<div class="container">
		<section class="content">
			<div class="container">
				<style>
				.bootstrap-select:not([class*="col-"]):not([class*="form-control"]):not(.input-group-btn) {
					width: 100%;
				}
				</style>
				<div class="row clearfix">
					<div class="col-lg-12">
						<div class="card" style="margin-top: 30px">
							<div class="body block-header">
								<div class="row">
									<div class="col-lg-6 col-md-8 col-sm-12">
										<h2>Welcome, Kulbov</h2>
										<ul class="breadcrumb p-l-0 p-b-0 ">
											<li class="breadcrumb-item"><a href="/?a=account"><i class="fas fa-home"></i></a></li>
											<li class="breadcrumb-item"><a href="/?a=account">Dashboard</a></li>
											<li class="breadcrumb-item active">Withdraw funds</li>
										</ul>
									</div>
									<div class="col-lg-6 col-md-4 col-sm-12 text-right">
										<a href="/?a=deposit">
											<button class="btn btn-primary btn-round btn-simple float-right hidden-xs m-l-10 btn-warning waves-effect">Make an investment</button>
										</a>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
				
				<?php if ($_smarty_tpl->tpl_vars['say']->value == 'processed') {?>
<div class="alert alert-success"><?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="alert alert-danger">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="alert alert-danger">Sorry, withdraw for this processing is temproary forbidden.</div><?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['on_hold']) {?> <div class="alert alert-danger">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="alert alert-danger">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="alert alert-danger">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="alert alert-danger">Sorry, you have exceeded a daily limit</div><?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['not_enought']) {?> <div class="alert alert-danger">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="alert alert-danger">You have entered the invalid transaction code.</div><?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['invalid_tfa_code']) {?> <div class="alert alert-danger">You have entered invalid 2FA code.</div><?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['no_deposits']) {?> <div class="alert alert-danger">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="alert alert-danger">You must have active deposit to withdraw.</div><?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['no_account']) {?> <div class="alert alert-danger">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="alert alert-danger">Withdraw is not available for demo account.</div><?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['turing_image']) {?> <div class="alert alert-danger">Invalid turing image</div><?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['account_suspended']) {?> <div class="alert alert-danger">Account is suspended</div><?php }?>

                <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));?>
">
            
                <div class="row clearfix">
                    <div class="col-xl-4 col-lg-12 col-md-12">
                        <div class="card" style="background: #1f242a">
                            <div class="header">
                                <h2>Withdraw <strong>Funds</strong></h2>
                            </div>
                            <div class="body">
                                <h2 class="card-inside-title">Payment processor</h2>
                                <select name="ec" class="form-control">
                                    <?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'];
?>
                                        <option value="<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['p']->value['id']);?>
"><?php echo smarty_modifier_myescape(htmlspecialchars($_smarty_tpl->tpl_vars['p']->value['name'], ENT_QUOTES, 'UTF-8', true));?>
</option>
                                    <?php
$_smarty_tpl->tpl_vars['p'] = $foreach_p_Sav;
}
?>
                                </select>
                                <h2 class="card-inside-title">Withdrawal amount</h2>
                                <input type="text" name="amount" value="10.00" class="calculate-amount form-control" style="font-size: 14px;padding: 10px 22px; width: 100%">
                                <br>
                                <button class="btn btn-warning btn-round btn-lg">Withdraw funds</button>
                            </div>
                        </div>
                        
                        </form>
            
                        <div class="card">
                            <div class="header">
                                <h2><strong>Quick </strong> Info</h2>
                            </div>
                            <div class="body">
                                <table class="table table-hover m-b-0">
                                    <tbody>
                                        <tr>
                                            <td>Min withdrawal - Crypto</td>
                                            <th>$5</th>
                                        </tr>
                                        <tr>
                                            <td>Min withdrawal - USD</td>
                                            <th>$1</th>
                                        </tr>
                                        <tr class="hide-xs">
                                            <td>Withdrawal time</td>
                                            <th>Within 48 hours</th>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
            
                    <div class="col-xl-8 col-lg-12 col-md-12">
                        <div class="card">
                            <div class="header">
                                <h2><strong>Available</strong> Balance</h2>
                            </div>
                            <div class="body">
                                <div class="row">
                                    <div class="col-md-12">
                                        <h2 class="m-b-0"><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['currency_sign']->value);
echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['ab_formated']->value['total']);?>
</h2>
                                        <p>Account balance</p>
                                    </div>
                                </div>
                                <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="table-responsive">
                                    <table class="table table-hover m-b-0">
                                        <thead>
                                            <tr>
                                                <th></th>
                                                <th></th>
                                                <th>Processor</th>
                                                <th>Available</th>
                                                <th>Pending</th>
                                                <th>Wallet</th>
                                                <th></th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <?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'];
?>
                                                <tr>
                                                    <td><?php if ($_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'] || $_smarty_tpl->tpl_vars['wfch']->value) {
$_smarty_tpl->tpl_vars["wfch"] = new Smarty_Variable(0, null, 0);?>checked<?php }?>><?php }?></td>
                                                    <td style="max-width: 30px"><img src="images/<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['p']->value['id']);?>
.gif" style="width: 20px;min-width: 15px"></td>
                                                    <td><?php echo smarty_modifier_myescape(htmlspecialchars($_smarty_tpl->tpl_vars['p']->value['name'], ENT_QUOTES, 'UTF-8', true));?>
</td>
                                                    <td class="text-left"><span><?php echo smarty_modifier_myescape(amount_smarty_fiat($_smarty_tpl->tpl_vars['p']->value['available'],$_smarty_tpl->tpl_vars['p']->value['ec']));?>
</span></td>
                                                    <td><span><?php echo smarty_modifier_myescape(amount_smarty_fiat($_smarty_tpl->tpl_vars['p']->value['pending'],$_smarty_tpl->tpl_vars['p']->value['ec']));?>
</span></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>
                                                    <td style="width: 20px"></td>
                                                </tr>
                                            <?php
$_smarty_tpl->tpl_vars['p'] = $foreach_p_Sav;
}
?>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </form>
            <?php }?>
		<div class="row clearfix"></div>
		<div class="row clearfix">
			<div class="col-md-12 col-lg-12">
				<div class="card active-bg">
					<div class="body">
						<p class="copyright m-b-0 text-dark">Copyright 2024 <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['settings']->value['site_name']);?>
.</p>
					</div>
				</div>
			</div>
		</div>
	</div>
</section>
<?php echo $_smarty_tpl->getSubTemplate ("footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0);
?>

<?php }
}
?>