I'm working with laravel 5.1 I want to get the range of every page shown in a blade view for example if i have 30 records
$employees= \Auth::user()->employees()->paginate(10);
for every page 10
I want to write the number in the blade view like this
for the first page
from 1 to 10 from total 30
for the second page
from 11 to 20 from total 30
for the third page
from 21 to 30 from total 30
for the total it's easy by calling total() method
but what about others ? is there any solution
thanks in advance
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire