<div class="{{$div_class}}">

    <?php
        $defaultvalues = [];

    ?>

    <div class="form-group">
        <label for="{{$name}}_id" class="control-label">{{$title}}</label>
        <select  class="select2 form-control select2-multiple" multiple="multiple"  data-placeholder="Sélectionner ..." name="{{$name}}[]" id="{{$name}}">
            @foreach($array as  $key => $value)
                <option @if(in_array($key, $defaultvalues)) selected @endif value="{{$key}}">{{$value}}</option>
            @endforeach
        </select>
    </div>
</div>
