{!! Form::label('data[Product][' . $category->id . '][' . $i . '][name]', t('Name')) !!}
{!! Form::text(
'data[Product][' . $category->id . '][' . $i . '][name]',
(isset($product->name) ? $product->name : null),
[
'placeholder' => t('Product name'),
'data-error' => t('This field is required'),
'class' => 'form-control editable',
(
isset($category->extra->items) && $category->extra->items != 1 ?
'required' :
null
)
]
) !!}
@if (isset($settings->content->tiers) && $settings->content->tiers)
{!! Form::label('data[Product][' . $category->id . '][' . $i . '][tier]', t('Tier')) !!}
{!! Form::select(
'data[Product][' . $category->id . '][' . $i . '][tier]',
numbers(['min' => 1, 'max' => 5]),
(isset($product->tier) ? $product->tier : null)
) !!}
@endif
{{-- Description --}}