/**
* Create a Bootstrap radio input.
*
* @param string $name
* @param string $label
* @param string $value
* @param bool $checked
* @param bool $inline
* @param array $options
* @return string
*/
public function radio($name, $label, $value, $checked = null, $inline = false, array $options = [])
{
$labelOptions = $inline ? ['class' => 'radio-inline'] : [];
$inputElement = $this->form->radio($name, $value, $checked, $options);
$labelElement = '<label ' . $this->html->attributes($labelOptions) . '>' . $inputElement . $label . '</label>';
return $inline ? $labelElement : '<div class="radio">' . $labelElement . '</div>';
}