{!! Form::label('data[Product][name]', t('Name')) !!}
{!! Form::text(
'data[Product][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
)
]
) !!}
{!! Form::label('data[Product][tier]', t('Group')) !!}
{!! Form::select(
'data[Product][tier]',
numbers(['min' => 1, 'max' => 5, 'format' => 'Group %s']),
(isset($product->tier) ? $product->tier : null)
) !!}
{!! Form::label('data[Product][name]', t('Description')) !!}
{!! Form::textarea(
'data[Product][description]',
emoji2unicode(html((isset($product->description) ? $product->description : null))),
[
'placeholder' => t('Description'),
'class' => 'form-control editable wysiwyg'
]
) !!}
{!! Form::label(
'data[Product][terms]',
t('Terms & Conditions')
) !!}
{!! Form::text(
'data[Product][terms]',
(isset($product->terms) ? $product->terms : null),
[
'placeholder' => t('Terms & Conditions'),
'class' => 'form-control editable'
]
) !!}
@if (isset($category->extra->place) && $category->extra->place)
{!! Form::label('data[Product][color]', __('Color')) !!}
{!! Form::colorSelect(
'data[Product][color]',
[],
(isset($product->color) ? $product->color : null),
['empty' => true, 'class' => 'form-control color-picker']
) !!}
@endif
@if (
isset($settings->content->show_depends_from) &&
$settings->content->show_depends_from
)