foreach ($actions as $action): ?>
if ($action['type'] === 'link'): ?>
$action['label']]) ?>>
if ($action['icon']): ?>
= $action['icon'] ?>
else: ?>
= htmlReady($action['label']) ?>
endif ?>
elseif ($action['type'] === 'button'): ?>
if ($action['icon']): ?>
= $action['icon']->asInput($action['attributes'] + ['name' => $action['name'], 'title' => $action['label']]) ?>
else: ?>
endif ?>
elseif ($action['type'] === 'multi-person-search'): ?>
= $action['object']->render() ?>
endif ?>
endforeach ?>