@props([
  'label' , 'name' , 'value'=> '' , 'option1' , 'option2'
])




<div class="card-body">
    <p class="card-text mb-0">
          {{ $label }}
    </p>
    <div class="demo-inline-spacing">
        <div class="custom-control custom-radio">
            <input type="radio" id="{{ $name }}1" name="{{ $name }}" value="1" {{ old($name , $value) == 1 ? 'checked' : '' }} class="custom-control-input"  />
            <label class="custom-control-label" for="{{ $name }}1"> {{ $option1 }} </label>
        </div>
        <div class="custom-control custom-radio">
            <input type="radio" id="{{ $name }}2" name="{{ $name }}" value="0" {{ old($name , $value) == 0 ? 'checked' : '' }} class="custom-control-input" />
            <label class="custom-control-label" for="{{ $name }}2"> {{ $option2 }} </label>
        </div>

    </div>
</div>
