<?php
// 内页左边栏
/* @var $this \yii\web\View */
/* @var $content string */
use yii\helpers\Html;
use yii\helpers\Url;

/** @var \backend\models\MemberIdentity $identity */
$identity = Yii::$app->getUser()->getIdentity(false);
$mt4User = $identity->getMt4user();
?>
<div class="ibox float-e-margins">
    <div class="ibox-content mailbox-content">
        <div class="file-manager">

            <button aria-controls="navbar" aria-expanded="false" data-target="#navbar2" data-toggle="collapse" class="navbar-toggle collapsed pull-left" type="button">
                <i class="fa fa-list"></i>
            </button>
            <div class="clearfix"></div>

            <div class="navbar-collapse collapse" id="navbar2" style="padding:0px;">

                <a class="btn btn-block btn-primary" href="<?= Url::to(['/ib/users']) ?>"><i class="fa fa-chevron-left"></i> 返回</a>
                <div class="space-25"></div>
                <h2><?= $login ?> <small>账户详情</small></h2>
                <div class="space-25"></div>
                <!--<h5>概要/返佣规则</h5>-->
				<h5>概要</h5>
                <ul class="folder-list m-b-md" style="padding:0">
                    <li>
                        <a href="<?= Url::to(['/ib/statistics?login=' .$login]) ?>"> <i class="fa fa-circle-o"></i> 账户概要 </a>
                    </li>
                    <!--<li>
                        <a href="<?= Url::to(['/ib/scommission?login=' .$login]) ?>"> <i class="fa fa-circle-o"></i> 返佣规则 </a>
                    </li>-->
                </ul>
                <h5>出入金</h5>
                <ul class="folder-list m-b-md" style="padding:0">
                    <li>
                        <a href="<?= Url::to(['/ib/sdeposit?login=' .$login]) ?>"> <i class="fa fa-circle-o"></i> 入金报表 </a>
                    </li>
                    <li>
                        <a href="<?= Url::to(['/ib/swithdraw?login=' .$login]) ?>"> <i class="fa fa-circle-o"></i> 出金报表</a>
                    </li>
                </ul>
                <h5>交易</h5>
                <ul class="folder-list m-b-md" style="padding:0">
                    <li>
                        <a href="<?= Url::to(['/ib/sposition?login=' .$login]) ?>"> <i class="fa fa-circle-o"></i> 持仓报表 </a>
                    </li>
                    <li>
                        <a href="<?= Url::to(['/ib/spending?login=' .$login]) ?>"> <i class="fa fa-circle-o"></i> 挂单报表</a>
                    </li>
                    <li>
                        <a href="<?= Url::to(['/ib/shistory?login=' .$login]) ?>"> <i class="fa fa-circle-o"></i> 历史报表</a>
                    </li>
                </ul>
                <div class="clearfix"></div>

            </div>

        </div>
    </div>
</div>

<?php $this->beginBlock('left_menu_script'); ?>
<script>
$('.fa').each(function () {
    var href = $(this).parent().attr('href');
    if (href && href.indexOf('?') > -1) {
        var path = href.slice(0, href.indexOf('?'));
    } else {
        var path = href;
    }
    if (path == location.pathname) {
        $(this).removeClass('fa-circle-o').addClass('fa-circle');
    }
});
</script>
<?php $this->endBlock(); ?>