@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" style="display:block;">
{{--                        <a class="{{modstart_baseurl_active('/paper_exam_member')}}" href="/paper_exam_member">文档设置</a>--}}
                        <a href="/doc" target="_blank">文档管理</a>
                    </div>
                    <div class="title"><i class="icon iconfont icon-user"></i> 资料</div>
                    <div class="items" style="display:block;">
                        <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>
                <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>
            </div>
            <div class="col-md-10">
                @section('memberBodyContent')
                    {!! $content or '' !!}
                @show
            </div>
        </div>
    </div>

@endsection