@extends($_viewFrame)

@section('pageTitleMain'){{$category['name']}}@endsection
@section('pageKeywords'){{$category['name']}}@endsection
@section('pageDescription'){{$category['name']}}@endsection

@section('bodyContent')

    <div class="ub-container margin-bottom margin-top">
        <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'=>$category['id']])
            </div>
            <div class="col-md-9 col-12">
                <div class="ub-content-box margin-bottom">
                    <div class="ub-breadcrumb">
                        @foreach($categoryChain as $index=>$item)
                            @if($index+1<count($categoryChain))
                                <a href="{{$__msRoot}}help/category/{{$item['id']}}">{{$item['name']}}</a>
                            @endif
                        @endforeach
                        @if(count($categoryChain))
                            <a class="active" href="javascript:;">{{$categoryChain[count($categoryChain)-1]['name']}}</a>
                        @endif
                    </div>
                </div>
                <div class="ub-list">
                    <div class="head">
                        <div class="title">
                            <div class="tw-text-xl tw-font-bold tw-py-2">
                                {{$category['name']}}
                            </div>
                        </div>
                    </div>
                    <div class="body">
                        <div class="tw-p-2">
                            @foreach($cmsHelps as $cmsHelp)
                                <a class="item-c tw-text-lg" href="{{$__msRoot}}help/{{$cmsHelp['id']}}">
                                    <i class="iconfont icon-description"></i>
                                    {{$cmsHelp['title']}}
                                </a>
                            @endforeach
                            @if(empty($cmsHelps))
                                <div class="ub-empty">
                                    <div class="icon"><i class="iconfont icon-empty-box"></i></div>
                                    <div class="text">暂无记录</div>
                                </div>
                            @endif
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

@endsection





