xref: /webtrees/resources/views/components/radios.phtml (revision ac71572d8462e396ed5a307f05b29381e49f9e6e)
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