<style>
    tr.unvis_1 > td {
        color:  #6c757d !important;
    }
    tr.unvis_1  {
        opacity: .6;
    }

</style>
<div class="container-fluid">
    <div class="row">
        <div class="col-12" id="colTable">
            <div class="bg-white rounded p-2">
                <h2 class="mb-2">{{$cat->cat_name}}</h2>
                <div class="p-2 bg-light">
                    @if($module->add)
                        <a href="?cat={{$cat->cat}}&act=edit&id=0" data-fancybox data-type="ajax" class="btn btn-success btn-sm"><i class="far fa-plus"></i> Создать</a>
                    @endif
                    <button class="btn btn-primary btn-sm" type="button" data-toggle="collapse" data-target="#pageFilter" aria-expanded="false" aria-controls="multiCollapseExample2"><i class="far fa-filter"></i> Фильтр</button>
                </div>
                <div class="q_filter collapse bg-light p-2 mt-2" id="pageFilter">
                    <form>
                        <input type="hidden" name="cat" value="{{$cat->cat}}">
                            {!! $filter !!}
                            <div class="form-group mt-3">
                                <button type="submit" class="btn btn-primary">Показать</button>
                            </div>
                    </form>
                </div>
                <div class="table-responsive mt-3">
                    <table class="table table-sm small table-hover table2excel">
                        <thead>
                            <tr>
                                <th>ID</th>
                                @foreach($cols as $colName => $colTitle)
                                    <th>{{$colTitle}}</th>
                                @endforeach
                                @if($module->del)
                                    <th>Уд.</th>
                                @endif
                            </tr>
                        </thead>
                        <tbody>
                        @while($row->next())
                            <tr class="unvis_{{$row->get('_sys_unvisible')}}">
                                <td class="text-nowrap">
                                    <a href="?cat={{$cat->cat}}&act=edit&id={{$row->id}}&curpage={{$page}}{{$filterUrl}}" data-fancybox data-type="ajax"><i class="fas fa-edit"></i></a>
                                    {{$row->id}}
                                </td>
                                @foreach($cols as $colName => $colTitle)
                                    <td>
                                        {!! $row->render($colName,true) !!}
                                    </td>
                                @endforeach
                                @if($module->del)
                                    <td><a href="?cat={{$cat->cat}}&act=del&id={{$row->id}}&curpage={{$page}}{{$filterUrl}}" onClick="return confirm('Удалить?');" title="Удалить"><i class="fas fa-times text-danger "></i></a></td>
                                @endif
                            </tr>
                        @endwhile
                        </tbody>
                    </table>
                </div>
                {!! $walker !!}
            </div>
        </div>
    </div>
</div>