Title says it!
<?php foreach($pages->listed() as $item):
$events = $item->children()->filterBy('date', '>', $date)->listed()->sortBy(function ($item) {
return $item->date()->toDate();
}, 'asc');
if ($events->count() > 0):
html($event->date()->toDate('%d')) ?>
endif;
endforeach;
?>
The script is working and I can sort out all events to an archive by just flipping the >
symbol.
I wonder if there is an ≥
equivalent function, because if there would be an event today it will be archived already.
Thanks!