{include file="mlogo.tpl"}

<h3>Your deposits</h3>
<div class="row">
	<div class="col-xl-12">
		<div class="content-box"> 

    <div class="row mb-30">
        <div class="col-xl-3 text-center">
                    <div class="white-box mt-2">
                Total: {$currency_sign}{$total}
            </div>
        </div>
        
    </div>

 <div class="content-box table-responsive">
{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>
 <th class=inheader>Plan</th>
 <th class=inheader width=200>Amount Spent ({$currency_sign})</th>
 <th class=inheader width=100 nowrap><nobr>{$plans[plans].period} Profit (%)</nobr></th>
</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 class="tab">
<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>
{include file="mfooter.tpl"}
