@if(in_array($name,$model->getTagInputs()))

    <div class="{{$div_class}}" >
        <div class="form-group">
            <label for="{{$name}}" class="control-label">{{$title}}</label>
            <input name="{{$name}}" data-role="tagsinput" id="{{$name}}" type="text" class="form-control tag-input col-sm-4" value="{{old($name,$model->$name)}}"  placeholder="Enter {{$title}}, séparé(e)s avec des virgules">
        </div>
    </div>

    @else
    <div class="{{$div_class}}">
        <div class="form-group">
            <label for="{{$name}}" class="control-label">{{$title}}</label>
            <input name="{{$name}}" @if(in_array($name, $model->getReadOnlys())) readonly @endif id="{{$name}}" type="text" class="form-control" value="{{old($name,$model->$name)}}"  placeholder="Enter {{$title}}">
        </div>
    </div>

@endif



