laravel pagination showing current items count numbers
I have implemented pagination successfully.
Right now according to current page I wanna show a sentence like:
Showing 15 to 30 of 57 entries
which 15 is starting items number in table
30 is last item number
and 57 is all items count
Does anybody know how I get this
Showing {{($users->currentpage()-1)$users->perpage()+1}} to {{(($users->currentpage()-1)$users->perpage())+$users->count()}} of {{$users->total()}} entries
@Mithridates answer worked but wondering how come {{($shops->currentpage()-1)*$shops->perpage()+1}} evaluates. because if current page is 1 then it will be something (1-1) i.e. 0*anything = 0