$pages->last() Returns the last element kirby/src/Toolkit/Collection.php#L673 $pages->last(): mixed Return type mixed Parent class Kirby\Cms\Pages inherited from Kirby\Toolkit\Collection Example <?= $page->children()->last()->title() ?>