<div class="ub-container margin-bottom">
    <div class="row">
        @foreach(\Module\CmsHelp\Util\CmsHelpCategoryUtil::tree() as $group)
            <div class="col-md-4 col-12">
                <div class="tw-p-1 margin-bottom">
                    <div class="ub-list j-article-category-item" >
                        <div class="head">
                            <div class="title">
                                <div class="tw-text-xl tw-font-bold tw-p-2">
                                    {{$group['name']}}
                                </div>
                            </div>
                        </div>
                        <div class="body">
                            <div class="tw-px-2">
                                <div class="row">
                                    @if(!empty($group['_child']))
                                        @foreach($group['_child'] as $item)
                                            <div class="col-md-6 col-6">
                                                <a class="item-b" href="{{$__msRoot}}help/category/{{$item['id']}}">{{$item['name']}}</a>
                                            </div>
                                        @endforeach
                                    @endif
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        @endforeach
    </div>
</div>
<script>
    $(function () {
        if($(window).width()>800){
            var max = 0
            $('.j-article-category-item').each(function (i,o) {
                max = Math.max(max,$(o).height());
            }).css('height',max+'px');
        }
    });
</script>
