I'm trying to make something similar to reddit (just the ranking idea in a list of rows) and want each row counted consecutively.
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! :)
{{ $loop->iteration + $perPage * ($currentPage - 1) }}
or similar?