@if ($productVariations->isNotEmpty()) @foreach ($productAttributeSets->where('is_selected', '<>', null)->whereIn('id', $productVariationsInfo->pluck('attribute_set_id')->all())->sortBy('id') as $attributeSet) @endforeach @foreach ($productAttributeSets->where('is_selected', '<>', null)->whereNotIn('id', $productVariationsInfo->pluck('attribute_set_id')->all())->sortBy('id') as $attributeSet) @endforeach @if (EcommerceHelper::isEnabledSupportDigitalProducts() && $product && $product->isTypeDigital()) @endif @foreach ($productVariations as $variation) @php $currentRelatedProduct = $productsRelatedToVariation->where('variation_id', $variation->id)->first(); @endphp @foreach ($productVariationsInfo->where('variation_id', $variation->id)->sortBy('attribute_set_id') as $key => $item) @endforeach @for ($index = 0; $index < $productAttributeSets->where('is_selected', '<>', null)->count() - $productVariationsInfo->where('variation_id', $variation->id)->count(); $index++) @endfor @if (EcommerceHelper::isEnabledSupportDigitalProducts() && $product && $product->isTypeDigital()) @endif @endforeach
{{ trans('plugins/ecommerce::products.form.image') }}{{ $attributeSet->title }}{{ $attributeSet->title }}{{ trans('plugins/ecommerce::products.form.price') }} {{ trans('plugins/ecommerce::products.form.is_default') }}{{ $product->product_type->label() }}{{ trans('plugins/ecommerce::products.form.action') }}
{{ trans('plugins/ecommerce::products.form.image') }}
{{ $item->title }}-- @if ($currentRelatedProduct) {{ format_price($currentRelatedProduct->front_sale_price) }} @if ($currentRelatedProduct->front_sale_price != $currentRelatedProduct->price) {{ format_price($currentRelatedProduct->price) }} @endif @else {{ format_price($product->front_sale_price) }} @if ($product->front_sale_price != $product->price) {{ format_price($product->price) }} @endif @endif @if ($currentRelatedProduct) {{ $currentRelatedProduct->productFiles->count() }} @endif {{ trans('plugins/ecommerce::products.edit_variation_item') }} {{ trans('plugins/ecommerce::products.delete') }}
@else

{{ trans('plugins/ecommerce::products.variations_box_description') }}

@endif