@lang('catalogs/currency.document_title')

@include('flash::message')

{{ $currency->name }}

{!! Form::model($currency,['route' => ['currencies.update',$currency->id],'method' => 'PUT','class' => 'form-horizontal','role' => 'form','id' => 'form']) !!}
{!! html_entity_decode(Form::label('name', __('catalogs/currency.entry_name') . ' *', ['class' => 'col-md-3 col-xs-12 control-label'])) !!}
{!! Form::text('name', old('name'), ['class' => 'form-control', 'placeholder' => __('catalogs/currency.entry_name'),'required','autofocus']) !!} @if ($errors->has('name')) {{ $errors->first('name') }} @endif
{!! html_entity_decode(Form::label('code', __('catalogs/currency.entry_code') . ' *', ['class' => 'col-md-3 col-xs-12 control-label'])) !!}
{!! Form::text('code', old('code'), ['class' => 'form-control', 'placeholder' => __('catalogs/currency.entry_code'),'required']) !!} @if ($errors->has('code')) {{ $errors->first('code') }} @endif
{!! html_entity_decode(Form::label('rate', __('catalogs/currency.entry_rate') . ' *', ['class' => 'col-md-3 col-xs-12 control-label'])) !!}
{!! Form::number('rate', old('rate'), ['class' => 'form-control', 'placeholder' => __('catalogs/currency.entry_rate'),'required','step' => 'any']) !!} @if ($errors->has('rate')) {{ $errors->first('rate') }} @endif
{!! Form::label('decimal_place', __('catalogs/currency.entry_decimal_place'), ['class' => 'col-md-3 col-xs-12 control-label']) !!}
{!! Form::number('decimal_place', old('decimal_place'), ['class' => 'form-control', 'placeholder' => __('catalogs/currency.entry_decimal_place')]) !!}
{!! html_entity_decode(Form::label('symbol', __('catalogs/currency.entry_symbol') . ' *', ['class' => 'col-md-3 col-xs-12 control-label'])) !!}
{!! Form::text('symbol', old('symbol'), ['class' => 'form-control', 'placeholder' => __('catalogs/currency.entry_symbol'),'required']) !!} @if ($errors->has('symbol')) {{ $errors->first('symbol') }} @endif
{!! html_entity_decode(Form::label('symbol_position', __('catalogs/currency.entry_symbol_position') . ' *', ['class' => 'col-md-3 col-xs-12 control-label'])) !!}
{!! Form::select('symbol_position', $list_symbol_position,old('symbol_position'), ['class' => 'form-control', 'placeholder' => __('general.text_select'),'required']) !!} @if ($errors->has('symbol_position')) {{ $errors->first('symbol_position') }} @endif
{!! html_entity_decode(Form::label('decimal_mark', __('catalogs/currency.entry_decimal_mark') . ' *', ['class' => 'col-md-3 col-xs-12 control-label'])) !!}
{!! Form::text('decimal_mark', old('decimal_mark'), ['class' => 'form-control', 'placeholder' => __('catalogs/currency.entry_decimal_mark'),'required']) !!} @if ($errors->has('decimal_mark')) {{ $errors->first('decimal_mark') }} @endif
{!! html_entity_decode(Form::label('thousands_separator', __('catalogs/currency.entry_thousands_separator') . ' *', ['class' => 'col-md-3 col-xs-12 control-label'])) !!}
{!! Form::text('thousands_separator', old('thousands_separator'), ['class' => 'form-control', 'placeholder' => __('catalogs/currency.entry_thousands_separator'),'required']) !!} @if ($errors->has('thousands_separator')) {{ $errors->first('thousands_separator') }} @endif
{!! Form::label('sort_order', __('catalogs/currency.entry_sort_order'), ['class' => 'col-md-3 col-xs-12 control-label']) !!}
{!! Form::number('sort_order', old('sort_order'), ['class' => 'form-control', 'placeholder' => __('catalogs/currency.entry_sort_order')]) !!}
{!! html_entity_decode(Form::label('status', __('catalogs/currency.entry_status') , ['class' => 'col-md-3 col-xs-12 control-label'])) !!}
{!! Form::close() !!}