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