/** * @param string $text * * @return ListItem */ protected function renderNextButton($text = null) { $content = Std::coalesce($text, Html::safe('»')); if (!$this->paginator->hasMorePages()) { return $this->getDisabledPageWrapper($content); } return $this->getPageWrapper($content, $this->paginator->url($this->paginator->currentPage() + 1)); }
/** * Get the next page number. * * @param \Illuminate\Contracts\Pagination\Paginator $paginator * * @return string|null */ public function nextPage(Paginator $paginator) { if (!$paginator->hasMorePages()) { return; } return $this->currentPage() + 1; }
/** * Get the next page number * * @param \Illuminate\Contracts\Pagination\Paginator $paginator * @return string|null */ public function nextPage(Paginator $paginator) { if (!$paginator->hasMorePages()) { return null; } return $this->router->getCurrentRoute()->parameter('page', 1) + 1; }
/** * Get html tag for the next page link. * * @return string */ protected function getNextButton() { if (!$this->paginator->hasMorePages()) { return $this->getDisabledLink($this->nextButtonText); } $url = $this->paginator->url($this->paginator->currentPage() + 1); return $this->getPrevNextPageLinkWrapper($url, $this->nextButtonText, 'next'); }
/** * Get the next page pagination element. * * @param string $text * * @return string */ public function getNextButton($text = '»') { // If the current page is greater than or equal to the last page, it means we // can't go any further into the pages, as we're already on this last page // that is available, so we will make it the "next" link style disabled. if (!$this->paginator->hasMorePages()) { return '<li class="arrow unavailable has-form"><a>' . $text . '</a></li>'; } $url = $this->paginator->nextPageUrl(); return '<li class="arrow has-form"><a href="' . $url . '">' . $text . '</a></li>'; }
/** * Get the next page pagination element. * * @return string */ protected function getNextButton() { // If the current page is greater than or equal to the last page, it means we // can't go any further into the pages, as we're already on this last page // that is available, so we will make it the "next" link style disabled. if (!$this->paginator->hasMorePages()) { return $this->getDisabledTextWrapper($this->getNextButtonText()); } $url = $this->paginator->url($this->paginator->currentPage() + 1); return $this->getPageLinkWrapper($url, $this->getNextButtonText()); }
/** * Get the next page pagination element. * * @param string $text * @return string */ public function getNextButton($text = '»') { // If the current page is greater than or equal to the last page, it means we // can't go any further into the pages, as we're already on this last page // that is available, so we will make it the "next" link style disabled. if (!$this->paginator->hasMorePages()) { return '<span class="btn_pg btn_next"><i class="xi-angle-right"><span class="bd_hidden">' . $text . '</span></i></span>'; } $url = $this->paginator->url($this->paginator->currentPage() + 1); return '<a href="' . $url . '" class="btn_pg btn_next"><i class="xi-angle-right"><span class="bd_hidden">' . $text . '</span></i></a>'; }