<div class="col-lg-9">
                        <section class="products">
                            <div class="prod_cont"id="ads">
                                 <?php $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <div class="prod_items">
                        <a href="<?php echo e(url(getCurrentLocale().'/item/'.$row->id)); ?>" class="img">
                            <img src="<?php echo e(asset($row->image)); ?>" alt="">
                            <div class="fav-btn">
                               <input data-id="<?php echo e($row->id); ?>" action-id="<?php echo e(url(getCurrentLocale().'/togglefav')); ?>" <?php if(\Auth::user()): ?> onclick="favtoggle(this)"  <?php if(favorited($row->id)): ?> checked <?php endif; ?> <?php else: ?> onclick="loginft(this)"  <?php endif; ?> type="checkbox">
                                 </div>
                           <?php if(!is_null($row->sold_id)): ?> <span class="status bg-warning">
                                <?php echo e(__('web.paid')); ?>

                            </span>
                            <?php endif; ?>
                        </a>
                        <div class="info">
                            <h6>
                                <?php echo e(productname($row->id)); ?>

                                <span>
                                    <?php echo e($row->start_cost); ?> <small><?php echo e(__('web.sar')); ?></small>
                                </span>
                            </h6>
                            <p>
                                <i class="fas fa-map-marker-alt"></i> <?php echo e(cityname($row->city_id)); ?>

                            </p>
                            <div class="by d-flex">
                                <div class="imgg">
                                    <img src="<?php echo e(asset($row->user->photo)); ?>" alt="">
                                </div>
                                <span>
                                    <?php echo e(__('web.by')); ?> :  <?php echo e($row->user->name); ?>

                                </span>
                            </div>
                        </div>
                    </div>
                   <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </div>
                        </section>
                    </div>
                    <div class="col-lg-3">
                        <div class="mazad_filter">
                            <div class="head">
                                <h5><?php echo e(__('web.searchselect')); ?></h5>
                            </div>
                             <div class="content">
                                <form id="formfilter" action="<?php echo e(url(getCurrentLocale().'/formfilter')); ?>" class="form-row">
                                    <?php echo csrf_field(); ?>
                                    <input type="hidden" name="category" value="<?php echo e($category); ?>">
                                   
                                      <?php $__currentLoopData = attributecheck($category); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $attr): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                             <div class="form-group d-flex justify-content-center col-12 mb-0">
                                                 <?php $__currentLoopData = attributechoises($attr->id); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $choise): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <div class="custom-control custom-checkbox m-3">
                                            
                                            <input  onchange="counterdata(this)"  type="checkbox" name="attribute[]" value="<?php echo e($choise->id); ?>" class="custom-control-input" id="customCheck<?php echo e($choise->id); ?>" >
                                            <label class="custom-control-label" for="customCheck<?php echo e($choise->id); ?>"><?php echo e(choisename($choise->id)); ?></label>
                                             </div>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                       
                                        
                                    </div>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            <?php $__currentLoopData = attributeselect($category); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $attr): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                           
                                             <div class="form-group col-12">
                                        <select  onchange="counterdata(this)"  name="attribute[]" class="form-control">
                                            <option selected value=""><?php echo e(__('web.select')); ?></option>
                                             <?php $__currentLoopData = attributechoises($attr->id); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $choise): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <option value="<?php echo e($choise->id); ?>"><?php echo e(choisename($choise->id)); ?></option>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        </select>
                                    </div>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    <div class="form-group col-12">
                                        <input type="text"  onchange="counterdata(this)"  name="search" placeholder="<?php echo e(__('web.search')); ?>" class="form-control">
                                    </div>
                                    <?php if(isset($model)): ?>
                                    <input type="hidden" name="main_model" value="<?php echo e($model); ?>">
                                    <?php if(count(modelsub($model )) >0 ): ?>
                                    <div class="form-group col-12">
                                        <select  onchange="modelselect(this)"  name="model_id" class="form-control">
                                            <option selected value=""><?php echo e(__('web.category')); ?></option>
                                            <?php $__currentLoopData = modelsub($model ); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $model): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <option value="<?php echo e($model->id); ?>"><?php echo e(modelname($model->id)); ?></option>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        </select>
                                    </div>
                                    <?php endif; ?>
                                    <?php endif; ?>
                                     <div class="form-group col-12" id="submodel">
                                        
                                    </div>
                                    
                                    <div class="form-group col-12">
                                        <p><?php echo e(__('web.cost')); ?> </p>
                                        <div id="rangeSlider" class="range-slider col-12">
                                            <div class="range-group">
                                                <input class="range-input"  onchange="counterdata(this)"  name="start" value="1" min="1" max="<?php echo e($max); ?>" step="1" type="range">
                                                <input class="range-input"  onchange="counterdata(this)"  name="end" value="<?php echo e($max); ?>" min="1" max="<?php echo e($max); ?>" step="1" type="range">
                                            </div>
                                            <div class="number-group">
                                                <span>
                                                    <small><?php echo e(__('web.sar')); ?></small>
                                                <input class="number-input" type="number" name="start" value="1" min="0" max="<?php echo e($max); ?>"> 
                                               </span> -
                                                <span>
                                                    <small><?php echo e(__('web.sar')); ?></small>
                                                    <input class="number-input" type="number" name="end" value="<?php echo e($max); ?>" min="0" max="<?php echo e($max); ?>"> 
                                                </span>
                                            </div>
                                        </div>
                                    </div>
                                  
                                </form>
                                <div class="search_results">
                                    <a onclick="formfilter(this)" style="cursor: pointer;"  class="butn main_bg"><span id="counter"> <i class="fas fa-search ml-1"></i> <?php echo e(count($products)); ?> <?php echo e(__('web.searchresult')); ?> </span></a>
                                    <a onclick="clearsearch(this)" style="cursor: pointer;" ><span> <?php echo e(__('web.clearseach')); ?> </span></a>
                                </div>
                            </div>
                        </div>
                    </div><?php /**PATH /home/omaralyomhost/public_html/hanqr/resources/views/web/pages/ajax/filterform.blade.php ENDPATH**/ ?>