<!DOCTYPE html>
<html>
@include('admin.common.commonMedia')
<body>

<!--====================================================
                         MAIN NAVBAR
======================================================-->
@include('admin.common.header')

<!--====================================================
                        PAGE CONTENT
======================================================-->
<div class="page-content d-flex align-items-stretch">

    <!--***** SIDE NAVBAR *****-->
    {{--@include('admin.common.left')--}}

    <div class="content-inner" style="width: 100%;">

        @if(!empty($catgs))

        <div class="row" id="report4">

            @foreach($catgs as $catg)
                <div class="col-md-4" onclick="important_task('/web/privilege','{{$catg["_id"]}}','{{$catg["media_category_id"]}}')">
                    <div class="card text-center social-bottom sb-in">
                        <i class="fa fa-instagram"></i>
                        {{--<div>500 +</div>--}}
                        <p>{{$catg['name']}}</p>
                    </div>
                </div>
            @endforeach

        </div>

        @else
            <div class="no-service">暂无相关业务</div>
        @endif
    </div>
</div>

<style>
    .no-service{
        text-align: center;
        line-height: 200px;
        min-height: 200px;
    }

</style>

<script src="{{ asset('xadmin/js/popper/popper.min.js')}}"></script>
<script src="{{ asset('xadmin/js/tether.min.js')}}"></script>
<script src="{{ asset('xadmin/js/bootstrap.min.js')}}"></script>
<script src="{{ asset('xadmin/js/jquery.cookie.js')}}"></script>
<script src="{{ asset('xadmin/js/chart.min.js')}}"></script>
<script src="{{ asset('xadmin/js/front.js')}}"></script>

<link rel="stylesheet" href="{{ asset('xadmin/icon/iconfont.css')}}">

<!--Core Javascript -->
<script>
    function important_task(url,category_id,appid){
        $.cookie('media_category_id',category_id)
        $.cookie('appid',appid)
        window.location.href = url+'?category_id='+category_id+'&appid='+appid;
    }
</script>


</body>

</html>