In your template, example:
@if ($paginator->hasPages())
<ul class="pagination">
{{-- Previous Page Link --}}
@if ($paginator->onFirstPage())
<li class="disabled"><span>{{ __('Prev') }}</span></li>
@else
<li><a href="{{ $paginator->previousPageUrl() }}" rel="prev">{{ __('Prev') }}</a></li>
@endif
{{ "Page " . $paginator->currentPage() . " of " . $paginator->lastPage() }}
{{-- Next Page Link --}}
@if ($paginator->hasMorePages())
<li><a href="{{ $paginator->nextPageUrl() }}" rel="next">{{ __('Next') }}</a></li>
@else
<li class="disabled"><span>{{ __('Next') }}</span></li>
@endif
</ul>
@endif
Replace this line with your line
{{ "Page " . $paginator->currentPage() . " of " . $paginator->lastPage() }}
Instead of using $paginator->lastPage()
use
$paginator->total()
note also
Use the template from the style needed, bootstrap, tailwind, plain, as laravel has several it comes with.
Publish the templates, or I usually just copy the one I need to modify. Don't modify anything in the vendor folder.
So answer is:
{{ "Showing from " . $paginator->firstItem() . " to " . $paginator->lastItem() . " of " . $paginator->total() }}
All this was in the chapter on pagination.