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/topswtw.komma.pro/app/storage/views/50d2606395961c7d0bc27097fb4b3525
<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="KmsAttributeDateController">
    <?php echo Form::label($attribute->key, $attribute->label); ?>

    <?php if($attribute->canNotChange()): ?>
        <div class="content"><?php echo $attribute->dateForUiWidget(); ?></div>
    <?php else: ?>
        <?php echo Form::text($attribute->key, $attribute->dateForUiWidget(), [
            'id' => $attribute->key,
            'placeholder' => $attribute->placeholder,
            'ng-model' => 'attributes.'.$attribute->key
        ]); ?>

    <?php endif; ?>

    <script>
        $(function(){
            $('#<?php echo $attribute->key; ?>').datepicker({
                changeYear: true,
                changeMonth: true,
                dateFormat: 'dd-mm-yy'
            });
            $('#<?php echo $attribute->key; ?>').datepicker(
                  'setDate', '<?php echo $attribute->dateForUiWidget(); ?>'
            );
        });
    </script>
</div>