Add Variation:*

@foreach( $product_variations as $product_variation)
Notice: Undefined variable: loop in /home/edomesoft/public_html/pos/umpos/resources/views/product/partials/edit_variable_product_form_part.blade.php on line 16

Notice: Trying to get property 'index' of non-object in /home/edomesoft/public_html/pos/umpos/resources/views/product/partials/edit_variable_product_form_part.blade.php on line 16
@endforeach
@lang('product.variation_name') @lang('product.variation_values')
{!! Form::text('product_variation[' . $loop->index . '][name]', $product_variation->name, ['class' => 'form-control input-sm variation_name', 'required']); !!} {!! Form::hidden('product_variation[' . $loop->index . '][product_variation_id]', $product_variation->id); !!} @foreach($product_variation->variations as $variation ) @endforeach
@lang('product.value') @lang('product.default_purchase_price')    @lang('product.default_selling_price')   
{!! Form::text('product_variation[' . $loop->parent->index . '][variations][' . $loop->index . '][value]', $variation->name, ['class' => 'form-control input-sm variation_value_name', 'required']); !!} {!! Form::hidden('product_variation[' . $loop->parent->index . '][variations][' . $loop->index . '][variation_id]', $variation->id); !!} {!! Form::number('product_variation[' . $loop->parent->index . '][variations][' . $loop->index . '][default_purchase_price]', $variation->default_purchase_price, ['class' => 'form-control input-sm dpp', 'min' => '0']); !!} {!! Form::number('product_variation[' . $loop->parent->index . '][variations][' . $loop->index . '][default_sell_price]', $variation->default_sell_price, ['class' => 'form-control input-sm variable_dsp', 'min' => '0', 'placeholder' => 'Excluding tax']); !!} {!! Form::number('product_variation[' . $loop->parent->index . '][variations][' . $loop->index . '][sell_price_inc_tax]', $variation->sell_price_inc_tax, ['class' => 'form-control input-sm variable_dsp_inc_tax', 'min' => '0', 'placeholder' => 'Including tax']); !!}