{foreach from=$plans item=plan name=fplans}
<div class="col-md-4">
<div class="panel price  panel-color">
{foreach from=$plan.plans item=o}
<div class="panel-body text-center pt-0"><br>
<center><img src="bb/lg.png" ></center><br>
<div class="price-title" style="color: #fff; font-size: 30px;">{$o.name|escape:html}</div><br>
<p class="lead font-weight-semibold"><strong>{$o.percent} /</strong> %</p></div>
{/foreach}
<form method=post name="spendform">
<input type=hidden name=a value=deposit>
<ul class="list-group list-group-flush text-center">
{foreach from=$plan.plans item=o}
<li class="list-group-item">{$plan.name|escape:html}</li>
<li class="list-group-item">Min. Deposit: {$o.min_deposit|fiat}</li>
<li class="list-group-item">Max. Deposit: {if $o.max_deposit == 0}&infin;{else}{$o.max_deposit|fiat}{/if}</li>
{/foreach}
<li>
<div class="row">
<div class="col-lg">
<input class="form-control" align=center placeholder="Enter Amount" type="text" name="amount" value='{$frm.amount|default:$min_deposit|amount_format}' >
<select class="form-control" name="type">
<option value="0">Select Crypto</option>
{foreach from=$dps item=p name=p}
<option value="process_{$p.id}" {if $frm.type == "process_`$p.id`"}checked{/if} data-fiat="{$p.fiat}" >{$p.name}</option>
{/foreach}
{foreach from=$dps item=p name=p}
<option value="account_{$p.id}" {if $frm.type == "account_`$p.id`"}checked{/if} data-fiat="{$p.fiat}" {if $p.available <= 0}disabled{/if} >{$p.name} - {$p.available|fiat:$p.id}</option>
{/foreach}
</select>
<input type="hidden" name=h_id value="{$plan.id}" {if (($smarty.foreach.fplans.first == 1) && (!$frm.h_id)) || ($frm.h_id == $plan.id)} checked {/if} onclick="updateCompound()">
</div>
</div>
</li>
</ul>
<div class="panel-footer text-center border-right-0 border-left-0">
<button type="submit" class="btn btn-lg btn-primary btn-block">Deposit Now!</button>
</div>
</form>
</div>
</div>
{/foreach}