Hi,
This is probably simple but I can’t get it to work - can I check if a layout is the last in the set? So if I have this:
<?php foreach ($page->pageBuilder()->toLayouts() as $layout): ?>
<?php endforeach ?>
Can I check within the loop if it is the last layout element, and do something different with it?