<xblock>
@if(Auth::user()->name==config('custom.supper_admin.name'))
    @if( $methodName == 'mynews')
    <button class="layui-btn" onclick="x_admin_show1('添加新闻','/web/news/create',1100,550)"><i class="layui-icon"></i>添加</button>
    @endif
    {{--<button class="layui-btn" onclick="check_mul_news_yes()">审核通过</button>--}}
    @if($methodName != 'progressing_news' && $methodName != 'mynews')
            <button class="layui-btn" onclick="resetSort({{$category_id}})">一键重置排序</button>
        @endif
        @if( $methodName != 'progressing_news' )

            <button class="layui-btn" onclick="recommend_news('recommend')">推荐热门</button>
            <button class="layui-btn" onclick="recommend_news('cannel_recommend')">取消推荐</button>
            <button class="layui-btn" onclick="channelSlide('home')">取消推荐轮播</button>
            <button class="layui-btn" onclick="channelTop('home')">取消推荐置顶</button>
            <button class="layui-btn" onclick="channelSlide('column')">取消栏目轮播</button>
            <button class="layui-btn" onclick="channelTop('column')">取消栏目置顶</button>
        @endif

@else
    @if( $methodName == 'mynews')
    {{--@ifHasRole('admin|editor|one_auditor|two_auditor')--}}
    @ifHasRole('editor')
    @ifHasPermission('news.check_mul_news')

    <button class="layui-btn" onclick="x_admin_show1('添加新闻','/web/news/create',1100,1150)"><i class="layui-icon"></i>添加</button>
    <button class="layui-btn" onclick="check_mul_news()">提交报审</button>
    @endIfHasPermission
    @endIfHasRole
    @endif
    {{--一审人员和二审人员具有审核通过和驳回修订的权限--}}
    @if( $methodName == 'index')
    @ifHasRole('one_auditor')
    @ifHasPermission('news.check_mul_news_yes')
    <button class="layui-btn" onclick="check_mul_news_yes()">通过并提交二审</button>
    @endIfHasPermission
    @ifHasPermission('news.check_mul_news_no')
    <button class="layui-btn" onclick="check_mul_news_no()">驳回修订</button>
    @endIfHasPermission
    @endIfHasRole
    @ifHasRole('two_auditor')
    @ifHasPermission('news.check_mul_news_yes')
    <button class="layui-btn" onclick="check_mul_news_yes()">审核通过</button>
    @endIfHasPermission
    @ifHasPermission('news.check_mul_news_no')
    <button class="layui-btn" onclick="check_mul_news_no()">驳回修订</button>
    @endIfHasPermission
    @endIfHasRole
    @endif
    @if($category_id!=0 && $methodName != 'progressing_news' && $methodName != 'mynews')
          @if( $methodName != 'progressing_news')
            <button class="layui-btn" onclick="resetSort({{$category_id}})">一键重置排序</button>
          @endif
    @endif
    @ifHasRole('admin|editor|one_auditor|two_auditor')
    @ifHasPermission('news.recommend_news')
    @if($methodName != 'progressing_news')
    <button class="layui-btn" onclick="recommend_news('recommend')">推荐热门</button>
    <button class="layui-btn" onclick="recommend_news('cannel_recommend')">取消推荐</button>
    @endif
    @endIfHasPermission
    @endIfHasRole
        @if( $methodName != 'progressing_news')
        <button class="layui-btn" onclick="channelSlide('home')">取消推荐轮播</button>
        <button class="layui-btn" onclick="channelTop('home')">取消推荐置顶</button>
        <button class="layui-btn" onclick="channelSlide('column')">取消栏目轮播</button>
        <button class="layui-btn" onclick="channelTop('column')">取消栏目置顶</button>
        @endif

    {{--@endIfHasRole--}}
@endif

@if(count($news_contents)>0)
    <span class="x-right" style="line-height:40px">共有数据：{{$news_contents->total()}} 条</span>
@endif
</xblock>