관리-도구
편집 파일: 63ebf3ec15542553ec41ab6e70ab1642.php
<?php // Defaults expected from include: $q, $cat, $collection, $min, $max, $sort, $categories, $collections $isOffcanvas = $isOffcanvas ?? false; ?> <form method="get" action="<?php echo e(route('store.shop')); ?>" class="filters-sticky"> <?php $__currentLoopData = request()->except(['page']); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $k => $v): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if(!in_array($k, ['q','category','collection','min','max','sort'])): ?> <?php if(is_array($v)): ?> <?php $__currentLoopData = $v; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $vv): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><input type="hidden" name="<?php echo e($k); ?>[]" value="<?php echo e($vv); ?>"><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php else: ?> <input type="hidden" name="<?php echo e($k); ?>" value="<?php echo e($v); ?>"> <?php endif; ?> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <div class="card border-0 shadow-sm mb-3"> <div class="card-body"> <div class="d-flex align-items-center justify-content-between mb-2"> <h6 class="mb-0"><?php echo e(__('messages.Filters')); ?></h6> <a href="<?php echo e(route('store.shop')); ?>" class="small text-muted"><?php echo e(__('messages.Reset')); ?></a> </div> <div class="mb-3"> <label class="form-label"><?php echo e(__('messages.Search')); ?></label> <input type="text" name="q" value="<?php echo e($q); ?>" class="form-control" placeholder="<?php echo e(__('messages.SearchProducts')); ?>" > </div> <div class="mb-3"> <label class="form-label"><?php echo e(__('messages.Category')); ?></label> <select name="category" class="form-select"> <option value=""><?php echo e(__('messages.AllCategories')); ?></option> <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $c): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($c->id); ?>" <?php if((string)$cat === (string)$c->id): echo 'selected'; endif; ?>><?php echo e($c->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <div class="mb-3"> <label class="form-label"><?php echo e(__('messages.Collection')); ?></label> <select name="collection" class="form-select"> <option value=""><?php echo e(__('messages.AllCollections')); ?></option> <?php $__currentLoopData = $collections; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $co): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $isSelected = (string)$collection === (string)$co->slug || (string)$collection === (string)$co->id; ?> <option value="<?php echo e($co->slug); ?>" <?php if($isSelected): echo 'selected'; endif; ?>><?php echo e($co->title ?: $co->slug); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <div class="row g-2 mb-3"> <div class="col-6"> <label class="form-label"><?php echo e(__('messages.MinPrice')); ?></label> <input type="number" step="0.01" min="0" name="min" value="<?php echo e($min); ?>" class="form-control" placeholder="0"> </div> <div class="col-6"> <label class="form-label"><?php echo e(__('messages.MaxPrice')); ?></label> <input type="number" step="0.01" min="0" name="max" value="<?php echo e($max); ?>" class="form-control" placeholder="9999"> </div> </div> <div class="mb-3"> <label class="form-label"><?php echo e(__('messages.Sort')); ?></label> <select name="sort" class="form-select"> <option value="latest" <?php if(($sort ?? 'latest') === 'latest'): echo 'selected'; endif; ?>><?php echo e(__('messages.Latest')); ?></option> <option value="price_asc" <?php if($sort === 'price_asc'): echo 'selected'; endif; ?>><?php echo e(__('messages.PriceUp')); ?></option> <option value="price_desc" <?php if($sort === 'price_desc'): echo 'selected'; endif; ?>><?php echo e(__('messages.PriceDown')); ?></option> </select> </div> <button class="btn btn-primary w-100"> <i class="bi bi-funnel"></i> <?php echo e($isOffcanvas ? __('messages.ApplyAndClose') : __('messages.ApplyFilters')); ?> </button> </div> </div> </form> <?php /**PATH /home/inprosysltd/public_html/rtlpos.inprosysltd.com/resources/views/store/partials/filters-card.blade.php ENDPATH**/ ?>