{include file="sections/header.tpl"}

<div class="row">
    <div class="col-sm-12 col-md-12">
        <div class="card card-primary card-hovered card-stacked mb30">
            <div class="card-title text-center">{Lang::T('Refill Balance')}</div>
            <div class="card-body">
                <form class="form-horizontal" method="post" role="form" action="{$_url}plan/deposit-post">
                    <input type="hidden" name="stoken" value="{App::getToken()}">
                    
                    <div class="form-group row">
                        <label class="col-md-2 control-label" for="personSelect">{Lang::T('Select Account')}</label>
                        <div class="col-md-6">
                            <select id="personSelect" class="form-control select2" name="id_customer" style="width: 100%" data-placeholder="{Lang::T('Select a customer')}...">
                                <option value=""></option> <!-- Default option -->
                            </select>
                        </div>
                    </div>

                    <div class="form-group row">
                        <label class="col-md-2 control-label" for="planSelect"><a href="{$_url}services/balance">{Lang::T('Balance Package')}</a></label>
                        <div class="col-md-6">
                            <select id="planSelect" class="form-control select2" name="id_plan" style="width: 100%" data-placeholder="{Lang::T('Select Plans')}...">
                                <option value=""></option> <!-- Default option -->
                                {foreach $p as $pl}
                                    <option value="{$pl['id']}">{if $pl['enabled'] neq 1}DISABLED PLAN &bull; {/if}{$pl['name_plan']} - {Lang::moneyFormat($pl['price'])}</option>
                                {/foreach}
                            </select>
                        </div>
                    </div>

                    <div class="form-group row">
                        <div class="col-lg-offset-2 col-lg-10">
                            <button class="btn btn-success" type="submit">{Lang::T('Recharge')}</button>
                            Or <a href="{$_url}customers/list">{Lang::T('Cancel')}</a>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>

{include file="sections/footer.tpl"}
