<div class="form-group">
    <label for="">{{ $attribute->name }} @if($attribute->unite) ({{ $attribute->unite }}) @endif</label>
    @php
        $values = explode(PHP_EOL, $attribute->value);
    @endphp
    @if($attribute->multi_value == 1)
        @foreach($values as $value)
            <div class="checkbox">
                <label>
                    <input type="checkbox" name="attr-multi-{{ $attribute->id }}[]" value="{{ $value }}">
                    {{ $value }}
                </label>
            </div>
        @endforeach
    @else
        <select
            name="attr-{{ $attribute->id }}"
            class="form-control"
            @if($attribute->required) required="required" @endif
        >
            <option value=""></option>
            @foreach($values as $value)
                <option @if(trim($value) == trim($attribute->default_value)) selected="selected" @endif>{{ $value }}</option>
            @endforeach
        </select>
    @endif
</div>
