<?php

declare(strict_types=1);

/**
 * @var string        $name
 * @var mixed         $selected
 * @var array<string> $options
 */

?>

<?php foreach ($options as $value => $label) : ?>
    <?= view('components/radio-inline', ['label' => $label, 'name' => $name, 'value' => (string) $value, 'checked' => $value === $selected]) ?>
<?php endforeach;
