summaryrefslogtreecommitdiff
path: root/resources/views/components/radios-inline.phtml
blob: 2241d3da6c17383f4db377ea8c3cca77f3b0a8cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?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;