<?php /* Smarty version 3.1.27, created on 2025-01-22 08:24:21
         compiled from "/home/greenfie/user.future-trade.ltd/tmpl/deposit.tpl" */ ?>
<?php
/*%%SmartyHeaderCode:19375559326790ab35973c46_30433635%%*/
if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '005624dbf27b046f17e22bc05467f280bd613fde' => 
    array (
      0 => '/home/greenfie/user.future-trade.ltd/tmpl/deposit.tpl',
      1 => 1731707674,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '19375559326790ab35973c46_30433635',
  'variables' => 
  array (
    'fatal' => 0,
    'qplans' => 0,
    'frm' => 0,
    'errors' => 0,
    'currency_sign' => 0,
    'plans' => 0,
    'plan' => 0,
    'dps' => 0,
    'p' => 0,
    'min_deposit' => 0,
    'userinfo' => 0,
    'o' => 0,
    'settings' => 0,
  ),
  'has_nocache_code' => false,
  'version' => '3.1.27',
  'unifunc' => 'content_6790ab359a1b60_22906194',
),false);
/*/%%SmartyHeaderCode%%*/
if ($_valid && !is_callable('content_6790ab359a1b60_22906194')) {
function content_6790ab359a1b60_22906194 ($_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'] = '19375559326790ab35973c46_30433635';
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">Make an Investment</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['fatal']->value) {?>
                <?php if ($_smarty_tpl->tpl_vars['fatal']->value == 'one_per_month') {?>
                You can deposit once a month only.
                <?php }?>
                
                <?php } else { ?>
                
                
                <?php echo '<script'; ?>
 src="https://code.jquery.com/jquery-3.6.0.min.js"><?php echo '</script'; ?>
>
                <?php echo '<script'; ?>
 src="https://cdn.jsdelivr.net/npm/sweetalert2@11"><?php echo '</script'; ?>
>
                <?php echo '<script'; ?>
 language="javascript"><!--
                function openCalculator(id)
                {
                
                  w = 225; h = 400;
                  t = (screen.height-h-30)/2;
                  l = (screen.width-w-30)/2;
                  window.open('?a=calendar&type=' + id, 'calculator' + id, "top="+t+",left="+l+",width="+w+",height="+h+",resizable=1,scrollbars=0");
                
                
                  <?php if ($_smarty_tpl->tpl_vars['qplans']->value > 1) {?>
                
                  for (i = 0; i < document.spendform.h_id.length; i++)
                  {
                    if (document.spendform.h_id[i].value == id)
                    {
                      document.spendform.h_id[i].checked = true;
                    }
                  }
                
                  <?php }?>
                
                
                }
                
                function updateCompound() {
                  var id = 0;
                  var tt = document.spendform.h_id.type;
                  if (tt && tt.toLowerCase() == 'hidden') {
                    id = document.spendform.h_id.value;
                  } else {
                    for (i = 0; i < document.spendform.h_id.length; i++) {
                      if (document.spendform.h_id[i].checked) {
                        id = document.spendform.h_id[i].value;
                      }
                    }
                  }
                
                  var cpObj = document.getElementById('compound_percents');
                  if (cpObj) {
                    while (cpObj.options.length != 0) {
                      cpObj.options[0] = null;
                    }
                  }
                
                  if (cps[id] && cps[id].length > 0) {
                    document.getElementById('coumpond_block').style.display = '';
                
                    for (i in cps[id]) {
                      cpObj.options[cpObj.options.length] = new Option(cps[id][i]);
                    }
                  } else {
                    document.getElementById('coumpond_block').style.display = 'none';
                  }
                }
                var cps = {};
                --><?php echo '</script'; ?>
>
                
                
                <?php if ($_smarty_tpl->tpl_vars['frm']->value['say'] == 'deposit_success') {?>
                
                <?php echo '<script'; ?>
 src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"><?php echo '</script'; ?>
>
                    <?php echo '<script'; ?>
>
                    swal({
                      title: "Success!",
                      text: "Your deposit has been successfully saved.",
                      icon: "success",
                    });
                        <?php echo '</script'; ?>
>
                        
                <div class="alert alert-success">Your deposit has been successfully saved.</div><br><br>
                <br><br>
                <?php }?>
                            
                <?php if ($_smarty_tpl->tpl_vars['frm']->value['say'] == 'deposit_saved') {?>
                
                <?php echo '<script'; ?>
 src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"><?php echo '</script'; ?>
>
                    <?php echo '<script'; ?>
>
                    swal({
                      title: "Success!",
                      text: "Your deposit has been saved. It will become active after the blockchain confirmation is complete.",
                      icon: "success",
                    });
                        <?php echo '</script'; ?>
>
                        
                <div class="alert alert-success">Your deposit has been saved. It will become active after the blockchain confirmation is complete.</div><br><br>
                <?php }?>

                <?php if ($_smarty_tpl->tpl_vars['errors']->value) {?>
                    <?php if ($_smarty_tpl->tpl_vars['errors']->value['less_min']) {?>
                        <div class="alert alert-danger">
                            Sorry, you can deposit not less than <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['currency_sign']->value);
echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['errors']->value['less_min']);?>
 with selected processing.
                        </div>
                    <?php }?>
                    
                    <?php if ($_smarty_tpl->tpl_vars['errors']->value['greater_max']) {?>
                        <div class="alert alert-danger">
                            Sorry, you can deposit not greater than <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['currency_sign']->value);
echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['errors']->value['greater_max']);?>
 with selected processing.
                        </div>
                    <?php }?>
                    
                    <?php if ($_smarty_tpl->tpl_vars['errors']->value['ec_forbidden']) {?>
                        <div class="alert alert-danger">
                            Sorry, deposit with selected processing is temporary forbidden.
                        </div>
                    <?php }?>
                <?php }?>

                
                <br> <br>
                <form method=post name="spendform">
                <input type=hidden name=a value=deposit>
                <?php if ($_smarty_tpl->tpl_vars['qplans']->value > 1) {
}?>
				<div class="row clearfix">
					<div class="col-xl-4 col-lg-12 col-md-12">
                    	<div class="card">
                            <div class="header">
                                <h2>Make an <strong>Investment</strong></h2>
                            </div>
                            <div class="body">
                                <?php echo '<script'; ?>
 src="web/js/calc/jquery.min.js" type="text/javascript"><?php echo '</script'; ?>
>
                        
                                <!-- Investment Plan Selection -->
                                <h2 class="card-inside-title">Investment Plan</h2>
                                <select name="h_id" id="plancalc" class="calculate-select form-control">
                                    <?php
$_from = $_smarty_tpl->tpl_vars['plans']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$_smarty_tpl->tpl_vars['plan'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['plan']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['plan']->value) {
$_smarty_tpl->tpl_vars['plan']->_loop = true;
$foreach_plan_Sav = $_smarty_tpl->tpl_vars['plan'];
?>
                                        <option value="<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['plan']->value['id']);?>
" <?php if ($_smarty_tpl->tpl_vars['plan']->value['id'] == $_smarty_tpl->tpl_vars['frm']->value['h_id']) {?>selected<?php }?>><?php echo smarty_modifier_myescape(htmlspecialchars($_smarty_tpl->tpl_vars['plan']->value['name'], ENT_QUOTES, 'UTF-8', true));?>
</option>
                                    <?php
$_smarty_tpl->tpl_vars['plan'] = $foreach_plan_Sav;
}
?>
                                </select>
                        
                                <!-- Payment Processor Selection -->
                                <h2 class="card-inside-title">Payment Processor</h2>
                                <select name="type" id="type" class="calculate-select form-control">
                                    <?php
$_from = $_smarty_tpl->tpl_vars['dps']->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="process_<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['p']->value['id']);?>
" <?php if ($_smarty_tpl->tpl_vars['frm']->value['type'] == "process_".((string)$_smarty_tpl->tpl_vars['p']->value['id'])) {?>selected<?php }?>>
                                            Deposit from <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['p']->value['name']);?>

                                        </option>
                                    <?php
$_smarty_tpl->tpl_vars['p'] = $foreach_p_Sav;
}
?>
                                </select>
                        
                                <!-- Deposit Amount -->
                                <h2 class="card-inside-title">Deposit Amount (<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['currency_sign']->value);?>
)</h2>
                                <input type="text" value="<?php echo smarty_modifier_myescape(amount_smarty_format((($tmp = @$_smarty_tpl->tpl_vars['frm']->value['amount'])===null||$tmp==='' ? $_smarty_tpl->tpl_vars['min_deposit']->value : $tmp)));?>
" class="calculate-amount form-control" 
                                       name="amount" style="font-size: 14px; padding: 10px 22px; text-align: right;">
                        
                                <!-- Submit Button -->
                                <br>
                                <button type="button" id="submitInvestmentButton" class="btn btn-warning btn-round btn-lg">Make Deposit</button>
                            </div>
                        </div>
                        
                        
                    	</form>
                        
                        <?php echo '<script'; ?>
>
                            document.getElementById("submitInvestmentButton").addEventListener("click", function() {
                                // Show SweetAlert confirmation dialog
                                Swal.fire({
                                    title: 'Confirm Investment',
                                    text: 'Are you sure you want to make this deposit?',
                                    icon: 'question',
                                    showCancelButton: true,
                                    confirmButtonText: 'Yes, proceed',
                                    cancelButtonText: 'Cancel',
                                    confirmButtonColor: '#28a745',
                                    cancelButtonColor: '#d33'
                                }).then((result) => {
                                    if (result.isConfirmed) {
                                        // Submit the form only if confirmed
                                        document.forms[0].submit();
                                    }
                                });
                            });
                        <?php echo '</script'; ?>
>
                        <?php echo '<script'; ?>
 language=javascript>
                        /*
                        for (i = 0; i<document.spendform.type.length; i++) {
                          if ((document.spendform.type[i].value.match(/^process_/))) {
                            document.spendform.type[i].checked = true;
                            break;
                          }
                        }
                        */
                        updateCompound();
                        <?php echo '</script'; ?>
>
                        
                        
                        <?php }?>
                                                <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(amount_smarty_format($_smarty_tpl->tpl_vars['userinfo']->value['balance_totals']['balance']));?>
</h2>
                                        <p>Account balance</p>
                                    </div>
                                </div>
                            </div>
                        </div>
                    
                    </div>
                    
					<div class="col-xl-8 col-lg-12 col-md-12">
						<div class="card">
                            <div class="body">
                                <?php
$_from = $_smarty_tpl->tpl_vars['plans']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$_smarty_tpl->tpl_vars['plan'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['plan']->_loop = false;
$_smarty_tpl->tpl_vars['__foreach_fplans'] = new Smarty_Variable(array('total' => $_smarty_tpl->_count($_from), 'index' => -1));
foreach ($_from as $_smarty_tpl->tpl_vars['plan']->value) {
$_smarty_tpl->tpl_vars['plan']->_loop = true;
$_smarty_tpl->tpl_vars['__foreach_fplans']->value['index']++;
$_smarty_tpl->tpl_vars['__foreach_fplans']->value['last'] = $_smarty_tpl->tpl_vars['__foreach_fplans']->value['index'] + 1 == $_smarty_tpl->tpl_vars['__foreach_fplans']->value['total'];
$foreach_plan_Sav = $_smarty_tpl->tpl_vars['plan'];
?>
                                    <div style="background: #1c2024; padding: 20px; margin: 0; color: #fff; text-align: justify">
                                        <h3 style="color: #ffb534; text-align: left"><?php echo smarty_modifier_myescape((isset($_smarty_tpl->tpl_vars['__foreach_fplans']->value['index']) ? $_smarty_tpl->tpl_vars['__foreach_fplans']->value['index'] : null)+1);?>
. <?php echo smarty_modifier_myescape(htmlspecialchars($_smarty_tpl->tpl_vars['plan']->value['name'], ENT_QUOTES, 'UTF-8', true));?>
</h3>
                                        <?php
$_from = $_smarty_tpl->tpl_vars['plan']->value['plans'];
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$_smarty_tpl->tpl_vars['o'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['o']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['o']->value) {
$_smarty_tpl->tpl_vars['o']->_loop = true;
$foreach_o_Sav = $_smarty_tpl->tpl_vars['o'];
?>
                                            <h4 style="margin: 20px 0; text-align: left">Profit <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['o']->value['percent']);?>
% daily for <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['o']->value['period']);?>
 hours</h4>
                                            Minimum investment <?php echo smarty_modifier_myescape(amount_smarty_fiat($_smarty_tpl->tpl_vars['o']->value['min_deposit']));?>
 / Maximum investment 
                                            <?php if ($_smarty_tpl->tpl_vars['o']->value['max_deposit'] == 0) {?>∞<?php } else {
echo smarty_modifier_myescape(amount_smarty_fiat($_smarty_tpl->tpl_vars['o']->value['max_deposit']));
}?>
                                        <?php
$_smarty_tpl->tpl_vars['o'] = $foreach_o_Sav;
}
?>
                                    </div>
                                    <?php if (!(isset($_smarty_tpl->tpl_vars['__foreach_fplans']->value['last']) ? $_smarty_tpl->tpl_vars['__foreach_fplans']->value['last'] : null)) {?>
                                        <div style="margin: 40px 0 0;"></div>
                                    <?php }?>
                                <?php
$_smarty_tpl->tpl_vars['plan'] = $foreach_plan_Sav;
}
?>
                            </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 $_smarty_tpl->getSubTemplate ("footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0);

}
}
?>