@php
    $fieldId = isset($attributes['id']) ? $attributes['id'] : $name;
    $fieldLabel = isset($attributes['data-label']) ? $attributes['data-label'] : ucwords($name);
@endphp
<div class="form-group form-date">
    {{ Form::label($fieldId, $fieldLabel, ['class' => 'col-sm-2 control-label']) }}
    <div class="input-group">
        <div class="input-group-addon">
            <span class="fa fa-calendar"></span>
        </div>
        {{ Form::text($name, $value, array_merge(['class' => 'form-control datepicker'], $attributes)) }}
    </div>
</div>