@foreach ($productAttributeSets as $attributeSet)
{{ $attributeSet->title }} @php if ($selected = $productVariationsInfo ? $productVariationsInfo->firstWhere('attribute_set_id', $attributeSet->id) : null) { $selected = [$selected->id => $selected->title]; } else { $selected = ['' => '-- ' . trans('plugins/ecommerce::products.select') . ' --']; } @endphp
@endforeach