@lang('catalogs/tax.document_title')
@include('flash::message')
{{ $tax->name }}
{!! Form::model($tax,['route' => ['taxes.update',$tax->id],'method' => 'PUT','class' => 'form-horizontal','role' => 'form','id' => 'form']) !!}
{!! Form::close() !!}
{!! html_entity_decode(Form::label('name', __('catalogs/tax.entry_name') . ' *', ['class' => 'col-md-3 col-xs-12 control-label'])) !!}
{!! Form::text('name', old('name'), ['class' => 'form-control', 'placeholder' => __('catalogs/tax.entry_name'),'required','autofocus']) !!}
@if ($errors->has('name'))
{{ $errors->first('name') }}
@endif
{!! html_entity_decode(Form::label('code', __('catalogs/tax.entry_code') . '', ['class' => 'col-md-3 col-xs-12 control-label'])) !!}
{!! Form::select('code', $list_code,old('code'), ['class' => 'form-control', 'placeholder' => __('general.text_select')]) !!}
@if ($errors->has('code'))
{{ $errors->first('code') }}
@endif
{!! html_entity_decode(Form::label('type', __('catalogs/tax.entry_type') . ' *', ['class' => 'col-md-3 col-xs-12 control-label'])) !!}
{!! Form::select('type', $list_type,old('type'), ['class' => 'form-control', 'placeholder' => __('general.text_select'),'required']) !!}
@if ($errors->has('type'))
{{ $errors->first('type') }}
@endif
{!! html_entity_decode(Form::label('factor', __('catalogs/tax.entry_factor') . ' *', ['class' => 'col-md-3 col-xs-12 control-label'])) !!}
{!! Form::select('factor', $list_factor,old('factor'), ['class' => 'form-control', 'placeholder' => __('general.text_select'),'required']) !!}
@if ($errors->has('factor'))
{{ $errors->first('factor') }}
@endif
{!! html_entity_decode(Form::label('rate', __('catalogs/tax.entry_rate') . ' *', ['class' => 'col-md-3 col-xs-12 control-label'])) !!}
{!! Form::number('rate', old('rate'), ['class' => 'form-control', 'placeholder' => __('catalogs/tax.entry_rate'),'required','step' => 'any']) !!}
@lang('catalogs/tax.help_rate')
@if ($errors->has('rate'))
{{ $errors->first('rate') }}
@endif
{!! html_entity_decode(Form::label('local_taxes', __('catalogs/tax.entry_local_taxes') , ['class' => 'col-md-3 col-xs-12 control-label'])) !!}
{!! Form::label('sort_order', __('catalogs/tax.entry_sort_order'), ['class' => 'col-md-3 col-xs-12 control-label']) !!}
{!! Form::number('sort_order', old('sort_order'), ['class' => 'form-control', 'placeholder' => __('catalogs/tax.entry_sort_order')]) !!}
{!! html_entity_decode(Form::label('status', __('catalogs/tax.entry_status') , ['class' => 'col-md-3 col-xs-12 control-label'])) !!}