@lang('system/sys_customer.document_title')

@include('flash::message')

{{ $sys_customer->name }}

{!! Form::model($sys_customer,['route' => ['sys-customers.update',$sys_customer->id],'method' => 'PUT','class' => 'form-horizontal','role' => 'form','id' => 'form']) !!} {!! Form::hidden('domain', old('domain')) !!}
{!! html_entity_decode(Form::label('name', __('system/sys_customer.entry_name') . ' *', ['class' => 'col-md-3 col-xs-12 control-label'])) !!}
{!! Form::text('name', old('name'), ['class' => 'form-control', 'placeholder' => __('system/sys_customer.entry_name'),'required','autofocus']) !!} @if ($errors->has('name')) {{ $errors->first('name') }} @endif
{!! html_entity_decode(Form::label('taxid', __('system/sys_customer.entry_taxid') . ' *', ['class' => 'col-md-3 col-xs-12 control-label'])) !!}
{!! Form::text('taxid', old('taxid'), ['class' => 'form-control', 'placeholder' => __('system/sys_customer.entry_taxid'),'required']) !!} @if ($errors->has('taxid')) {{ $errors->first('taxid') }} @endif
{!! html_entity_decode(Form::label('name_user', __('system/sys_customer.entry_name_user') . ' *', ['class' => 'col-md-3 col-xs-12 control-label'])) !!}
{!! Form::text('name_user', old('name_user'), ['class' => 'form-control', 'placeholder' => __('system/sys_customer.entry_name_user'),'required','autofocus']) !!} @if ($errors->has('name_user')) {{ $errors->first('name_user') }} @endif
{!! html_entity_decode(Form::label('email', __('system/sys_customer.entry_email') . ' *', ['class' => 'col-md-3 col-xs-12 control-label'])) !!}
{!! Form::email('email', old('email'), ['class' => 'form-control', 'placeholder' => __('system/sys_customer.entry_email'),'required']) !!} @if ($errors->has('email')) {{ $errors->first('email') }} @endif
{!! html_entity_decode(Form::label('phone', __('system/sys_customer.entry_phone') . '', ['class' => 'col-md-3 col-xs-12 control-label'])) !!}
{!! Form::text('phone', old('phone'), ['class' => 'form-control', 'placeholder' => __('system/sys_customer.entry_phone')]) !!} @if ($errors->has('phone')) {{ $errors->first('phone') }} @endif
@if(Auth::user()->superadmin)
{!! html_entity_decode(Form::label('distributor_id', __('sales/customer_invoice.entry_distributor_id') . '', ['class' => 'col-md-3 col-xs-12 control-label'])) !!}
{!! 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
@endif
{!! Form::label('sort_order', __('system/sys_customer.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_customer.entry_sort_order')]) !!}
{!! html_entity_decode(Form::label('status', __('system/sys_customer.entry_status') , ['class' => 'col-md-3 col-xs-12 control-label'])) !!}
{!! Form::close() !!}