@if($batches->hasPages())
{{-- Previous Button --}} @if($batches->onFirstPage()) @else Previous @endif Page {{ $batches->currentPage() }} of {{ $batches->lastPage() }} {{-- Next Button --}} @if($batches->hasMorePages()) Next @else @endif
@endif