 <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>Sl No</th>
                  <th>Facebook</th>
                  <th>Linkedin</th>
                  <th>Youtube</th>
                  <th>Instagram</th>
                  <th>Twitter</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($Setting)>0)
            @foreach($Setting as $key=> $row)
            <tr>
                <td>{{$Setting->firstItem() + $key}}</td>
                <td>@if(isset($row->facebook)){{$row->facebook}}@endif</td>
                <td>@if(isset($row->linkedin)){{$row->linkedin}}@endif</td>
                <td>@if(isset($row->youtube)){{$row->youtube}}@endif</td>
                <td>@if(isset($row->instagram)){{$row->instagram}}@endif</td>
                <td>@if(isset($row->twitter)){{$row->twitter}}@endif</td>
                <td align="center"> 
                <div class="form-check form-check-inlinecheckstatus{{$row->id}}">
                    <input class="form-check-inputcheckstatus{{$row->id}} btn-lg changeStatus" type="checkbox" id="inlineCheckboxcheckstatus{{$row->id}}" data-url="{{route('settings.changestatus')}}" data-id="{{$row->id}}" data-status="@if($row->status=='0'){{'1'}}@elseif($row->status=='1'){{'0'}}@endif" @if($row->status=='1'){{'checked'}}@elseif($row->status=='0'){{''}}@endif>
                </div>

                </td>
                <td align="center"> 
                    <a href="{{route('settings.edit',$row->id)}}" class="btn btn-warning" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Edit">
                        <i class="bi bi-pencil-square text-white"></i>
                    </a>

                </td>


                <td align="center">
                    <a href="#" data-url="{{route('settings.delete')}}" data-id="{{$row->id}}"  class="btn btn-danger deleteData" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Delete">
                        <i class="bi bi-trash-fill text-white"></i>
                    </a>
                </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">
            {!! $Setting->onEachSide(0)->render('website-setting.settings.pagination') !!}
        </ul>
    </nav>
</div>
</div>

