<div class="border-box border-other">
    <div class="title-box-border-box bg-color-other">
        <i class="fa fa-filter"></i> Filtros de Búsqueda
    </div>

    <div class="container-box-border-box">

        <!--flecha desplegable filtros-->
        <div id="btn-show-filter-recetario" class="text-right mt-arrow-filters pointer">
            <i class="fa fa-angle-down fa-2x" id="arrow-filters"> </i>
        </div>
        <!--contenido desplegable filtros-->
        <div class="hidden" id="content-filter-recetario">
            <form action="{{ url('recetario') }}" method="post">

                <labe> Nombre de receta </labe>
                <input class="form-control" name="desc" value="{{ criterio_desc }}">
                <br>
                {% for group in groups_filters %}

                    {# ETIQUETA DEL GRUPO #}
                    <div class="bg-color-other p10">
                         <span class="whitecolor"> {{ group.name }} </span>
                    </div>
                    <div class="row mt20">
                    {% for option in group.options %}
                        <div class="col-xs-4 col-sm-2">
                            <div class="form-group text-center">
                                <label class="switch-small" for="switch_filter_{{ option.id }}">
                                    <input type="checkbox"
                                           {% if group.id == 1 %} name="flags_or[]" {% else %} name="flags[]"{% endif %}
                                           id="switch_filter_{{ option.id }}"
                                           value="{{ option.id }}"
                                           {% if option.id in criterio_options %} checked {% endif %}
                                    />
                                    <div class="slider slider-small round"></div>
                                </label>
                                <p class="small-text">{{ option.name }}</p>
                            </div>
                        </div>
                    {% endfor %}
                    </div>
                {% endfor %}

                <div class="row">
                    <div class="col-md-6 col-md-offset-6">
                        <button type="submit" class="btn btn-custom btn-other mt20" > aplicar <i class="fa fa-angle-double-right"></i></button>
                    </div>
                </div>
            </form>
        </div>

    </div>
</div>


