<div class="card-body" id="tables">
     <div class="table-responsive">
         <table class="table table-bordered align-middle" style="width:100%">
             <thead class="table-light">
                 <tr>
                     <th class="thbutton">Sl No</th>
                     <th>Title</th>
                     <th>Category / Sub Category</th>
                     <th class="thbutton">Priority</th>
                     <th>New Tag</th>
                     <th class="thbutton">Status</th>
                     <th class="thbutton">Edit</th>
                     <th class="thbutton">Delete</th>
                 </tr>
             </thead>
             <tbody>
                 @php $i=1;@endphp
                 @if(count($content)>0)
                 @foreach($content as $key=> $row)
                 <tr>
                     <td class="text-center">{{$content->firstItem() + $key}}</td>
                     <td>@if(isset($row->link))
                         <a href="{{$row->link}}" target="_blank">{{$row->title}}</a>
                         @else
                         {{$row->title}}
                         @endif
                     </td>
                     <td>
                        <b>{{$row->getCategory?$row->getCategory->name:''}}</b><br>
                        {{$row->getsubCategory?$row->getsubCategory->sub_category_name:''}}
                    </td>
                     <td>@if(isset($row->prority_status)){{$row->prority_status}}@endif</td>
                     <td>@if(isset($row->new_tag)){{$row->new_tag}}@endif</td>
                     <td align="center">
                         <div class="form-check form-check-inline{{$i}}">
                             <input class="form-check-input{{$i}} btn-lg changeStatusCustom" type="checkbox" id="inlineCheckbox{{$i}}" data-url="{{route('public-content.changestatus')}}" data-id="{{$row->id}}" data-status="{{$row->status=='0' ? '1' : '0'}}" {{ $row->status=='1' ? 'checked' : ''}}>
                         </div>
                     </td>
                     <td align="center">
                        @if(in_array('website-content-edit', $authRolePermissions))
                         <a href="{{route('public-content.edit',$row->id)}}?redirect=content-sub-category&category_id={{$category_id}}&subcategory_id={{$id}}" class="btn btn-outline-secondary edit" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Edit">
                             <i class="bi bi-pencil-square"></i>
                         </a>
                         @endif
                     </td>
                     <td align="center">
                        @if(in_array('website-content-delete', $authRolePermissions))
                         <a data-url="{{route('public-content.delete')}}" data-id="{{$row->id}}" class="btn btn-danger deleteDataCustom" class="text-danger" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Delete">
                             <i class="bi bi-trash text-white"></i>
                         </a>
                         @endif
                     </td>

                 </tr>
                 @php $i++; @endphp
                 @endforeach
                 @else
                 <tr>
                     <td colspan="10">No Data Found</td>
                 </tr>
                 @endif
             </tbody>
         </table>
     </div>
     <div class="table-responsive">
         <nav class="float-start mt-2">
             <ul class="pagination">
                 {!! $content->onEachSide(1)->render('website-setting.contents.pagination') !!}
             </ul>
         </nav>
     </div>
 </div>