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/SBogers33/bbec.nl/workbench/komma/kms/src/views/attributes/date.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="KmsAttributeDateController">
    {{ Form::label($attribute->key, $attribute->label) }}
    @if($attribute->canNotChange())
        <div class="content">{{ $attribute->dateForUiWidget() }}</div>
    @else
        {{ Form::text($attribute->key, $attribute->dateForUiWidget(), [
            'id' => $attribute->key,
            'placeholder' => $attribute->placeholder,
            'ng-model' => 'attributes.'.$attribute->key
        ]) }}
    @endif
    <script>
        $(function(){
            $('#{{ $attribute->key }}').datepicker({
                changeYear: true,
                changeMonth: true,
                dateFormat: 'dd-mm-yy'
            });
            $('#{{ $attribute->key }}').datepicker(
                  'setDate', '{{ $attribute->dateForUiWidget() }}'
            );
        });
    </script>
</div>