File: D:/HostingSpaces/PDeckers/opelkapitan.nl/workbench/komma/kms/src/views/attributes/date.blade.php
<div class="entity-attribute entity-attribute-text{{{ count($attribute->errors) == 0 ? '' : ' error' }}} {{{$attribute->class}}}" 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>