@if ($variant_attributes = $product->getVariantAttributes())
@foreach ($variant_attributes as $attribute)
{{$attribute->label}}
@if ($avt != 'default')
    @php $def = null; foreach ($attribute->values as $attr) { if($attr->is_defauly) $def = $attr->value_id; } @endphp @foreach ($attribute->values as $attrValue)
  • value_id) || (!$def && $loop->index == 0)) checked @endif> {{$attrValue->text}}
  • @endforeach
@else
    @php $def = null; foreach ($attribute->values as $attr) { if($attr->is_defauly) $def = $attr->value_id; } @endphp @foreach ($attribute->values as $attrValue)
  • value_id) || (!$def && $loop->index == 0)) checked @endif>
  • @endforeach
@endif
@endforeach
@endif @if ($order_options = $product->getOrderAttributes())
@php $def = null; foreach ($order_options as $attr) { if($attr->is_defauly) $def = $attr->value_id; } @endphp @foreach ($order_options as $attribute)
{{$attribute->label}}
@if ($avt != 'default')
    @foreach ($attribute->values as $attrValue)
  • value_id) || (!$def && $loop->index == 0)) checked @endif>
  • @endforeach
@else
    @php $def = null; foreach ($attribute->values as $attr) { if($attr->is_defauly) $def = $attr->value_id; } @endphp @foreach ($attribute->values as $attrValue)
  • value_id) || (!$def && $loop->index == 0)) checked @endif>
  • @endforeach
@endif
@endforeach
@endif