<div class="form-group">
    <label for="attr-{{ $attribute->id }}">{{ ucfirst($attribute->name) }} : </label>
    <span class="filter-field @if(!empty(request('attr-n-'.$attribute->id)['min']) || !empty(request('attr-n-'.$attribute->id)['max'])) filter-field-bold @endif">
        @if(!empty(request('attr-n-'.$attribute->id)['min']) || !empty(request('attr-n-'.$attribute->id)['max']))
            <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>
    @php
        $request_value = !empty(request('attr-n-'.$attribute->id))?request('attr-n-'.$attribute->id):[];
    @endphp
    <div class="filter-values" style="display: none;">
        <div class="row">
            <div class="col-md-6">
                <input type="number" name="attr-n-{{ $attribute->id }}[min]" value="{{ request('attr-n-'.$attribute->id)['min'] }}" placeholder="Min">
            </div>
            <div class="col-md-6">
                <input type="number" name="attr-n-{{ $attribute->id }}[max]" value="{{ request('attr-n-'.$attribute->id)['max'] }}" placeholder="Min">
            </div>
        </div>
        <a href="#" class="filter-close btn btn-default btn-sm btn-block">Fermer</a>
    </div>
</div>
