<?php /* Smarty version 3.1.27, created on 2024-12-08 08:42:27
         compiled from "/home/greenfie/user.future-trade.ltd/tmpl/deposit_list.tpl" */ ?>
<?php
/*%%SmartyHeaderCode:108708444267555bf35b8196_97851322%%*/
if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'ff845720cfb4a2ec2edaab0b4a525c3e86d063be' => 
    array (
      0 => '/home/greenfie/user.future-trade.ltd/tmpl/deposit_list.tpl',
      1 => 1731707674,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '108708444267555bf35b8196_97851322',
  'variables' => 
  array (
    'qplans' => 0,
    'currency_sign' => 0,
    'total' => 0,
    'plans' => 0,
    'p' => 0,
    'd' => 0,
    'settings' => 0,
  ),
  'has_nocache_code' => false,
  'version' => '3.1.27',
  'unifunc' => 'content_67555bf35e2a60_32390109',
),false);
/*/%%SmartyHeaderCode%%*/
if ($_valid && !is_callable('content_67555bf35e2a60_32390109')) {
function content_67555bf35e2a60_32390109 ($_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'] = '108708444267555bf35b8196_97851322';
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>
                <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><strong>Your </strong> Deposits</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['total']->value);?>
</h2>
                                        <p>Total Deposits</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['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'];
?>
                                <div class="card mb-4">
                                    <div class="card-header text-center bg-primary text-white">
                                        <b><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['p']->value['name']);?>
</b>
                                    </div>
                                    <div class="card-body">
                                        <?php if (!$_smarty_tpl->tpl_vars['p']->value['deposits']) {?>
                                        <div class="alert alert-warning mt-3">
                                            <b>No deposits for this plan</b>
                                        </div>
                                        <?php } else { ?>
                                        <h5 class="mt-3">Your Deposits</h5>
                                        <table class="table table-striped">
                                            <thead class="thead-light">
                                                <tr>
                                                    <th>Date</th>
                                                    <th>Amount</th>
                                                    <?php if ($_smarty_tpl->tpl_vars['p']->value['use_compound']) {?><th>Compounding Percent</th><?php }?>
                                                    <?php if ($_smarty_tpl->tpl_vars['p']->value['withdraw_principal']) {?><th>Release</th><?php }?>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <?php
$_from = $_smarty_tpl->tpl_vars['p']->value['deposits'];
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$_smarty_tpl->tpl_vars['d'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['d']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['d']->value) {
$_smarty_tpl->tpl_vars['d']->_loop = true;
$foreach_d_Sav = $_smarty_tpl->tpl_vars['d'];
?>
                                                <tr>
                                                    <td>
                                                        <b><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['d']->value['date']);?>
</b><br>
                                                        <?php if ($_smarty_tpl->tpl_vars['p']->value['q_days'] == 0) {?>Working <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['d']->value['duration']);?>
 days<?php } else { ?>Expire in <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['d']->value['expire_in']);
}?>
                                                    </td>
                                                    <td>
                                                        <b><?php echo smarty_modifier_myescape(amount_smarty_fiat($_smarty_tpl->tpl_vars['d']->value['deposit'],$_smarty_tpl->tpl_vars['d']->value['ec']));?>
 <img src="images/<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['d']->value['ec']);?>
.gif" alt="<?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['d']->value['ec']);?>
" class="align-middle" height="17"></b>
                                                    </td>
                                                    <?php if ($_smarty_tpl->tpl_vars['p']->value['use_compound']) {?>
                                                    <td><?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['d']->value['compound']);?>
% <a href="<?php echo smarty_modifier_myescape(encurl("?a=change_compound&deposit=".((string)$_smarty_tpl->tpl_vars['d']->value['id'])));?>
" class="text-primary">[change]</a></td>
                                                    <?php }?>
                                                    <?php if ($_smarty_tpl->tpl_vars['p']->value['withdraw_principal']) {?>
                                                    <td>
                                                        <?php if ($_smarty_tpl->tpl_vars['d']->value['can_withdraw']) {?>
                                                        <a href="<?php echo smarty_modifier_myescape(encurl("?a=withdraw_principal&deposit=".((string)$_smarty_tpl->tpl_vars['d']->value['id'])));?>
" class="btn btn-sm btn-success">Release</a>
                                                        <?php } else { ?>
                                                            <?php if ($_smarty_tpl->tpl_vars['d']->value['pending_duration'] > 0) {?>
                                                            <?php echo smarty_modifier_myescape($_smarty_tpl->tpl_vars['d']->value['pending_duration']);?>
 day<?php if ($_smarty_tpl->tpl_vars['d']->value['pending_duration'] > 1) {?>s<?php }?> left
                                                            <?php } else { ?>
                                                            Not available
                                                            <?php }?>
                                                        <?php }?>
                                                    </td>
                                                    <?php }?>
                                                </tr>
                                                <?php
$_smarty_tpl->tpl_vars['d'] = $foreach_d_Sav;
}
?>
                                            </tbody>
                                        </table>
                                        <?php }?>
                                    </div>
                                
                                    <?php if ($_smarty_tpl->tpl_vars['p']->value['total_deposit'] > 0 || $_smarty_tpl->tpl_vars['p']->value['today_profit'] > 0 || $_smarty_tpl->tpl_vars['p']->value['total_profit'] > 0) {?>
                                    <div class="card-footer">
                                        <table class="table table-borderless mb-0">
                                            <tr><td>Deposited Total:</td><td><b><?php echo smarty_modifier_myescape(amount_smarty_fiat($_smarty_tpl->tpl_vars['p']->value['total_deposit']));?>
</b></td></tr>
                                            <tr><td>Profit Today:</td><td><b><?php echo smarty_modifier_myescape(amount_smarty_fiat($_smarty_tpl->tpl_vars['p']->value['today_profit']));?>
</b></td></tr>
                                            <tr><td>Total Profit:</td><td><b><?php echo smarty_modifier_myescape(amount_smarty_fiat($_smarty_tpl->tpl_vars['p']->value['total_profit']));?>
</b></td></tr>
                                        </table>
                                    </div>
                                    <?php }?>
                                </div>
                                <?php
$_smarty_tpl->tpl_vars['p'] = $foreach_p_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);
?>


<?php }
}
?>