@props([
'data', // expects a LengthAwarePaginator instance (e.g., $submissions)
])
{{-- LEFT SIDE: Showing X to Y of Z entries --}}
@if ($data->count() > 0)
Showing
{{ $data->firstItem() }}
to
{{ $data->lastItem() }}
of
{{ $data->total() }}
entries
@endif
{{-- RIGHT SIDE: Pagination --}}
{{ $data->appends(request()->query())->links('pagination::bootstrap-5') }}