xref: /webtrees/resources/views/components/radios-inline.phtml (revision 0db1e7d20bab9209012a4f3fdc1af3ef87a1a528)
1<?php
2
3declare(strict_types=1);
4
5/**
6 * @var string        $name
7 * @var mixed         $selected
8 * @var array<string> $options
9 */
10
11?>
12
13<?php foreach ($options as $value => $label) : ?>
14    <?= view('components/radio-inline', ['label' => $label, 'name' => $name, 'value' => (string) $value, 'checked' => $value === $selected]) ?>
15<?php endforeach;
16