<?php /* Smarty version 3.1.27, created on 2025-01-22 08:24:47
         compiled from "/home/greenfie/user.future-trade.ltd/tmpl/deposit.other.confirm.tpl" */ ?>
<?php
/*%%SmartyHeaderCode:4264301566790ab4f0562c7_96189925%%*/
if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '30c08b977db76e5228140e0926b7c3dfc50ab281' => 
    array (
      0 => '/home/greenfie/user.future-trade.ltd/tmpl/deposit.other.confirm.tpl',
      1 => 1733310873,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '4264301566790ab4f0562c7_96189925',
  'variables' => 
  array (
    'ok' => 0,
    'currency_sign' => 0,
    'deposit' => 0,
    'description' => 0,
    't' => 0,
    'type' => 0,
    'h_id' => 0,
    'compounding' => 0,
    'famount' => 0,
    'fields' => 0,
    'max_deposit_less' => 0,
    'max_deposit_format' => 0,
    'wrong_paln' => 0,
    'not_enough_funds' => 0,
    'less_than_min' => 0,
    'plan_name' => 0,
    'min_amount' => 0,
    'zero_amount' => 0,
    'settings' => 0,
  ),
  'has_nocache_code' => false,
  'version' => '3.1.27',
  'unifunc' => 'content_6790ab4f0917c6_74637058',
),false);
/*/%%SmartyHeaderCode%%*/
if ($_valid && !is_callable('content_6790ab4f0917c6_74637058')) {
function content_6790ab4f0917c6_74637058 ($_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'] = '4264301566790ab4f0562c7_96189925';
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>
				.theme-cyan .checkbox input[type="checkbox"]:checked + label::after {
					border-color: #fff;
					background: #f6b827;
					color: #000;
				}
				</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">Confirm Deposit</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['ok']->value == 1) {?>
                <br> <br>
				<div class="row clearfix">
					<div class="col-xl-4 col-lg-12 col-md-12">
                    	<div class="card">
                            <div class="header">
                                <h2> Confirm <strong> Deposit</strong></h2>
                            </div>
                            <div class="body text-center">
                                <?php echo '<script'; ?>
 src="web/js/calc/jquery.min.js" type="text/javascript"><?php echo '</script'; ?>
>
                                
                                <div>
										<h6>You are to make payment of
                                            <strong style="color:#f6b827;"><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['currency_sign']->value);
echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['deposit']->value['amount']);?>
</strong> using your selected payment method</strong>.
                                        </h6>
                                        
                                        
                                        
                                        
                                        
                                        
                                        
										<div class="mt-5">
										<div class="mb-3 form-group">
										    <label> Wallet Address</label>
											<div class="input-group">
												<input type="text" class="form-control readonly " value="<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['description']->value);?>
" id="wallet" readonly>
											</div>
										</div>
									</div>
                        
                                <button type="button" id="copyWalletBtn" class="btn btn-warning btn-round btn-lg">Copy Wallet</button>
                            </div>
                        </div>
                    </div>
                    
					<div class="col-xl-8 col-lg-12 col-md-12">
						<div class="card">
                            <div class="body">
                                <table cellspacing=0 cellpadding=2 class="form deposit_confirm">
                                <?php if ($_smarty_tpl->tpl_vars['deposit']->value['id'] > 0) {?>
                                <tr>
                                 <th>Plan:</th>
                                 <td><?php echo smarty_modifier_myescape(htmlspecialchars($_smarty_tpl->tpl_vars['deposit']->value['name'], ENT_QUOTES, 'UTF-8', true));?>
</td>
                                </tr>
                                <tr>
                                 <th>Profit:</th>
                                 <td><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['deposit']->value['percent']);?>
% <?php if ($_smarty_tpl->tpl_vars['deposit']->value['period'] == 'end' || $_smarty_tpl->tpl_vars['deposit']->value['period'] == 'endh') {?>after <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['deposit']->value['periods']);?>
 <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['deposit']->value['time_units']);
if ($_smarty_tpl->tpl_vars['deposit']->value['periods'] != 1) {?>s<?php }
} else {
echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['deposit']->value['period_name']);?>
 for <?php if ($_smarty_tpl->tpl_vars['deposit']->value['periods'] == 0) {?>lifelong<?php } else {
echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['deposit']->value['periods']);?>
 <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['deposit']->value['time_units']);
if ($_smarty_tpl->tpl_vars['deposit']->value['periods'] != 1) {?>s<?php }?> <?php if ($_smarty_tpl->tpl_vars['deposit']->value['work_week']) {?>(mon-fri)<?php }
}
}?></td>
                                </tr>
                                <tr>
                                 <th>Principal Return:</th>
                                 <td><?php if ($_smarty_tpl->tpl_vars['deposit']->value['principal_return']) {?>Yes<?php if ($_smarty_tpl->tpl_vars['deposit']->value['principal_return_hold_percent'] > 0) {?>, with <?php echo smarty_modifier_myescape(number_format($_smarty_tpl->tpl_vars['deposit']->value['principal_return_hold_percent'],2));?>
% fee<?php }
} else { ?>No (included in profit)<?php }?></td>
                                </tr>
                                <tr>
                                 <th>Principal Withdraw:</th>
                                 <td>
                                <?php if ($_smarty_tpl->tpl_vars['deposit']->value['principal_withdraw']) {?>Available with 
                                <?php
$_from = $_smarty_tpl->tpl_vars['deposit']->value['principal_withdraw_terms'];
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$_smarty_tpl->tpl_vars['t'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['t']->_loop = false;
$_smarty_tpl->tpl_vars['__foreach_wpt'] = new Smarty_Variable(array('total' => $_smarty_tpl->_count($_from), 'iteration' => 0));
foreach ($_from as $_smarty_tpl->tpl_vars['t']->value) {
$_smarty_tpl->tpl_vars['t']->_loop = true;
$_smarty_tpl->tpl_vars['__foreach_wpt']->value['iteration']++;
$_smarty_tpl->tpl_vars['__foreach_wpt']->value['last'] = $_smarty_tpl->tpl_vars['__foreach_wpt']->value['iteration'] == $_smarty_tpl->tpl_vars['__foreach_wpt']->value['total'];
$foreach_t_Sav = $_smarty_tpl->tpl_vars['t'];
?>
                                <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['t']->value['percent']);?>
% fee <?php if ($_smarty_tpl->tpl_vars['t']->value['duration'] > 0) {?>after <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['t']->value['duration']);?>
 days<?php }
if (!(isset($_smarty_tpl->tpl_vars['__foreach_wpt']->value['last']) ? $_smarty_tpl->tpl_vars['__foreach_wpt']->value['last'] : null)) {?> or <?php }?>
                                <?php
$_smarty_tpl->tpl_vars['t'] = $foreach_t_Sav;
}
?>
                                <?php if ($_smarty_tpl->tpl_vars['deposit']->value['principal_withdraw_duration_max']) {?> but before <?php echo smarty_modifier_myescape(number_format($_smarty_tpl->tpl_vars['deposit']->value['principal_withdraw_duration_max']));?>
 days<?php }?>
                                <?php } else { ?>Not available<?php }?>
                                 </td>
                                </tr>
                                <?php if ($_smarty_tpl->tpl_vars['deposit']->value['use_compound'] == 1) {?>
                                <tr>
                                 <th>Compound:</th>
                                 <td><?php echo smarty_modifier_myescape(number_format($_smarty_tpl->tpl_vars['deposit']->value['compound']));?>
%</td>
                                </tr>
                                <?php }?>
                                <?php }?> 
                                <?php if ($_smarty_tpl->tpl_vars['deposit']->value['ec_fees']['fee']) {?>
                                <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['deposit']->value['user_amount']);?>
</td>
                                </tr>
                                <tr>
                                 <th>Deposit Fee:</th>
                                 <td><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['deposit']->value['ec_fees']['percent']);?>
% + <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['currency_sign']->value);
echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['deposit']->value['ec_fees']['add_amount']);?>
 (min. <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['currency_sign']->value);
echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['deposit']->value['ec_fees']['fee_min']);?>
 max. <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['currency_sign']->value);
echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['deposit']->value['ec_fees']['fee_max']);?>
)</td>
                                </tr>
                                <?php }?>
                                <?php if ($_smarty_tpl->tpl_vars['deposit']->value['converted_amount']) {?>
                                <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['deposit']->value['converted_amount']);?>
</td>
                                </tr>
                                <tr>
                                 <th><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['deposit']->value['converted_fiat']);?>
 Debit Amount:</th>
                                 <td><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['deposit']->value['amount']);?>
</td>
                                </tr>
                                <?php } else { ?>
                                <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['deposit']->value['amount']);?>
</td>
                                </tr>
                                <?php }?>
                                </table>
                                <br><br>
                                <form name=spend method=post>
                                <input type=hidden name=a value=deposit>
                                <input type=hidden name=action value=confirm>
                                <input type=hidden name=type value=<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['type']->value);?>
>
                                <input type=hidden name=h_id value=<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['h_id']->value);?>
>
                                <input type=hidden name=compound value=<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['compounding']->value);?>
>
                                <INPUT type=hidden name=amount value="<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['famount']->value);?>
">
                                <?php if ($_smarty_tpl->tpl_vars['fields']->value) {?>
                                <table cellspacing=0 cellpadding=2 border=0>
                                <tr>
                                 <td colspan=2><b>Required Information:</b></td>
                                </tr>
                                <?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['f'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['f']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['f']['name'] = 'f';
$_smarty_tpl->tpl_vars['smarty']->value['section']['f']['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['fields']->value) ? count($_loop) : max(0, (int) $_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['f']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['f']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['f']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['f']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['f']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['f']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['f']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['f']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['f']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['f']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['f']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['f']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['f']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['f']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['f']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['f']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['f']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['f']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['f']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['f']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['f']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['f']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['f']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['f']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['f']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['f']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['f']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['f']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['f']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['f']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['f']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['f']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['f']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['f']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['f']['total']);
?>
                                <tr>
                               
                                 <td><input type="text" name="fields[<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['fields']->value[$_smarty_tpl->getVariable('smarty')->value['section']['f']['index']]['id']);?>
]" value="" class="calculate-amount form-control" placeholder="<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['fields']->value[$_smarty_tpl->getVariable('smarty')->value['section']['f']['index']]['name']);?>
"></td>
                                </tr>
                                <?php endfor; endif; ?>
                                </table>
                                <?php }?>
                                <br><input type=submit value="Save" class=sbmt> &nbsp;
                                <input type=button class=sbmt value="Cancel" onclick="document.location='?a=deposit'">
                                </form>
                                <?php } else { ?>
                                <?php if ($_smarty_tpl->tpl_vars['max_deposit_less']->value == 1) {?>
                                    <div class="alert alert-danger">
                                        Sorry, the maximal deposit is <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['max_deposit_format']->value);?>
.
                                    </div>
                                <?php }?>
                                
                                <?php if ($_smarty_tpl->tpl_vars['wrong_paln']->value == 1) {?>
                                    <div class="alert alert-danger">
                                        The Plan does not exist.
                                    </div>
                                <?php }?>
                                
                                <?php if ($_smarty_tpl->tpl_vars['not_enough_funds']->value == 1) {?>
                                    <div class="alert alert-danger">
                                        You have not enough funds to complete the operation.
                                    </div>
                                <?php }?>
                                
                                <?php if ($_smarty_tpl->tpl_vars['less_than_min']->value == 1) {?>
                                    <div class="alert alert-danger">
                                        The minimal spend amount for '<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['plan_name']->value);?>
' is <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['currency_sign']->value);
echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['min_amount']->value);?>
.
                                    </div>
                                <?php }?>
                                
                                <?php if ($_smarty_tpl->tpl_vars['zero_amount']->value) {?>
                                    <div class="alert alert-danger">
                                        You should enter an amount greater than zero.
                                    </div>
                                <?php }?>
                                <br>
                                Click <a href="?a=deposit">Try again</a>
                                
                                
                                <?php }?>
                            </div>
						</div>
					</div>
				</div>
				<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 '<script'; ?>
>
            document.getElementById("copyWalletBtn").addEventListener("click", function() {
                // Get the wallet input field
                const walletInput = document.getElementById("wallet");
        
                // Select the text in the input field
                walletInput.select();
                walletInput.setSelectionRange(0, 99999); // For mobile devices
        
                // Copy the text inside the input field to the clipboard
                navigator.clipboard.writeText(walletInput.value).then(function() {
                    // Display a success message if desired
                    alert("Wallet address copied to clipboard!");
                }).catch(function(error) {
                    // Handle any errors
                    alert("Failed to copy wallet address.");
                    console.error("Copy error:", error);
                });
            });
        <?php echo '</script'; ?>
>
        
		
<?php echo $_smarty_tpl->getSubTemplate ("footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0);
?>



<?php }
}
?>