I'm trying to make something similar to reddit (just the ranking idea in a list of rows) and want each row counted consecutively.
Example 
I can do this on one page with the tag
{{ $loop->iteration }}
Unfortunately, when I go to the second page, as I am using pagination, the numbers start over at 1. However, I would like them to continue from the last number on the previous page.
Any idea how to fix this?
I appreciate your help! :)
you can use $loop->index instead of $loop->iteration in the following way
{{ ($players ->currentpage()-1) * $players ->perpage() + $loop->index + 1 }}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With