{include file="mheader.tpl"}
<div class="header-title-breadcrumb element-box-shadow">
              <div class="container">
                  <div class="row">
                      <div class="col-md-7 col-sm-6 col-xs-12 text-left">
                        <h3>Deposit List</h3>
                      </div>
                      <div class="col-md-5 col-sm-6 col-xs-12 hide-on-tablet">
                          <ol class="breadcrumb text-right">
                            <li><a href="?a=account">Home</a></li> 
                            <li class="active">Deposit List</li>
                          </ol>                    
                      </div>
                  </div>
              </div>
            </div>
            <div class="spacer_80"></div>
<div class="col-md-12">
    <h4>Total: {$currency_sign}{$total}</h4>

{foreach from=$plans item=p}
<div class="panel panel-default table-transactions">
 <div class="panel-body padding_30">
<table class="table table-striped no-margin">
                      <tbody>

<tr>
 <td><b>{$p.name}</b></td>
 <td></td>
 <td></td>
</tr>
<thead>
<tr>
 <th>Plan</th>
 <th>Amount Spent ({$currency_sign})</th>
 <th><nobr>{$p.period} Profit (%)</nobr></th>
</tr>
</thead>
{foreach from=$p.plans item=o}
<tr>
 <td>{$o.name}</td>
 <td>{$o.deposit}</td>
 <td>{$o.percent}</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
</div>
<br>
<div class="panel panel-default table-transactions">
<div class="panel-body padding_30">
<table class="table table-striped no-margin">
    <tbody>
{if !$p.deposits}
<tr>
 <td><b>No deposits for this plan</b></td>
</tr>           
{else}
<tr>
 <td class=inheader style="text-align:left">Your deposits:</td>
 <td></td>
</tr>
<tr>
 <td class=inheader>Date</td>
 <td class=inheader>Amount</td>
{if $p.use_compound}
 <td class=inheader>Compounding Percent</td>
{/if}
{if $p.withdraw_principal}
 <td class=inheader>Release</td>
{/if}
</tr>           
{foreach from=$p.deposits item=d}
<tr>
 <td><b>{$d.date}</b><br>{if $p.q_days == 0}Working {$d.duration} days{else}Expire in {$d.expire_in} days{/if}</td>
 <td><b>{$currency_sign}{$d.deposit} <img src="images/{$d.ec}.gif" align=absmiddle hspace=1 height=17></b></td>
{if $p.use_compound}
 <td>{$d.compound}% <a href="{"?a=change_compound&deposit=`$d.id`"|encurl}">[change]</a></td>
{/if}
{if $p.withdraw_principal}
 <td>
  {if $d.can_withdraw}
   <a href="{"?a=withdraw_principal&deposit=`$d.id`"|encurl}">[release]</a>
  {else}
   {if $d.pending_duration > 0}
    {$d.pending_duration} day{if $d.pending_duration > 1}s{/if} left
   {else}
    not available
   {/if}
  {/if}
 </td>
{/if}
</tr>
{/foreach}
{/if}
</tbody>
</table>
</div>
</div>
<div class="panel panel-default table-transactions">
{if $p.total_deposit > 0 || $p.today_profit > 0 || $p.total_profit > 0}

<div class="panel-body padding_30">
<table class="table table-striped no-margin">
    <tbody>
<tr><td>Deposited Total:</td><td><b>{$currency_sign}{$p.total_deposit}</b></td></tr>
<tr><td>Profit Today:</td><td><b>{$currency_sign}{$p.today_profit}</b></td></tr>
<tr><td>Total Profit:</td><td><b>{$currency_sign}{$p.total_profit}</b></td></tr>
</table>
{/if}
<br>
</td></tr>
</tbody>
 </table>
 </div>
               
<br>
{/foreach}
</div> 
</div>

<a href="#" class="scrollToTop"><i class="fa fa-chevron-up text-white" aria-hidden="true"></i></a>
</div>
{include file="mfooter.tpl"}
