@if($items->lastPage() > 1)
        <nav class="ls-pagination">
                        <ul>
                        @if($items->currentPage() >1)<li class="prev"><a href="{{fullUrl($slug)}}?page={{$items->currentPage() -1}}"><i class="icofont-rounded-left"></i></a></li>@endif
                        @php 
                        if($items->currentPage() > 7) $startpage = $items->currentPage()-7; else $startpage = 1;
                        if(($items->lastPage() - $items->currentPage()) > 7) $lastpage = $items->currentPage()+7; else $lastpage = $items->lastPage() ;
                        @endphp
                        @for($i = $startpage; $i<= $lastpage; $i++)
                            
                           
                            <li><a href="{{fullUrl($slug)}}?page={{$i}}" class="{{($items->currentPage() == $i)?'current-page':''}}">{{$i}}</a></li>
                           
                           
                            @endfor   
                            @if($items->currentPage() != $items->lastPage() ) <li class="next"><a href="{fullUrl($slug)}}?page={{$items->currentPage() + 1 }}"><i class="icofont-rounded-right"></i></a></li>@endif
                        </ul>
                    </nav>

  
       @endif
                