@if ($sms->hasPages())
@php
$from = ($sms->currentPage() - 1) * $sms->perPage() + 1;
$to = min($sms->total(), $sms->currentPage() * $sms->perPage());
@endphp
{{ $from }}–{{ $to }}/{{ $sms->total() }}
{{-- Previous Page --}}
@if ($sms->onFirstPage())
@else
@endif
{{-- Next Page --}}
@if ($sms->hasMorePages())
@else
@endif