Hide Pagination Buttons on first/last page of repeater

You surely have connected your REPEATER via a DATASET with your COLLECTION, since you did not mentioned and showed any CODE.

If so, then you normaly should be able to control the NEXT & PREVIOUS BUTTONS on the dataset itself.

With this you can CHECK if there is a NEXT or a PREVIOUS ITEM …
You will get as RESULT either a TRUE or a FALSE output (boolean-vlaue).

$w.onReady( () => {
  $w("#myDataset").onReady( () => {
    let hasPrevious = $w("#myDataset").hasPrevious(); // true

  });
});

Depending on the RESULT you can show or hide your NEXT / PREVIOUS button using a simple IF-ELSE-QUERY…

example:

if( .......... ) { .......... }
else { ......... }

if( hasPrevious === false ) {$w('#myPreviousButtonIDhere').hide()}
else {$w('#myPreviousButtonIDhere').show()}