@lang('shop/shop_product.document_title')

@include('flash::message')

{{ $shop_product->description }}

{!! Form::model($shop_product,['route' => ['shop-products.update',$shop_product->id],'method' => 'PUT','class' => 'form-horizontal','role' => 'form','id' => 'form','files'=>true]) !!}
{!! html_entity_decode(Form::label('code', __('shop/shop_product.entry_code') . '', ['class' => 'col-md-3 col-xs-12 control-label'])) !!}
{!! Form::text('code', old('code'), ['class' => 'form-control', 'placeholder' => __('shop/shop_product.entry_code'),'','autofocus']) !!} @if ($errors->has('code')) {{ $errors->first('code') }} @endif
{!! html_entity_decode(Form::label('description', __('shop/shop_product.entry_description') . ' *', ['class' => 'col-md-3 col-xs-12 control-label'])) !!}
{!! Form::textarea('description', old('description'), ['class' => 'form-control', 'placeholder' => __('shop/shop_product.entry_description'),'rows' => '3']) !!} @if ($errors->has('description')) {{ $errors->first('description') }} @endif
{!! html_entity_decode(Form::label('quantity_folio', __('shop/shop_product.entry_quantity_folio') . '', ['class' => 'col-md-3 col-xs-12 control-label'])) !!}
{!! Form::number('quantity_folio', old('quantity_folio'), ['class' => 'form-control', 'placeholder' => __('shop/shop_product.entry_quantity_folio'),'','step' => 'any']) !!}
{!! html_entity_decode(Form::label('price', __('shop/shop_product.entry_price') . '', ['class' => 'col-md-3 col-xs-12 control-label'])) !!}
{!! Form::number('price', old('price',\App\Helpers\Helper::numberFormat($shop_product->price,2,false)), ['class' => 'form-control', 'placeholder' => __('shop/shop_product.entry_price'),'','step' => 'any']) !!}
{!! html_entity_decode(Form::label('taxes[]', __('shop/shop_product.entry_taxes') . '', ['class' => 'col-md-3 col-xs-12 control-label'])) !!}
{!! Form::select('taxes[]', $taxes,old('taxes'), ['class' => 'form-control my-select2','multiple' => 'multiple']) !!}
{!! html_entity_decode(Form::label('top', __('shop/shop_product.entry_top') , ['class' => 'col-md-3 col-xs-12 control-label'])) !!}
{!! Form::label('sort_order', __('shop/shop_product.entry_sort_order'), ['class' => 'col-md-3 col-xs-12 control-label']) !!}
{!! Form::number('sort_order', old('sort_order'), ['class' => 'form-control', 'placeholder' => __('shop/shop_product.entry_sort_order')]) !!}
{!! html_entity_decode(Form::label('status', __('shop/shop_product.entry_status') , ['class' => 'col-md-3 col-xs-12 control-label'])) !!}
{!! Form::close() !!}