<div class="form-group">
    <label for="attr-{{ $attribute->id }}">{{ ucfirst($attribute->name) }} : </label>
    <span class="filter-field @if(!empty(request('attr-b-'.$attribute->id))) filter-field-bold @endif">
        @if(!empty(request('attr-b-'.$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>
    @php
        $request_value = !empty(request('attr-b-'.$attribute->id))?request('attr-b-'.$attribute->id):[];
    @endphp
    <div class="filter-values" style="display: none;">
        <div class="checkbox">
            <label>
                <input type="checkbox" name="attr-b-{{ $attribute->id }}[]" value="1" @if(in_array('1', $request_value)) checked @endif>
                Oui
            </label>
        </div>
        <div class="checkbox">
            <label>
                <input type="checkbox" name="attr-b-{{ $attribute->id }}[]" value="0" @if(in_array('0', $request_value)) checked @endif>
                Non
            </label>
        </div>
        <a href="#" class="filter-close btn btn-default btn-sm btn-block">Fermer</a>
    </div>
</div>
