<?php
    $default = $default ?? '';
?>
@foreach($options as $value => $optionName)
    <input class="{$className ?? 'form-control'}}" type="radio" name="{{$name}}" value="{{$value}}" {{$optionName}}
        @if($value == $default) checked @endif > {{$optionName}}
@endforeach
