File: D:/HostingSpaces/SBogers10/topswtw.komma.pro/app/storage/views/c7ec5b8b3e446bff35e9b4e30e0a4875
<?php if($attribute->basic): ?>
<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="KmsAttributeTextFieldCurrencyController">
<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.'_tax', $attribute->value, [
'placeholder' => $attribute->placeholder,
'class' => 'tax-included-field',
'ng-model' => 'attributes.'.$attribute->key.'_tax',
'id' => $attribute->key.'_tax',
'data-kms-tax-field' => $attribute->taxField
]); ?>
</div>
<script>
$(function () {
$('#<?php echo $attribute->key; ?>_tax').val($('#<?php echo $attribute->key; ?>').val() / 100);
$('#<?php echo $attribute->key; ?>_tax, #<?php echo $attribute->key; ?>_no_tax').inputmask("numeric", {
radixPoint: ",",
groupSeparator: "",
digits: 2,
prefix: '€ ',
rightAlign: false
});
});
</script>
</div>
<?php else: ?>
<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="KmsAttributeTextFieldCurrencyController">
<div>
<?php echo Form::label($attribute->key, $attribute->label . ' - tax included'); ?>
<?php echo Form::hidden($attribute->key, $attribute->getValue(), [
'ng-value' => 'attributes.'.$attribute->key
]); ?>
<?php echo Form::text($attribute->key.'_tax', $attribute->value, [
'placeholder' => $attribute->placeholder,
'class' => 'tax-included-field',
'ng-model' => 'attributes.'.$attribute->key.'_tax',
'id' => $attribute->key.'_tax',
'data-kms-tax-field' => $attribute->taxField
]); ?>
</div>
<div>
<?php echo Form::label($attribute->key, $attribute->label . ' - tax excluded'); ?>
<?php echo Form::text($attribute->key.'_formatted_no_tax', $attribute->getValue(), [
'placeholder' => $attribute->placeholder,
'ng-model' => 'attributes.'.$attribute->key.'_no_tax',
'id' => $attribute->key.'_no_tax',
'data-kms-tax-field' => $attribute->taxField
]); ?>
</div>
<script>
$(function () {
$('#<?php echo $attribute->key; ?>_tax').val($('#<?php echo $attribute->key; ?>').val() / 100);
$('#<?php echo $attribute->key; ?>_tax, #<?php echo $attribute->key; ?>_no_tax').inputmask("numeric", {
radixPoint: ",",
groupSeparator: "",
digits: 2,
prefix: '€ ',
rightAlign: false
});
});
</script>
</div>
<?php endif; ?>