simplePaginate( perPage: ($this->getTableRecordsPerPage() === 'all') ? $query->count() : $this->getTableRecordsPerPage(), pageName: $this->getTablePaginationPageName(), ); } /** * @deprecated Override the `table()` method to configure the table. */ protected function getTableHeading(): string | Htmlable | null { return static::$heading; } protected function makeTable(): Table { return $this->makeBaseTable() ->heading( $this->getTableHeading() ?? (string) str(class_basename(static::class)) ->beforeLast('Widget') ->kebab() ->replace('-', ' ') ->title(), ); } }