protected function getPreviousButton()
{
// If the current page is less than or equal to one, it means we can't go any
// further back in the pages, so we will render a disabled previous button
// when that is the case. Otherwise, we will give it an active "status".
if ($this->paginator->currentPage() <= 1) {
return $this->getDisabledTextWrapper($this->getPreviousButtonText());
}
$url = $this->paginator->url($this->paginator->currentPage() - 1);
return $this->getPageLinkWrapper($url, $this->getPreviousButtonText());
}