private function compileTableFooter() { $footer = []; foreach ($this->collection->toArray() as $row) { $footer[] = '<th>' . $row['footer'] . '</th>'; } return $footer; }