I tried using
@foreach ($product as $index => $pro)
<td>{{$index+1}} </td>But every change page, number back to first.. Thank you.
Is there a problem if you use the product id? which i suppose you have one in your product table
{{ $key+1+(($employees->getCurrentPage()-1)*$employees->getPerPage()) }}
Change $key with $index and $employees with your collection
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community