<?php if(count($filtersdata) || count($brands)): ?>
<div id="filterswrap">
    <div id="filterstitle">
        <?php echo e(__('frontside.filters.title')); ?>

        <i class="glyphicon glyphicon-plus pull-right open-icon" aria-hidden="true"></i>
        <i class="glyphicon glyphicon-minus pull-right close-icon active" aria-hidden="true"></i>
    </div>
    <div id="filtersholder" class="shd"> <form action="" method="post" name="filtersform" id="filtersform">

            <?php if(count($brands)): ?>
            <div id="brandfilters">
                <div class="filter">
                    <div class="filtertitle">
                        <?php echo e(__('frontside.filters.brand')); ?>

                        <i class="glyphicon glyphicon-plus pull-right open-icon" aria-hidden="true"></i>
                        <i class="glyphicon glyphicon-minus pull-right close-icon active" aria-hidden="true"></i>
                    </div>
                    <div class="filtervalues">
                        <ul class="fvw" >
                            <?php $__currentLoopData = $brands; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $brand): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <li>
                                <div class="form-group form-group-checklabel">
                                    <div class="fcheckbox">
                                        <input class="cb" value="<?php echo e($brand->brand_id); ?>" id="b-<?php echo e($brand->brand_id); ?>" name="prod[]" type="checkbox">
                                    </div>
                                    <label class="ease cb-label" for="b-<?php echo e($brand->brand_id); ?>"><?php echo e($brand->brand_name); ?></label>
                                </div>
                                <span></span>
                            </li>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </ul>
                    </div>
                </div><!--filter-->
            </div><!--brandfilters-->
            <?php endif; ?>

            <div class="filter">
                <div class="filtertitle">
                    <?php echo e(__('frontside.filters.price_upto')); ?>

                    <i class="glyphicon glyphicon-plus pull-right open-icon" aria-hidden="true"></i>
                    <i class="glyphicon glyphicon-minus pull-right close-icon active" aria-hidden="true"></i>
                </div>
                <div class="filtervalues">
                    <div class="form-group">
                        <select id="price" name="price" class="form-control input-sm">
                            <option value=""><?php echo e(__('frontside.filters.select')); ?></option>
                            <option value="5000">5.000</option>
                            <option value="10000">10.000</option>
                            <option value="15000">15.000</option>
                            <option value="20000">20.000</option>
                            <option value="25000">25.000</option>
                            <option value="30000">30.000</option>
                            <option value="35000">35.000</option>
                            <option value="40000">40.000</option>
                            <option value="45000">45.000</option>
                            <option value="50000">50.000</option>
                            <option value="55000">55.000</option>
                            <option value="60000">60.000</option>
                            <option value="70000">70.000</option>
                            <option value="80000">80.000</option>
                            <option value="90000">90.000</option>
                            <option value="100000">100.000</option>
                            <option value="125000">125.000</option>
                            <option value="150000">150.000</option>
                        </select>
                    </div>
                </div>
            </div><!--filter-->


            <?php if(count($filtersdata)): ?>

            <div id="atrfilters">

            <?php
                $an = '';
                $i = 0;
            ?>


            <?php $__currentLoopData = $filtersdata; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $filter): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

            <?php if($filter->atrname != $an && $i > 0): ?>
            </ul></div></div><!--filter-->
            <?php endif; ?>

            <?php if($filter->atrname != $an ): ?>

            <div class="filter">

                <div class="filtertitle">
                    <?php echo e(strtoupper($filter->atrname)); ?>

                    <i class="glyphicon glyphicon-plus  pull-right open-icon" aria-hidden="true"></i>
                    <i class="glyphicon glyphicon-minus pull-right close-icon active" aria-hidden="true"></i>
                </div>

                <div class="filtervalues">
                    <ul>

            <?php endif; ?>


            <li>
                <div class="form-group form-group-checklabel">
                    <div class="fcheckbox">
                        <input class="cb" value="<?php echo e($filter->valid); ?>" id="<?php echo e('f-'.$filter->atrid.'-'.$filter->valid); ?>" name="f_<?php echo e($filter->atrid); ?>[]" type="checkbox">
                    </div>
                    <label class="ease cb-label" for="<?php echo e('f-'.$filter->atrid.'-'.$filter->valid); ?>"><?php echo e($filter->label); ?></label>
                </div>
                <span></span>
            </li>

            <?php
            $an = $filter->atrname;
            ++$i;
            ?>

            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>


                    </ul>
                </div>
            </div><!--filter-->

            </div><!--atrfilters-->

            <?php endif; ?>

            <div class="filter">
                <div class="filtervalues text-center">
                    <br>
                    <button class="btn btn-danger btn-xs resetfilters" type="button">
                        <span class="glyphicon glyphicon-remove-circle" aria-hidden="true"></span> <?php echo e(__('frontside.filters.reset')); ?>

                    </button>
                </div>
            </div>
            <input name="cid" value="<?php echo e($objectid); ?>" type="hidden">
            
        </form>
    </div><!--filtersholder-->
</div><!-- filterswrap -->
<?php endif; ?>