관리-도구
편집 파일: 36b846b18a878e066db5cbadd6fc7a4a.php
<?php if(isset($filterSection) && in_array('sorting', $filterSection)): ?> <div class="p-12 p-sm-20 bg-section rounded mb-3 mb-sm-20 overflow-wrap-anywhere"> <label for="" class="form-label"><?php echo e(translate('Sorting')); ?></label> <div class="bg-white rounded p-3"> <div class="row g-3"> <div class="col-sm-6"> <div class="d-flex gap-2"> <input class="form-check-input radio--input" type="radio" name="filter_sort_by" id="productSortBy1" value="latest" <?php echo e(empty(request('filter_sort_by')) || request('filter_sort_by') == 'latest' ? 'checked' : ''); ?>> <label class="form-check-label fs-12" for="productSortBy1"> <?php echo e(translate('Default')); ?> (<?php echo e(translate('Recent_Created')); ?>) </label> </div> </div> <div class="col-sm-6"> <div class="d-flex gap-2"> <input class="form-check-input radio--input" type="radio" name="filter_sort_by" id="productSortBy2" value="oldest" <?php echo e(request('filter_sort_by') == 'oldest' ? 'checked' : ''); ?>> <label class="form-check-label fs-12" for="productSortBy2"> <?php echo e(translate('Show_Older_First')); ?> </label> </div> </div> <div class="col-sm-6"> <div class="d-flex gap-2"> <input class="form-check-input radio--input" type="radio" name="filter_sort_by" id="productSortBy3" value="best-selling" <?php echo e(request('filter_sort_by') == 'best-selling' ? 'checked' : ''); ?>> <label class="form-check-label fs-12" for="productSortBy3"> <?php echo e(translate('Top_Selling_Products')); ?> </label> </div> </div> <div class="col-sm-6"> <div class="d-flex gap-2"> <input class="form-check-input radio--input" type="radio" name="filter_sort_by" id="productSortBy4" value="most-favorite" <?php echo e(request('filter_sort_by') == 'most-favorite' ? 'checked' : ''); ?>> <label class="form-check-label fs-12" for="productSortBy4"> <?php echo e(translate('Most_Popular_Products')); ?> </label> </div> </div> </div> </div> </div> <?php endif; ?> <?php if(isset($filterSection) && in_array('product_type', $filterSection)): ?> <div class="p-12 p-sm-20 bg-section rounded mb-3 mb-sm-20 overflow-wrap-anywhere"> <label for="" class="form-label"><?php echo e(translate('Product_Type')); ?></label> <div class="bg-white rounded p-3"> <div class="row gx-3 gy-4" style="--bs-gutter-y: 2rem;"> <div class="col-sm-6"> <div class="d-flex gap-2"> <input class="form-check-input checkbox--input mt-0" type="checkbox" name="filter_product_types[]" id="productType1" value="physical" <?php echo e(in_array('physical', request('filter_product_types', [])) ? 'checked' : ''); ?>> <label class="form-check-label fs-12" for="productType1"> <?php echo e(translate('Physical')); ?> </label> </div> </div> <div class="col-sm-6"> <div class="d-flex gap-2"> <input class="form-check-input checkbox--input mt-0" type="checkbox" name="filter_product_types[]" id="productType2" value="digital" <?php echo e(in_array('digital', request('filter_product_types', [])) ? 'checked' : ''); ?>> <label class="form-check-label fs-12" for="productType2"> <?php echo e(translate('Digital')); ?> </label> </div> </div> </div> </div> </div> <?php endif; ?> <?php if(isset($filterSection) && in_array('product_status', $filterSection)): ?> <div class="p-12 p-sm-20 bg-section rounded mb-3 mb-sm-20 overflow-wrap-anywhere"> <label for="" class="form-label"><?php echo e(translate('Status')); ?></label> <div class="bg-white rounded p-3"> <div class="row gx-3 gy-4" style="--bs-gutter-y: 2rem;"> <div class="col-sm-6"> <div class="d-flex gap-2"> <input class="form-check-input checkbox--input mt-0" type="checkbox" name="product_status[]" id="productStatus1" value="1" <?php echo e(in_array('1', request('product_status', [])) ? 'checked' : ''); ?>> <label class="form-check-label fs-12" for="productStatus1"> <?php echo e(translate('Active')); ?> </label> </div> </div> <div class="col-sm-6"> <div class="d-flex gap-2"> <input class="form-check-input checkbox--input mt-0" type="checkbox" name="product_status[]" id="productStatus2" value="0" <?php echo e(in_array('0', request('product_status', [])) ? 'checked' : ''); ?>> <label class="form-check-label fs-12" for="productStatus2"> <?php echo e(translate('Inactive')); ?> </label> </div> </div> </div> </div> </div> <?php endif; ?> <?php if(isset($filterSection) && in_array('store', $filterSection) && isset($productStores) && count($productStores) > 0): ?> <div class="p-12 p-sm-20 bg-section rounded mb-3 mb-sm-20 overflow-wrap-anywhere"> <label for="" class="form-label"><?php echo e(translate('Store')); ?></label> <div class="bg-white rounded p-3 pb-30 max-h-300 overflow-x-hidden overflow-y-auto"> <div class="row gx-3 gy-4" style="--bs-gutter-y: 2rem;" id="load-more-filter-stores-view"> <?php $__currentLoopData = $productStores; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $productStore): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="col-sm-6"> <div class="d-flex gap-2"> <input class="form-check-input checkbox--input mt-0" type="checkbox" name="filter_shop_ids[]" id="productStoreId<?php echo e($productStore['id']); ?>" value="<?php echo e($productStore['id']); ?>" <?php echo e(in_array($productStore['id'], request('filter_shop_ids', [])) ? 'checked' : ''); ?>> <label class="form-check-label fs-12" for="productStoreId<?php echo e($productStore['id']); ?>"> <?php echo e($productStore['name']); ?> </label> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> <div> <?php $visibleLimit = $productStores->perPage(); $totalCategories = $productStores->total(); $hiddenCount = $totalCategories - $visibleLimit; ?> <?php if($hiddenCount > 0): ?> <div class="col-12 text-center load-more-product-stores-container"> <div class="my-2 mt-3"> <div class="spinner-border my-2 load-more-product-stores-spinner d-none" role="status"> <span class="visually-hidden"><?php echo e(translate('Loading')); ?>...</span> </div> </div> <a href="javascript:" class="text-info-dark fw-semibold load-more-product-stores" data-route="<?php echo e(route('admin.vendors.load-more-stores')); ?>"> <?php echo e(translate('See_More')); ?> </a> </div> <?php endif; ?> </div> </div> <?php endif; ?> <?php if(isset($filterSection) && in_array('brand', $filterSection) && isset($productBrands) && count($productBrands) > 0): ?> <div class="p-12 p-sm-20 bg-section rounded mb-3 mb-sm-20 overflow-wrap-anywhere"> <label for="" class="form-label"><?php echo e(translate('Brand')); ?></label> <div class="bg-white rounded p-3 pb-30 max-h-300 overflow-x-hidden overflow-y-auto"> <div class="row gx-3 gy-4" style="--bs-gutter-y: 2rem;" id="load-more-filter-brands-view"> <?php ($brandCount=0); ?> <?php $__currentLoopData = $productBrands; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $productBrand): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if($brandCount < 8): ?> <?php ($brandCount++); ?> <div class="col-sm-6"> <div class="d-flex gap-2"> <input class="form-check-input checkbox--input mt-0" type="checkbox" name="filter_brand_ids[]" id="productBrandId<?php echo e($productBrand['id']); ?>" value="<?php echo e($productBrand['id']); ?>" <?php echo e(in_array($productBrand['id'], request('filter_brand_ids', [])) ? 'checked' : ''); ?>> <label class="form-check-label fs-12" for="productBrandId<?php echo e($productBrand['id']); ?>"> <?php echo e($productBrand['defaultname']); ?> </label> </div> </div> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <input type="hidden" name="filter_brand_old_ids" value="<?php echo e(json_encode(request('filter_brand_ids', []))); ?>"> </div> </div> <div> <?php if(count($productBrands) > 8): ?> <div class="col-12 text-center load-more-product-brands-container"> <div class="my-2 mt-3"> <div class="spinner-border my-2 load-more-product-brands-spinner d-none" role="status"> <span class="visually-hidden"><?php echo e(translate('Loading')); ?>...</span> </div> </div> <a href="javascript:" class="text-info-dark fw-semibold load-more-product-brands" data-route="<?php echo e(route('admin.brand.load-more-brands')); ?>"> <?php echo e(translate('See_More')); ?> </a> </div> <?php endif; ?> </div> </div> <?php endif; ?> <?php if(isset($filterSection) && in_array('category', $filterSection) && isset($productCategories) && count($productCategories) > 0): ?> <div class="p-12 p-sm-20 bg-section rounded mb-3 mb-sm-20 overflow-wrap-anywhere"> <label for="" class="form-label"><?php echo e(translate('Category')); ?></label> <div class="bg-white rounded p-3 pb-30 max-h-300 overflow-x-hidden overflow-y-auto"> <div class="row gx-3 gy-4" style="--bs-gutter-y: 2rem;"> <div class="col-sm-12"> <ul class="category-collapse-wrap d-flex flex-column gap-4 list-inline"> <?php $__currentLoopData = $productCategories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $productCategory): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <li> <?php $isParentCategoryChecked = (bool)in_array($productCategory['id'], request('filter_category_ids', [])); ?> <div class="d-flex align-items-center justify-content-between gap-1 category-header <?php echo e(in_array($productCategory['id'], request('filter_category_ids', [])) ? 'active' : ''); ?>"> <div class="d-flex gap-2"> <input class="form-check-input checkbox--input mt-0" type="checkbox" id="filter-category-id-<?php echo e($productCategory['id']); ?>" name="filter_category_ids[]" value="<?php echo e($productCategory['id']); ?>" <?php echo e(in_array($productCategory['id'], request('filter_category_ids', [])) ? 'checked' : ''); ?>> <label class="form-check-label text-dark fs-12 cursor-pointer line-1" for="filter-category-id-<?php echo e($productCategory['id']); ?>"> <?php echo e($productCategory['defaultname']); ?> </label> </div> <?php if(!empty($productCategory['childes']) && count($productCategory['childes']) > 0): ?> <label for="filter-category-id-<?php echo e($productCategory['id']); ?>" class="arrow-icon fs-20 lh-1 cursor-pointer"><i class="fi fi-rr-angle-small-right d-flex"></i> </label> <?php endif; ?> </div> <?php if(!empty($productCategory['childes']) && count($productCategory['childes']) > 0): ?> <ul class="category-has-item list-inline ps-20" <?php echo in_array($productCategory['id'], request('filter_category_ids', [])) ? 'style="display: block"' : ''; ?>> <?php $__currentLoopData = $productCategory['childes']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $productSubCategory): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <li> <div class="d-flex align-items-center justify-content-between gap-1 category-header <?php echo e(in_array($productSubCategory['id'], request('filter_sub_category_ids', [])) ? 'active' : ''); ?>"> <div class="d-flex gap-2"> <input class="form-check-input checkbox--input mt-0" type="checkbox" id="filter-category-id-<?php echo e($productSubCategory['id']); ?>" name="filter_sub_category_ids[]" value="<?php echo e($productSubCategory['id']); ?>" <?php echo e(in_array($productSubCategory['id'], request('filter_sub_category_ids', [])) ? 'checked' : ''); ?>> <label class="form-check-label text-dark fs-12 cursor-pointer line-1" for="filter-category-id-<?php echo e($productSubCategory['id']); ?>"> <?php echo e($productSubCategory['defaultname']); ?> </label> </div> <?php if(!empty($productSubCategory['childes']) && count($productSubCategory['childes']) > 0): ?> <label for="filter-category-id-<?php echo e($productSubCategory['id']); ?>" class="arrow-icon fs-20 lh-1 cursor-pointer"> <i class="fi fi-rr-angle-small-right d-flex"></i> </label> <?php endif; ?> </div> <?php if(!empty($productSubCategory['childes']) && count($productSubCategory['childes']) > 0): ?> <ul class="category-has-sub list-inline ps-20" <?php echo in_array($productSubCategory['id'], request('filter_sub_category_ids', [])) ? 'style="display: block"' : ''; ?>> <?php $__currentLoopData = $productSubCategory['childes']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $productSubSubCategory): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <li> <div class="d-flex align-items-center justify-content-between gap-1"> <div class="d-flex gap-2"> <input class="form-check-input checkbox--input mt-0" type="checkbox" id="filter-category-id-<?php echo e($productSubSubCategory['id']); ?>" name="filter_sub_sub_category_ids[]" value="<?php echo e($productSubSubCategory['id']); ?>" <?php echo e(in_array($productSubSubCategory['id'], request('filter_sub_sub_category_ids', [])) ? 'checked' : ''); ?>> <label class="form-check-label text-dark fs-12 cursor-pointer line-1" for="filter-category-id-<?php echo e($productSubSubCategory['id']); ?>"> <?php echo e($productSubSubCategory['defaultname']); ?> </label> </div> </div> </li> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </ul> <?php endif; ?> </li> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </ul> <?php endif; ?> </li> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </ul> </div> </div> </div> </div> <?php endif; ?> <?php /**PATH /home2/slnssare/public_html/resources/views/admin-views/partials/_product-filters-sections.blade.php ENDPATH**/ ?>