@php
$k = 'vaccination_flag';
$class_name = 'form-controlx';
$style = 'width:70px;';
$input_values_array = ['1' => '有り' , '0' => '無し'];
$_form_value = old('vaccination_flag',@$user[$k]);
@endphp
@foreach ( $input_values_array as $input_k => $input_v )
<label class="{{$class_name}}" style="{{$style}}"><input name="{{$k}}" type="radio" value="$input_v" @if( $_form_value===$input_v ) checked @endif> {{$input_v}}</label>
@endforeach