@lang('system/sys_list_price_distributor.document_title')
@include('flash::message')
{{ $sys_list_price_distributor->name }}
{!! Form::model($sys_list_price_distributor,['route' => ['sys-list-price-distributors.update',$sys_list_price_distributor->id],'method' => 'PUT','class' => 'form-horizontal','role' => 'form','id' => 'form','files'=>true]) !!}
{!! Form::close() !!}
{!! html_entity_decode(Form::label('shop_product_id', __('system/sys_list_price_distributor.entry_shop_product_id') . ' *', ['class' => 'col-md-3 col-xs-12 control-label'])) !!}
@if(Auth::user()->superadmin)
{!! Form::select('shop_product_id', $shop_products,old('shop_product_id'), ['class' => 'form-control', 'placeholder' => __('general.text_select'),'required','disabled' => 'disabled']) !!}
@if ($errors->has('shop_product_id'))
{{ $errors->first('shop_product_id') }}
@endif
{!! html_entity_decode(Form::label('distributor_id', __('system/sys_list_price_distributor.entry_distributor_id') . ' *', ['class' => 'col-md-3 col-xs-12 control-label'])) !!}
@endif
{!! Form::select('distributor_id', $distributors,old('distributor_id'), ['class' => 'form-control', 'placeholder' => __('general.text_select')]) !!}
@if ($errors->has('distributor_id'))
{{ $errors->first('distributor_id') }}
@endif
{!! html_entity_decode(Form::label('base_price', __('system/sys_list_price_distributor.entry_base_price') . '', ['class' => 'col-md-3 col-xs-12 control-label'])) !!}
{!! Form::number('base_price', old('base_price',$sys_list_price_distributor->shopProduct->price), ['class' => 'form-control', 'placeholder' => __('system/sys_list_price_distributor.entry_base_price'),'','step' => 'any','readonly']) !!}
{!! html_entity_decode(Form::label('price', __('system/sys_list_price_distributor.entry_price') . ' *', ['class' => 'col-md-3 col-xs-12 control-label'])) !!}
{!! Form::number('price', old('price'), ['class' => 'form-control', 'placeholder' => __('system/sys_list_price_distributor.entry_price'),'','step' => 'any']) !!}
@if ($errors->has('price'))
{{ $errors->first('price') }}
@endif
{!! Form::label('sort_order', __('system/sys_list_price_distributor.entry_sort_order'), ['class' => 'col-md-3 col-xs-12 control-label']) !!}
{!! Form::number('sort_order', old('sort_order'), ['class' => 'form-control', 'placeholder' => __('system/sys_list_price_distributor.entry_sort_order')]) !!}
{!! html_entity_decode(Form::label('status', __('system/sys_list_price_distributor.entry_status') , ['class' => 'col-md-3 col-xs-12 control-label'])) !!}