$files->last()

Returns the last file in the collection

Example

<?php echo $page->files()->last()->filename() ?>