@foreach ($product->inventories->whereNotNull('parent_id') as $variant) @if ($loop->first) @foreach ($variant->attributes as $attr) @endforeach @endif @foreach ($variant->attributeValues as $attrVal) @endforeach @if ($loop->last) @endif @endforeach
{{ trans('app.sl_number') }} {{ $attr->name }} {{ trans('app.form.image') }} {{ trans('app.form.sku') }} {{ trans('app.form.stock_quantity') }} {{ trans('app.form.sale_price') }}
{{ $loop->iteration }}
{{ $attrVal->value }} {{ Form::hidden('variant_ids[' . $variant->id . ']', $variant->id) }}
{!! Form::text('variant_skus[' . $variant->id . ']', $variant->sku, ['class' => 'form-control variant-sku', 'placeholder' => trans('app.placeholder.sku'), 'required']) !!}
{!! Form::number('variant_quantities[' . $variant->id . ']', $variant->stock_quantity, ['class' => 'form-control variant-qtt', 'placeholder' => trans('app.placeholder.stock_quantity'), 'required']) !!}
{{ config('system_settings.currency_symbol') ?? '$' }} {!! Form::number('variant_prices[' . $variant->id . ']', $variant->sale_price, ['class' => 'form-control variant-price', 'step' => 'any', 'placeholder' => trans('app.placeholder.sale_price'), 'required']) !!}

{{ trans('app.add_new_variant') }} {{-- {{ trans('app.add_another_attribute') }} --}}