File: D:/HostingSpaces/SBogers33/bbec.nl/workbench/komma/kms/src/views/attributes/currencyField.blade.php
<div class="entity-attribute entity-attribute-text{{{ count($attribute->errors) == 0 ? '' : ' error' }}} {{{$attribute->class}}} @if( !$attribute->show || ($attribute->show === 'admin' && !\Auth::user()->get()->is_admin) ) hidden @endif photo " data-uk-tooltip="{pos:'bottom-right'}" title="{{{ $attribute->errors[0] or '' }}}" ng-controller="KmsAttributeCurrencyFieldController">
<div>
{{ Form::label($attribute->key, $attribute->label) }}
{{ Form::hidden($attribute->key, $attribute->getValue(), [
'ng-value' => 'attributes.'.$attribute->key
]) }}
{{ Form::text($attribute->key.'_currency', $attribute->value, [
'placeholder' => $attribute->placeholder,
'ng-model' => 'attributes.'.$attribute->key.'_currency',
'id' => $attribute->key.'_currency',
]) }}
</div>
<script>
$(function(){
$('#{{$attribute->key}}_currency').inputmask("numeric", {
radixPoint: ",",
groupSeparator: "",
digits: 2,
prefix: '€',
rightAlign: false
});
if($.isNumeric($('#{{$attribute->key}}').val())) {
$('#{{$attribute->key}}_currency').val($('#{{$attribute->key}}').val() / 100);
}
});
</script>
</div>