<?php /* Smarty version 3.1.27, created on 2020-12-13 09:31:50
         compiled from "/home/admin/web/surextrade.co/public_html/tmpl/deposit.confirm.tpl" */ ?>
<?php
/*%%SmartyHeaderCode:10558214475fd5df86ed3031_30693008%%*/
if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'f84d30cb92ec52b029fbced9649168d7e7570b3e' => 
    array (
      0 => '/home/admin/web/surextrade.co/public_html/tmpl/deposit.confirm.tpl',
      1 => 1606603886,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '10558214475fd5df86ed3031_30693008',
  'variables' => 
  array (
    'false_data' => 0,
    'deposit' => 0,
    't' => 0,
    'currency_sign' => 0,
    'userinfo' => 0,
    'payment_form' => 0,
  ),
  'has_nocache_code' => false,
  'version' => '3.1.27',
  'unifunc' => 'content_5fd5df8702b513_77311972',
),false);
/*/%%SmartyHeaderCode%%*/
if ($_valid && !is_callable('content_5fd5df8702b513_77311972')) {
function content_5fd5df8702b513_77311972 ($_smarty_tpl) {
if (!is_callable('smarty_modifier_myescape')) require_once '/home/admin/web/surextrade.co/public_html/inc/libs/smarty3/plugins/modifier.myescape.php';

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



<div class="container-fluid page-body-wrapper">
	<div class="main-panel my-5">
		<div class="container">
			<div class="row ">





<div class="container-fluid page-body-wrapper">
	<div class="main-panel">
		<div class="content-wrapper">
			<div class="errorJsMsg JsClose">
				<div class="errorJs">
				</div>
			</div>
			<div class="row">
				<div class="col-md-12 grid-margin stretch-card">
					<div class="card">
						<div class="col-md-12 grid-margin stretch-card">
							<div class="card">
								<div class="card-body">
									<div class="container" style="min-height:350px;">



<?php if ($_smarty_tpl->tpl_vars['false_data']->value != 1) {?>
<h3 style="color:white">Deposit Confirmation:</h3>
<br><br>

<table cellspacing=0 cellpadding=2 class="form deposit_confirm" style="color:white">
<?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>
 <td rowspan=6><?php if ($_POST['type'] == 'process_48') {?><img id="coin_payment_image" width=200 height=200 src="qr.png">
 <?php }?></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') {?>after <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['deposit']->value['periods']);?>
 days<?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['time_units'] != 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>


<?php if ($_POST['type'] == 'process_48') {?>


<style>
.deposit-process-wrap , .deposit-cancel-wrap {
text-align:left;
    float: left;
	margin:10px;
}
.deposit-process-wrap {
margin-left:60px;
}
</style>
<?php echo '<script'; ?>
>
$.getJSON( "https://api.coindesk.com/v1/bpi/currentprice/usd.json", function( data) {
   var amountIndol = <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['deposit']->value['user_amount']);?>
;
   var exchangeRate = parseInt(data.bpi.USD.rate_float);
   var amount = amountIndol/ exchangeRate;
   
   n=amount;
   f=n.toFixed(6);
 
   document.getElementById("btcvalue").innerHTML=f;
   strLink="bitcoin:165wT7p2aL6xBQhWM7qBA2uGaj7zk6sqGt?amount="+f+"&amp;message=Deposit+to+cloud-pool.co+User+<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['userinfo']->value['username']);?>
";
   document.getElementById("link2").setAttribute("href",strLink);
});
<?php echo '</script'; ?>
>
<div class="btc_form btc1" id="btc_form" style="color:white">Please send exactly <b id="btcvalue" style="color:white"></b> to <i><a style="color:white" id=link2>165wT7p2aL6xBQhWM7qBA2uGaj7zk6sqGt</a></i><br></div><div id="placeforstatus">  <?php echo '<script'; ?>
 language="javascript">  function update_status_from_iframe() { window.parent.document.getElementById("placeforstatus").innerHTML = document.documentElement.innerHTML; }  <?php echo '</script'; ?>
>  <b>Order status:</b> Waiting for payment<br> <?php echo '<script'; ?>
 language="javascript"> window.parent.document.getElementById("btc_form").style.display = ""; window.parent.document.getElementById("coin_payment_image").style.display = ""; <?php echo '</script'; ?>
>  <?php echo '<script'; ?>
 language="javascript"> setTimeout("location.reload()", 30000); <?php echo '</script'; ?>
>  </div><iframe id="deposit_result_div" src="cloud-pool.co_files/2_8e9f3d18751068bbd0edecac398504f3.htm" __idm_frm__="19327352843" width="1" height="1" frameborder="0"></iframe>



</div></div>

</div></div>

</div></div>

</div>
</div></div>

</div>

<?php } else { ?>
<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['payment_form']->value);?>


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

}
}
?>