@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->price()->getPrice()) / 100; } @endphp
required ? 'required' : '' }} > @endforeach