xref: /webtrees/resources/views/components/radios.phtml (revision b11cdcd45131b1585d66693fab363cfeb18c51a4)
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', ['label' => $label, 'name' => $name, 'value' => (string) $value, 'checked' => $value === $selected]) ?>
15<?php endforeach;
16