<div class="group-wrapper">
    <img src="{{ url('front_end/assets/imgs/project-icon.png') }}" alt="" srcset="">
    {!! Form::select('project_id', $projects, null, [
        'class' => 'js-example-basic-single js-states form-control',
        'style' => 'width:100%',
        'id' => 'id_project',
        'required' => 'required',
        'data-placeholder' => trans('Projects'),
    ]) !!}
</div>

<script type="text/javascript">
    $("#id_project").select2({
        closeOnSelect: true,
        placeholder: {
            id: '-1', // the value of the option
            text: 'Project'
        }
    });
</script>
