
<div class="filter-items">
    <div class="container-fluid">

        
        <div class="filter-item">
            <h5 class="filter-item-title">جستجو</h5>
            <div class="filter-item-content">
                <div class="search-form">
                    <div class="search-filed">
                        <input type="text" name="q" value="<?php echo e($search ?? ''); ?>"
                            placeholder="جستجوی محصولات ..."
                            class="form-control search-input">
                        <button type="submit" class="btn search-btn main-color-one-bg rounded-pill">
                            <i class="bi bi-search"></i>
                        </button>
                    </div>
                </div>
            </div>
        </div>

        
        <div class="filter-item">
            <h5 class="filter-item-title">دسته‌بندی‌ها</h5>
            <div class="filter-item-content">
                <?php $__currentLoopData = $categoryTree; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $node): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <?php
                    $cat   = $node['item'];
                    $depth = $node['depth'];
                    $indentClass = $depth > 0 ? 'shop-cat-indent-' . min($depth, 3) : '';
                    $isCurrent = isset($currentCategory) && $currentCategory && $currentCategory->id === $cat->id;
                    $checked   = $isCurrent || in_array($cat->id, $catIds ?? []);
                ?>
                <div class="shop-cat-row <?php echo e($indentClass); ?>">
                    <div class="form-check">
                        <input type="checkbox" name="categories[]"
                            id="<?php echo e($prefix); ?>_cat_<?php echo e($cat->id); ?>"
                            value="<?php echo e($cat->id); ?>"
                            data-slug="<?php echo e($cat->slug); ?>"
                            data-url="<?php echo e(route('shop.category', $cat->slug)); ?>"
                            class="form-check-input shop-cat-checkbox"
                            <?php echo e($checked ? 'checked' : ''); ?>>
                        <label class="form-check-label" for="<?php echo e($prefix); ?>_cat_<?php echo e($cat->id); ?>">
                            <?php if($cat->icon): ?>
                            <i class="bi bi-<?php echo e($cat->icon); ?> me-1"></i>
                            <?php endif; ?>
                            <?php echo e($cat->name); ?>

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

        
        
        <div class="filter-item">
            <h5 class="filter-item-title">قیمت</h5>
            <div class="filter-item-content">
                <div class="filter-price">
                    <div class="filter-slider">
                        <div class="price-slider shop-price-slider"
                            data-max="<?php echo e($maxPrice); ?>"
                            data-init-min="<?php echo e($priceMin ?? 0); ?>"
                            data-init-max="<?php echo e(($priceMax > 0) ? $priceMax : $maxPrice); ?>">
                        </div>
                    </div>
                    <ul class="filter-range mb-3">
                        <li>
                            <input type="text" class="min-price-filter" disabled>
                            <span>تومان</span>
                        </li>
                        <li class="label fw-bold">تا</li>
                        <li>
                            <input type="text" class="max-price-filter" disabled>
                            <span>تومان</span>
                        </li>
                    </ul>
                </div>
            </div>
        </div>

        
        <div class="filter-item text-center">
            <button type="submit" class="btn border-0 rounded-3 main-color-one-bg text-white w-100 py-2">اعمال فیلتر</button>
        </div>

        <?php if(!empty($catIds) || ($priceMin ?? 0) > 0 || ($priceMax ?? 0) > 0 || ($search ?? '') !== ''): ?>
        <div class="filter-item text-center mt-2">
            <a href="<?php echo e(route('shop')); ?>" class="text-muted font-14">
                <i class="bi bi-x-circle me-1"></i> پاک کردن فیلترها
            </a>
        </div>
        <?php endif; ?>

    </div>
</div>
<?php /**PATH C:\xampp\htdocs2\engine\resources\views/site/partials/shop-filters.blade.php ENDPATH**/ ?>