In this Livewire code I have a query redundancy so that I can indicate which id the query should start from, however, this creates a repetition of the query for me.
My homepage to make you understand is structured like this:
In doing so, however, the situation remains similar to my current one, it always runs a query just for counting, I wanted to find a way to do everything just with a query