We can use foreach collection items index as serial no (SL) in pagination.
1...2<th>Serial</th>3 ...4 @foreach ($products as $product)5 <tr>6 <td>{{ $loop->index + $product->firstItem() }}</td>7 ...8 @endforeach
it will solve the issue of next pages(?page=2&...) index count from continue.