@if (isset($use_thubnail_slide) && $use_thubnail_slide && $product->gallery && count($product->gallery))
@foreach ($product->gallery as $item)
@endforeach
@endif
@if (($sizeAttr = $product->getOrderOption('size')) && $sizeAttr->values)
@php
$defVal = null;
foreach ($sizeAttr->values as $av) {
if (in_array($av->value_id, $style_attrs)) {
$defVal = $av->value_id;
}
}
@endphp
@foreach ($sizeAttr->values as $av)
{{--
{{$av->text}} --}}
value_id == $defVal) || (!$defVal && ($av->is_default || (!$sizeAttr->default && $loop->index == 0))))>
@endforeach
@endif
@if (($colorAttr = $product->getTypeOrderOption('color')) && $colorAttr->values)
@php
$defVal = null;
foreach ($colorAttr->values as $av) {
if (in_array($av->value_id, $style_attrs)) {
$defVal = $av->value_id;
}
}
@endphp
@foreach ($colorAttr->values as $av)
value_id == $defVal) || (!$defVal && ($av->is_default || (!$colorAttr->default && $loop->index == 0))))>
@endforeach
@else
@endif
@if ($ecommerce->allow_place_order && $product->price_status > 0 && $product->status > 0 && $product->available_in_store)
@else
@endif