<div class="form-group variant-radio product-option product-option-{{ Str::slug($option['name']) }} product-option-{{ $option['id'] }}"
    style="margin-bottom: 10px">
    <div class="row">
        <div class="col-4">
            <label class="{{ ($option['required']) ? 'required' : '' }}">
                {{ $option['name'] }}
            </label>
        </div>
        <div class="col-8">
            <input type="hidden" name="options[{{ $option['id'] }}][option_type]" value="radio" />
            @foreach ($option['values'] as $value)
                @php
                    $price = 0;
                    if (!empty($value['affect_price']) && doubleval($value['affect_price']) > 0) {
                        $price = ($value['affect_type'] == 0) ? $value['affect_price'] : (floatval($value['affect_price']) * $product->front_sale_price_with_taxes) / 100;
                    }
                @endphp
                <div class="form-radio">
                    <input type="radio" data-extra-price="{{ $price }}" name="options[{{ $option['id'] }}][values]"
                           value="{{ $value['option_value']}}"
                           id="option-{{ $option['id']}}-value-{{ Str::slug($value['option_value']) }}" @if ($option['required'] && $loop->first) checked @endif>
                    <label for="option-{{ $option['id'] }}-value-{{ Str::slug($value['option_value']) }}">
                        &nbsp;{{ $value['option_value']}}
                        @if ($price > 0)
                            <strong class="extra-price">+ {{ format_price($price) }}</strong>
                        @endif
                    </label>
                </div>
            @endforeach
        </div>
    </div>
</div>
