Agregué una paginación usando este sitio https://flaviusmatis.github.io/simplePagination.js/ pero no estoy seguro de cómo agregar el primer y último enlace en javascript.
<script> jQuery(function() { var items = jQuery("table tbody tr"); var numItems = items.length; var perPage = 10; // Only show the first 2 (or first `per_page`) items initially. items.slice(perPage).hide(); jQuery("#pagination").pagination({ items: numItems, itemsOnPage: perPage, cssStyle: "light-theme", // This is the actual page changing functionality. onPageClick: function(pageNumber) { // We need to show and hide `tr`s appropriately. var showFrom = perPage * (pageNumber - 1); var showTo = showFrom + perPage; // We'll first hide everything... items.hide() // ... and then only show the appropriate rows. .slice(showFrom, showTo).show(); } }); }); </script>