{include file="header.tpl"}

<div id="main-content">
    <div id="sub_content">
<div class="plan_head"><p>Deposit List</p></div>
<div class="plan_img"><img src="images/ra.png"></div>
<div class="dashboard">
<div class="deshboard-left">
                <div class="desh-menu">
                    <ul>
                        <li><a href="?a=account"><i class="fa fa-university" aria-hidden="true"></i> Account Overview</a></li>
                        <li><a href="?a=deposit"><i class="fa fa-cloud-download" aria-hidden="true"></i> Make Deposit</a></li>
                        <li><a href="?a=withdraw"><i class="fa fa-upload" aria-hidden="true"></i> Withdraw Fund</a></li>
                        <li><a href="?a=deposit_list"><i class="fa fa-list" aria-hidden="true"></i> Deposit List</a></li>
                        <li><a href="?a=deposit_history"><i class="fa fa-briefcase" aria-hidden="true"></i> Deposit History</a></li>
                        <li><a href="?a=withdraw_history"><i class="fa fa-history" aria-hidden="true"></i> Withdraw History</a></li>
                        <li><a href="?a=earnings"><i class="fa fa-list-ul" aria-hidden="true"></i> Earning History</a></li>
                        <li><a href="?a=referals"><i class="fa fa-external-link-square" aria-hidden="true"></i> Referral</a></li>
                        <li><a href="?a=referallinks"><i class="fa fa-link" aria-hidden="true"></i> Referral Link</a></li>
                        <li><a href="?a=edit_account"><i class="fa fa-user" aria-hidden="true"></i> Account Setting</a></li>
                        <li><a href="?a=logout"><i class="fa fa-power-off" aria-hidden="true"></i> Log Out</a></li>
                    </ul>
                </div>
            </div>
<div class="desh_right">



<b class="deposit-total">Total Deposit : {$currency_sign}{$total}</b><br>
{section name=plans loop=$plans}
<table cellspacing=1 cellpadding=2 border=0 width=100% class=line><tr><td class=item>
<table cellspacing=1 cellpadding=2 border=0 width=100% class="tab">
<tr>
 <td colspan=3 align=center><b>{$plans[plans].name}</b></td>
</tr><tr>
 <td class=inheader>Plan</td>
 <td class=inheader width=200>Amount Spent ({$currency_sign})</td>
 <td class=inheader width=100 nowrap><nobr>{$plans[plans].period} Profit (%)</nobr></td>
</tr>
{section name=plan_options loop=$plans[plans].plans}
<tr>
 <td class=item>{$plans[plans].plans[plan_options].name}</td>
 <td class=item align=right>{$plans[plans].plans[plan_options].deposit}</td>
 <td class=item align=right>{$plans[plans].plans[plan_options].percent}</td>
</tr>
{/section}
</table>
<br>
<table cellspacing=1 cellpadding=2 border=0 width=100% class="tab">
{if !$plans[plans].deposits}
<tr>
 <td colspan=4><b>No deposits for this plan</b></td>
</tr>           
{else}
<tr>
 <td colspan=4 class=inheader style="text-align:left">Your deposits:</td>
</tr>
<tr>
 <td class=inheader>Date</td>
 <td class=inheader>Amount</td>
{if $plans[plans].use_compound}
 <td class=inheader>Compounding Percent</td>
{/if}
{if $plans[plans].withdraw_principal}
 <td class=inheader>Release</td>
{/if}
</tr>           
{section name=deposit loop=$plans[plans].deposits}
<tr>
 <td align=center class=item><b>{$plans[plans].deposits[deposit].date}</b><br>Expire in {$plans[plans].deposits[deposit].expire_in} days</td>
 <td align=center class=item><b>{$currency_sign}{$plans[plans].deposits[deposit].deposit} <img src="images/{$plans[plans].deposits[deposit].ec}.gif" align=absmiddle hspace=1 height=17></b></td>
{if $plans[plans].use_compound}
 <td align=center class=item align=center>{$plans[plans].deposits[deposit].compound}% <a href="?a=change_compound&deposit={$plans[plans].deposits[deposit].id}">[change]</a></td>
{/if}
{if $plans[plans].withdraw_principal}
 <td align=center class=item>
  {if $plans[plans].deposits[deposit].can_withdraw}
   <a href="?a=withdraw_principal&deposit={$plans[plans].deposits[deposit].id}">[release]</a>
  {else}
   {if $plans[plans].deposits[deposit].pending_duration > 0}
    {$plans[plans].deposits[deposit].pending_duration} day{if $plans[plans].deposits[deposit].pending_duration > 1}s{/if} left
   {else}
    not available
   {/if}
  {/if}
 </td>
{/if}
</tr>
{/section}
{/if}
</table>
{if $plans[plans].total_deposit > 0 || $plans[plans].today_profit > 0 || $plans[plans].total_profit > 0}
<table cellspacing=0 cellpadding=1 border=0>
<tr><td>Deposited Total:</td><td><b>{$currency_sign}{$plans[plans].total_deposit}</b></td></tr>
<tr><td>Profit Today:</td><td><b>{$currency_sign}{$plans[plans].today_profit}</b></td></tr>
<tr><td>Total Profit:</td><td><b>{$currency_sign}{$plans[plans].total_profit}</b></td></tr>
</table>
{/if}
<br>
</td></tr></table>
<br>
{/section}
</div>
</div>
</div>
</div>
{include file="footer.tpl"}
