HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/debierbaron.komma.pro/app/storage/views/3b95bec922a046a84be48c5cc300fd3b
<div class="entity-attribute entity-attribute-text<?php echo e(count($attribute->errors) == 0 ? '' : ' error'); ?> <?php echo e($attribute->class); ?>" data-uk-tooltip="{pos:'bottom-right'}" title="<?php echo e(isset($attribute->errors[0]) ? $attribute->errors[0] : ''); ?>" ng-controller="KmsAttributeCurrencyFieldController">
    <div>
        <?php echo Form::label($attribute->key, $attribute->label); ?>

        <?php echo Form::hidden($attribute->key, $attribute->getValue(), [
            'ng-value' => 'attributes.'.$attribute->key
        ]); ?>

        <?php echo Form::text($attribute->key.'_currency', $attribute->value, [
            'placeholder' => $attribute->placeholder,
            'ng-model' => 'attributes.'.$attribute->key.'_currency',
            'id' => $attribute->key.'_currency',
        ]); ?>

    </div>
    <script>
        $(function(){
            $('#<?php echo $attribute->key; ?>_currency').inputmask("numeric", {
                radixPoint: ",",
                groupSeparator: "",
                digits: 2,
                prefix: '€',
                rightAlign: false
            });
            if($.isNumeric($('#<?php echo $attribute->key; ?>').val())) {
                $('#<?php echo $attribute->key; ?>_currency').val($('#<?php echo $attribute->key; ?>').val() / 100);
            }
        });
    </script>
</div>