@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-fill222"></i> 短链接</div>
                    <div class="items">
                        <a class="{{modstart_baseurl_active('/workbench/link_generate')}}" href="/workbench/link_generate">生成短链接</a>
                        <a class="{{modstart_baseurl_active('/workbench/link_manage')}}" href="/workbench/link_manage">我的短链接</a>
                        <a class="{{modstart_baseurl_active('/workbench/link_report')}}" href="/workbench/link_report">数据统计</a>
                    </div>
                    <div class="title"><i class="icon iconfont icon-user"></i> 资料</div>
                    <div class="items">
                        <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