{include file="mheader.tpl"}



<div class="row pt-3">
    <div class="col-md-7  stretch-card">
        <div class="card">
            <div class="card-header header-sm d-flex justify-content-between align-items-center" style="background-color: #1b1b1c;">
                <h4 class="card-title text-dark">Account Summary</h4>
                <a class="btn btn-primary btn-sm" href="?a=deposit_list"><i class="fa fa-file-text"></i>Active Plans & History</a>
            </div>
            <div class="card-body d-flex flex-column">
                <div class="d-flex align-items-center justify-content-between">
                    <div class=" align-items-center">
                        <p style="margin-bottom: 0.5rem;" class="text-muted">Available Balance</p>
                        <h1 class="font-weight-medium mb-0" id="ab">{fiat}<b>{$ab_formated.total}</b</h1>
                    </div>
                </div>
                <div class="d-flex flex-row mt-4 mb-4">
                    <div class="wrapper">
                        <p class="mb-0 text-muted">Total Deposit</p>
                        <div class="d-flex align-items-center">
                            <h5 class="font-weight-medium mb-0" id="bb">{$ab_formated.deposit|fiat}</h5>
                        </div>
                    </div>
                    <div class="wrapper ml-4 border-left pl-4">
                        <p class="mb-0 text-muted">Total withdraw </p>
                        <div class="d-flex align-items-center">
                            <h5 class="font-weight-medium mb-0" id="lp">{fiat}<b>{$ab_formated.withdrawal}</b></h5>
                            <!--div class="badge badge-success ml-2 badge-sm">NAN%</div-->
                        </div>
                    </div>
                </div>
                <div class="d-flex flex-row mb-3">
                    <a href="?a=deposit" class="btn btn-success mr-1"><i class="fa fa-upload"></i> Deposit</a>
                    <a href="?a=withdraw" class="btn btn-outline-warning mr-1"><i class="fa fa-download"></i> Withdraw</a>
                </div>
                <div class="d-flex flex-row">
                    <p><small class="text-muted mt-5">Your Available balance is the real balance you can withdraw from while your book balance is your potential balance that will become available when your deposit plan is completed.</small></p>
                </div>
            </div>
        </div>
    </div>
    <div class="col-md-5 stretch-card d-none d-md-block">
        <div class="card text-center">
            <div class="card-body d-flex flex-column px-2">
                <div class="wrapper">
                    <h5>Invite Your Friends</h5>
                    
                    <form class="forms-sample mt-3"><input type="hidden" name="form_id" value="16994783316224">
                        <div class="form-group">
                            <input type="text" style="background-color: #eee; border-color: #eee;" readonly="" id="ref_cop" class="form-control" value="{"?ref=`$userinfo.username`"|encurl:0:1}">
                        </div>
                        <button id="ref_btn" type="button" onclick="copy_ref('ref_cop','#ref_btn');" class="btn btn-primary btn-block"><i class="fa fa-copy"></i> Copy Referral Link</button>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="row">
    <div class="col-md-12 grid-margin">
        <div class="card">
            <div class="card-header header-sm d-flex justify-content-between align-items-center" style="background-color: rgba(0,0,0,0.3);">
                <h4 class="card-title">Popular Market</h4>
                <a class="btn btn-inverse-success btn-sm" href="/userList"><i class="fa fa-upload"></i> Invest Now</a>
            </div>
            <div class="card-body">
                <div class="row">
                    <div class="col-lg-3 col-md-6 border-bottom-m ms">
                        <div class="d-flex align-items-center">
                            <h1 class="ml-auto font-weight-medium">
                                <p class="mb-0 text-muted">ACCOUNT BALANCE</p>
                                {fiat}<b>{$ab_formated.total}</b>                            </h1>
                        </div>
                    </div>
                    <div class="col-lg-3 col-md-6 border-bottom-m ms">
                        <div class="d-flex align-items-center">
                            <h1 class="ml-auto font-weight-medium">
                                <p class="mb-0 text-muted"> ACTIVE DEPOSIT</p>
                                {fiat}<b>{$ab_formated.active_deposit}</b>                            </h1>
                        </div>
                    </div>
                    <div class="col-lg-3 col-md-6 border-bottom-m ms">
                        <div class="d-flex align-items-center">
                            <h1 class="ml-auto font-weight-medium">
                                <p class="mb-0 text-muted">TOTAL DEPOSIT</p>
                                {$ab_formated.deposit|fiat}                            </h1>
                        </div>
                    </div>
                    <div class="col-lg-3 col-md-6 border-bottom-m ms">
                        <div class="d-flex align-items-center">
                            <h1 class="ml-auto font-weight-medium">
                                <p class="mb-0 text-muted">TOTAL WITHDRAW </p>
                               {fiat}<b>{$ab_formated.withdrawal}</b>                         </h1>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<style>
    .ms{
                        width: 50%;
                    }
                    </style>
<div class="row">
    <div class="col-md-12 grid-margin">
        <div class="card">
            <div class="card-body">
                <div class="row">
                    <div class="col-lg-3 col-md-6 border-bottom-m ms">
                        <div class="d-flex align-items-center">
                            <h1 class="ml-auto font-weight-medium">
                                <p class="mb-0 text-muted">TOTAL EARNING</p>
                                {fiat}<b>{$ab_formated.earning}</b>                         </h1>
                        </div>
                    </div>
                    <div class="col-lg-3 col-md-6 border-bottom-m ms">
                        <div class="d-flex align-items-center">
                            <h1 class="ml-auto font-weight-medium">
                                <p class="mb-0 text-muted"> LAST<br> DEPOSIT</p>
                                {$last_deposit|fiat:$last_deposit_ec}                         </h1>
                        </div>
                    </div>
                    <div class="col-lg-3 col-md-6 border-bottom-m ms">
                        <div class="d-flex align-items-center">
                            <h1 class="ml-auto font-weight-medium">
                                <p class="mb-0 text-muted">LAST WITHDRAW </p>
                                {$last_withdrawal|fiat:$last_withdrawal_ec}                       </h1>
                        </div>
                    </div>
                    <div class="col-lg-3 col-md-6 border-bottom-m" style=" width: auto;">
                        <div class="d-flex align-items-center">
                            <h1 class="ml-auto font-weight-medium">
                                <p class="mb-0 text-muted"> Registration date </p>
                                {$userinfo.create_account_date}                             
                            </h1>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="row">
    
    <div class="col-md-12  stretch-card">
        <div class="card">
            <div class="card-body px-0">
                <h4 class="card-title text-center">Recent Transaction</h4>
                <div class="">
                    <table class="table  table-striped">
                        <tbody>
                                                                                                                                                                                                                                        </tbody>
                    </table>
                </div>
                <div class="text-center">
                    <a class=" btn btn-outline-success mt-3 px-3" href="?a=earnings">Show all transactions</a>
                </div>
            </div>
        </div>
    </div>
</div></div>















{*
{loaddata name="user_notices" var=notices}
{if $notices}
<ul style="color:red">
{foreach from=$notices item=n}
<li><b>{$n.title}</b> {$n.text|nl2br}
<form method=post>
<input type=hidden name=a value=user_notices>
<input type=hidden name=action value=notified>
<input type=hidden name=id value={$n.id}>
<input type=submit value="Dismiss">
</form>
{/foreach}
</ul>
{/if}

<h3>Your account:</h3><br>

{if $settings.use_transaction_code ==1 && $userinfo.transaction_code == ''} <b>Note: currently you have not specified 
a Transaction code. The Transaction code strengthens your funds security in our 
system. The code is required to withdraw funds from your account{if $settings.internal_transfer_enabled} 
and for internal transfer to another user account{/if}. Just do not change 'Transaction 
code' in your account information if you do not want to use this feature. <a href=?a=edit_account>Click 
here</a> to specify a new transaction code .</b> <br>
<br>
{/if}

{if $userinfo.tfa_not_enabled} 
<b>Security Note: please, activate <a href="{"?a=security"|encurl}">Two Factor Authentication</a> to keep your account safe.</b>
{/if}

<table cellspacing=0 cellpadding=2 border=0>
<tr>
 <td>User:</td>
 <td>{$userinfo.username}</td>
</tr><tr>
 <td>Registration Date:</td>
 <td>{$userinfo.create_account_date}</td>
</tr><tr>
 <td>Last Access:</td>
 <td>{$last_access|default:"n/a"}&nbsp;</td>
</tr><tr>
 <td>Referral Link:</td>
 <td>{"?ref=`$userinfo.username`"|encurl:0:1}</td>
</tr><tr>
 <td>&nbsp;</td>
</tr><tr>
 <td valign=top>Account Balance:</td>
 <td>{fiat}<b>{$ab_formated.total}</b><br>
 <small>
{foreach from=$ps item=p}
   {if $p.balance > 0}{$p.balance|fiat:$p.id} of {$p.name}<br>{/if}
{/foreach}
</tr><tr>
 <td>Earned Total:</td>
 <td>{fiat}<b>{$ab_formated.earning}</b></td>
</tr><tr>
 <td>Pending Withdrawal:</td>
 <td>{fiat}<b>{$ab_formated.withdraw_pending}</b></td>
</tr><tr>
 <td>Withdrew Total:</td>
 <td>{fiat}<b>{$ab_formated.withdrawal}</b></td>
</tr><tr>
 <td>Active Deposit:</td>
 <td>{fiat}<b>{$ab_formated.active_deposit}</b></td>
</tr><tr>
 <td>&nbsp;</td>
</tr>
{if $last_deposit}
<tr>
 <td>Last Deposit:</td>
 <td><b>{$last_deposit|fiat:$last_deposit_ec}</b> &nbsp; <small>{$last_deposit_date|default:"n/a"}</small></td>
</tr>
{/if}
{if $ab_formated.deposit != 0}
<tr>
 <td>Total Deposit:</td>
 <td><b>{$ab_formated.deposit|fiat}</b></td>
</tr>
{/if}
{if $last_withdrawal}
<tr>
 <td>Last Withdrawal:</td>
 <td><b>{$last_withdrawal|fiat:$last_withdrawal_ec}</b> &nbsp; <small>{$last_withdrawal_date|default:"n/a"}</small></td>
</tr>
{/if}
{if $ab_formated.withdrawal > 0}
<tr>
    <td>Withdrew Total:</td>
 <td><b>{$ab_formated.withdrawal|fiat}</b></td>
</tr>
{/if}
<tr>
 <td>&nbsp;</td>
</tr></table>

{foreach from=$ps item=p}
  {if $p.pending_col > 0}{$p.pending_col} {$p.name} deposit{if $p.pending_col > 1}s{/if} of {$p.pending_amount|fiat} total pending<br>{/if}
{/foreach}

<br><br>
*}

{include file="mfooter.tpl"}