@extends($_viewFrame)

@section('pageTitle', (!empty($pageTitle)?$pageTitle.' - ':'').modstart_config('siteName'))

@section('bodyContent')

    <div class="ub-container margin-top">
        <div class="row">
            <div class="col-md-2">
                <div class="ub-menu">
                    <div class="title"><i class="icon iconfont icon-details"></i> 考试</div>
                    <div class="items open">
                        <a class="{{modstart_baseurl_active('/paper_exam_member')}}" href="/paper_exam_member">我的考试</a>
                    </div>
                    <div class="title"><i class="icon iconfont icon-fill222"></i> 题目</div>
                    <div class="items open">
                        <a class="{{modstart_baseurl_active('/question_favorite_member')}}" href="/question_favorite_member">收藏的题目</a>
                    </div>
                    <div class="title"><i class="icon iconfont icon-user"></i> 资料</div>
                    <div class="items open">
                        <a href="/member_profile/password" class="{{modstart_baseurl_active('/member_profile/password')}}">修改密码</a>
                        <a href="/member_profile/avatar" class="{{modstart_baseurl_active('/member_profile/avatar')}}">修改头像</a>
                        <a href="/member_profile/phone" class="{{modstart_baseurl_active('/member_profile/phone')}}">绑定手机</a>
                        <a href="/member_profile/email" class="{{modstart_baseurl_active('/member_profile/email')}}">绑定邮箱</a>
                    </div>
                </div>
                @if(0)
                <script>
                    $(function () {
                        var $menu = $('.ub-menu');
                        $menu.find('.items .active').parent().show();
                        $menu.find('.title').on('click',function () {
                            var $next = $(this).next();
                            $next.is(':visible')?$next.slideUp():$next.slideDown();
                        });
                    });
                </script>
                @endif
            </div>
            <div class="col-md-10">
                @section('memberBodyContent')
                    {!! $content or '' !!}
                @show
            </div>
        </div>
    </div>

@endsection