<div class="form-group">
    <label for="attr-{{ $attribute->id }}">{{ ucfirst($attribute->name) }} : </label>
    @php
    $values = explode(PHP_EOL, $attribute->value);
    $request_value = !empty(request('attr-s-'.$attribute->id))?request('attr-s-'.$attribute->id):[];
    @endphp
    <span class="filter-field @if(!empty(request('attr-s-'.$attribute->id))) filter-field-bold @endif">
        @if(!empty(request('attr-s-'.$attribute->id)))
        <i class="fa fa-filter"></i>
        @endif
        {{ $attribute->name }} @if($attribute->unite) ({{ $attribute->unite }}) @endif
        <i class="fa fa-chevron-down pull-right" aria-hidden="true"></i>
    </span>
    <div class="filter-values" style="display: none;">
        <div class="filter-values-list">
            @if($attribute->multi_value == 0)
            @foreach($values as $value)
            <div class="radio">
                <label>
                    <input type="radio" name="attr-s-{{ $attribute->id }}[]" value="{{ $value }}"
                        @if(in_array(trim($value), $request_value)) checked @endif>
                    {{ $value }}
                </label>
            </div>
            @endforeach
            @else
            @foreach($values as $value)
            <div class="checkbox">
                <label>
                    <input type="checkbox" name="attr-s-{{ $attribute->id }}[]" value="{{ $value }}"
                        @if(in_array(trim($value), $request_value)) checked @endif>
                    {{ $value }}
                </label>
            </div>
            @endforeach
            @endif
        </div>
        @if($attribute->multi_value == 1)
        <a href="#" class="filter-close btn btn-default btn-sm btn-block">Fermer</a>
        @endif
    </div>
</div>