@extends($_viewFrame)

@section('pageTitleMain'){{$record['title']}}@endsection
@section('pageKeywords'){{$record['title']}}@endsection
@section('pageDescription'){{$record['title']}}@endsection

@section('bodyContent')

    <div class="ub-container margin-top margin-bottom">
        <div class="ub-container-row">
            <div class="row">
                <div class="col-md-3 col-12">
                    @include('module::CmsHelp.View.pc.cmsHelp.inc.cmsHelpTree',['tree'=>\Module\CmsHelp\Util\CmsHelpCategoryUtil::tree(),'id'=>$record['categoryId']])
                </div>
                <div class="col-md-9 col-12">
                    <div id="pageContent">
                        <div class="ub-content-box margin-bottom">
                            <div class="ub-breadcrumb">
                                @foreach($categoryChain as $item)
                                    <a href="{{$__msRoot}}help/category/{{$item['id']}}">{{$item['name']}}</a>
                                @endforeach
                                <a class="active" href="{{$__msRoot}}help/{{$record['id']}}">{{$record['title']}}</a>
                            </div>
                        </div>
                        <div class="ub-article" style="background:#FFF;padding:20px;">
                            <h1 class="ub-text-center">
                                <div class="tw-py-3">
                                    {{$record['title']}}
                                </div>
                            </h1>
                            <div class="content ub-html lg">
                                {!! $record['content'] !!}
                            </div>
                            <div class="attr">
                                <div class="tw-float-right">
                                    最后更新：{{$record['updated_at']}}
                                </div>
                                &nbsp;
                                @if(0)
                                    <a class="btn btn-round" href="{{$__msRoot}}help/category/{{$record['categoryId']}}">
                                        <i class="iconfont icon-thumb-up"></i>
                                        有帮助
                                    </a>
                                    <a class="btn btn-round" href="{{$__msRoot}}help/category/{{$record['categoryId']}}">
                                        <i class="iconfont icon-thumb-down"></i>
                                        没帮助
                                    </a>
                                @endif
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

@endsection





