<ul class="pagination pagination-circle">
    @if($gofirstpage)
    <li class="page-item first">
        <a href="{{ $itemlink }}?page=1" class="page-link" data-page="1">
            <i class="ri-arrow-left-double-line"></i>
        </a>
    </li>
    @endif
    <li class="page-item previous{{ $activepage == 1 ? ' disabled':'' }}">
        <a href="{{ $itemlink }}?page={{ $activepage-1 }}" class="page-link" data-page="{{ $activepage-1 }}">
            <i class="ri-arrow-left-s-line"></i>
        </a>
    </li>
    @for($i = $startcount; $i <= $endcount; $i++)
        <li class="page-item{{ $i == $activepage ? ' active':'' }}">
            <a href="{{ $itemlink }}?page={{ $i }}" class="page-link" data-page="{{ $i }}">{{ $i }}</a>
        </li>
    @endfor
    <li class="page-item next {{ $pagecount-$activepage == 0 ? ' disabled':'' }}">
        <a href="{{ $itemlink }}?page={{ $activepage+1 }}" class="page-link" data-page="{{ $activepage+1 }}">
            <i class="ri-arrow-right-s-line"></i>
        </a>
    </li>
    @if($golastpage)
    <li class="page-item last">
        <a href="{{ $itemlink }}?page={{ $pagecount }}" class="page-link" data-page="{{ $pagecount }}">
            <i class="ri-arrow-right-double-line"></i>
        </a>
    </li>
    @endif
</ul>