<?php /* Smarty version 3.1.27, created on 2024-04-05 18:41:41
         compiled from "/home/ganstrades/public_html/tmpl/deposit.tpl" */ ?>
<?php
/*%%SmartyHeaderCode:1862637315661045e552bd94_19787686%%*/
if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '1ec98f759fde0f7e65a2c381ab19f8af7b65e828' => 
    array (
      0 => '/home/ganstrades/public_html/tmpl/deposit.tpl',
      1 => 1704209803,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1862637315661045e552bd94_19787686',
  'variables' => 
  array (
    'fatal' => 0,
    'qplans' => 0,
    'frm' => 0,
    'errors' => 0,
    'currency_sign' => 0,
    'plans' => 0,
    'plan' => 0,
    'o' => 0,
    'min_deposit' => 0,
    'dps' => 0,
    'p' => 0,
  ),
  'has_nocache_code' => false,
  'version' => '3.1.27',
  'unifunc' => 'content_661045e5623667_04256989',
),false);
/*/%%SmartyHeaderCode%%*/
if ($_valid && !is_callable('content_661045e5623667_04256989')) {
function content_661045e5623667_04256989 ($_smarty_tpl) {
if (!is_callable('smarty_modifier_myescape')) require_once '/home/ganstrades/public_html/inc/libs/smarty3/plugins/modifier.myescape.php';

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


                <!-- PAGE-NAVIGATOR -->
        <section id="page-navigator">
            <div class="container-fluid">
                <div aria-label="breadcrumb">
                    <ol class="breadcrumb">
                        <li class="breadcrumb-item"><a href="/">Home</a></li>
                        <li class="breadcrumb-item"><a href="/"
                                                       class="cursor-inherit">Make Deposit</a></li>
                    </ol>
                </div>
            </div>
        </section>
        <!-- /PAGE-NAVIGATOR -->
        </header>
    <!-- DASHBOARD-HEADER -->

    <main id="page-container">
        <?php echo $_smarty_tpl->getSubTemplate ("left.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0);
?>

  
<?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'; ?>
 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') {?>
<h3>The deposit has been successfully saved.</h3>
<br><br>
<?php }?>

<?php if ($_smarty_tpl->tpl_vars['frm']->value['say'] == 'deposit_saved') {?>
<h3>The deposit has been saved. It will become active when the administrator checks statistics.</h3><br><br>
<?php }?>

<?php if ($_smarty_tpl->tpl_vars['errors']->value) {?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['less_min']) {?>
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<br><br>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['greater_max']) {?>
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<br><br>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['not_enough_funds']) {?>
You have no enough funds to complete the operation.<br><br>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['ec_forbidden']) {?>
Sorry, deposit with selected processing is temproary forbidden.<br><br>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['cannot_invest_this_plan_anymore']) {?>
Sorry, you cannot invest this plan anymore<br><br>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['external_deposits_disabled']) {?>
Deposit to this plan from external processing is forbidden.
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['internal_deposits_disabled']) {?>
Deposit to this plan from balance is forbidden.
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['no_ps']) {?>
Please, select funds source.
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['errors']->value['deposits_amount_exeeded']) {?>
Your total deposit in &quot;<?php echo smarty_modifier_myescape(htmlspecialchars($_smarty_tpl->tpl_vars['errors']->value['deposits_amount_exeeded']['plan'], ENT_QUOTES, 'UTF-8', true));?>
&quot; should not more than <?php echo smarty_modifier_myescape(amount_smarty_fiat($_smarty_tpl->tpl_vars['errors']->value['deposits_amount_exeeded']['amount_limit']));?>
<br><br>
<?php }?>
<?php }?>
 


 <!-- INVESTMENT -->
<section id="investment" class="secbg-1  pt-0 ">
<div class=" container-fluid ">
            
<div class="investment-wrapper">
<div class="row">


<?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('iteration' => 0));
foreach ($_from as $_smarty_tpl->tpl_vars['plan']->value) {
$_smarty_tpl->tpl_vars['plan']->_loop = true;
$_smarty_tpl->tpl_vars['__foreach_fplans']->value['iteration']++;
$_smarty_tpl->tpl_vars['__foreach_fplans']->value['first'] = $_smarty_tpl->tpl_vars['__foreach_fplans']->value['iteration'] == 1;
$foreach_plan_Sav = $_smarty_tpl->tpl_vars['plan'];
?>
<div class=" col-md-6 col-lg-4 col-xl-3   ">
<form method=post name="spendform">
<input type=hidden name=a value=deposit>
<div class="card-type-1 card align-items-start wow fadeInUp" data-wow-duration="1s" data-wow-delay="0.15s">
<?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'];
?><div class="featured"><span><?php echo smarty_modifier_myescape(htmlspecialchars($_smarty_tpl->tpl_vars['o']->value['name'], ENT_QUOTES, 'UTF-8', true));?>
</span></div><?php
$_smarty_tpl->tpl_vars['o'] = $foreach_o_Sav;
}
?>
<h4 class="h4"><?php echo smarty_modifier_myescape(htmlspecialchars($_smarty_tpl->tpl_vars['plan']->value['name'], ENT_QUOTES, 'UTF-8', true));?>
</h4>
<?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 class="h4 themecolor"> <?php echo smarty_modifier_myescape(amount_smarty_fiat($_smarty_tpl->tpl_vars['o']->value['min_deposit']));?>
 - <?php if ($_smarty_tpl->tpl_vars['o']->value['max_deposit'] == 0) {?>&infin;<?php } else {
echo smarty_modifier_myescape(amount_smarty_fiat($_smarty_tpl->tpl_vars['o']->value['max_deposit']));
}?> </h4>
<div class="d-flex align-items-baseline"> <h4 class="h4"> <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['o']->value['percent']);?>
% </h4> <h6 class="ml-5"><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['plan']->value['period']);?>
 </h6></div>
<?php
$_smarty_tpl->tpl_vars['o'] = $foreach_o_Sav;
}
?>
<hr class="hr">
<p class="text">Profit For  Every Day</p>
<p class="text"> Capital will back : <span class="badge badge-success px-2 py-1">Yes</span> </p>
<!--p class="text"> Total   10 % + <span class="badge badge-success">Capital</span> </p-->
<hr class="hr">
<p class="text"><input type=text name=amount 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="form-control form-control-lg bg-transparent" ></p>
<br>
<p class="text">
<select name=type class="form-control-lg bg-transparent"  style="color: #fff;">
<?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'])) {?>checked<?php }?> data-fiat="<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['p']->value['fiat']);?>
" style="color: #000;"><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['p']->value['name']);?>
</option>
<?php
$_smarty_tpl->tpl_vars['p'] = $foreach_p_Sav;
}
?>
<?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="account_<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['p']->value['id']);?>
" <?php if ($_smarty_tpl->tpl_vars['frm']->value['type'] == "account_".((string)$_smarty_tpl->tpl_vars['p']->value['id'])) {?>checked<?php }?> data-fiat="<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['p']->value['fiat']);?>
" <?php if ($_smarty_tpl->tpl_vars['p']->value['available'] <= 0) {?>disabled<?php }?> style="color: #000;"><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['p']->value['name']);?>
 - <?php echo smarty_modifier_myescape(amount_smarty_fiat($_smarty_tpl->tpl_vars['p']->value['available'],$_smarty_tpl->tpl_vars['p']->value['id']));?>
</option>
<?php
$_smarty_tpl->tpl_vars['p'] = $foreach_p_Sav;
}
?> </select></p>
<input type=hidden name=h_id value="<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['plan']->value['id']);?>
" <?php if ((((isset($_smarty_tpl->tpl_vars['__foreach_fplans']->value['first']) ? $_smarty_tpl->tpl_vars['__foreach_fplans']->value['first'] : null) == 1) && (!$_smarty_tpl->tpl_vars['frm']->value['h_id'])) || ($_smarty_tpl->tpl_vars['frm']->value['h_id'] == $_smarty_tpl->tpl_vars['plan']->value['id'])) {?> checked <?php }?> onclick="updateCompound()">

<button type="submit" class="btn-base text-uppercase mt-30 investNow">Invest Now</button>
</div>

</form></div>
<?php
$_smarty_tpl->tpl_vars['plan'] = $foreach_plan_Sav;
}
?>

</div></div>

</div>
           
    </section>
    <!-- /INVESTMENT -->




<?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 }?>






    </main>
</div>
<!-- /DASHBOARD-PAGE-LAYOUT -->
<?php echo $_smarty_tpl->getSubTemplate ("footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0);

}
}
?>