id)) data-existing="{{ $product->id }}" @endif > {!! Form::hidden( 'data[Product][SubProducts][' . $i . '][id]', (isset($product->id) ? $product->id : null) ) !!} {!! Form::hidden( 'data[Product][SubProducts][' . $i . '][parent_id]', (isset($product->parent_id) ? $product->parent_id : null) ) !!} {!! Form::hidden( 'data[Product][SubProducts][' . $i . '][group_id]', (isset($product->group_id) ? $product->group_id : null), [ 'class' => 'sub_group_id' ] ) !!} {{-- {!! Form::hidden( 'data[Product][SubProducts][' . $i . '][category_id]', (isset($category->id) ? $category->id : null) ) !!} --}}
{!! Form::text( 'data[Product][SubProducts][' . $i . '][name]', (isset($product->name) ? $product->name : null), [ 'placeholder' => t('Option name'), 'data-error' => t('This field is required'), 'class' => 'form-control editable', 'required' ] ) !!}
@if (isset($settings->content->tiers) && $settings->content->tiers)
{!! Form::select( 'data[Product][SubProducts][' . $i . '][tier]', numbers(['min' => 1, 'max' => 5, 'format' => 'Group %s']), (isset($product->tier) ? $product->tier : null) ) !!}
@endif
{!! Form::text( 'data[Product][SubProducts][' . $i . '][ordering]', (isset($product->ordering) ? $product->ordering : null), [ 'placeholder' => t('Order'), 'class' => 'form-control text-right editable' ] ) !!}
{!! Form::text( 'data[Product][SubProducts][' . $i . '][price]', (isset($product->price) ? $product->price : null), [ 'placeholder' => t('Price to pay now'), 'class' => 'form-control text-right editable' ] ) !!}
@if (isset($category->extra->deposit) && $category->extra->deposit)
{!! Form::text( 'data[Product][SubProducts][' . $i . '][actual_price]', (isset($product->actual_price) ? $product->actual_price : null), [ 'placeholder' => t('Total price'), 'class' => 'form-control text-right editable' ] ) !!}
@endif @if (is_admin())
{!! Form::text( 'data[Product][SubProducts][' . $i . '][category_id]', (isset($product->category_id) ? $product->category_id : null), [ 'placeholder' => t('Category'), 'class' => 'form-control text-right editable' ] ) !!}
@endif