@php add_js_src(theme_asset('components/features/filter.js')); add_js_data('filter_data', [ 'search_url' => route('client.products') ]) @endphp

Khoảng giá

Sắp xếp theo

@if ($opts = get_product_sortby_options())
    @foreach ($opts as $value => $text) @if (!in_array($value, [1, 4, 5, 'seller'])) @continue @endif
  • sorttype?'checked':'' !!}>
  • @endforeach
@endif

Bộ lọc

@if ($cates = get_product_categories(['@countproduct' => true])) @php $cc = array_map('trim', explode(',', $request->categories)); @endphp
    @foreach ($cates as $cate)
  • id, $cc)?'checked':'' !!}>
  • @endforeach
@endif

Mục đích sử dụng

@if ($cates = get_product_tagss(['@limit' => 10])) @php $tags = array_map('trim', explode(',', $request->tags)); @endphp
    @foreach ($cates as $cate)
  • id, $cc)?'checked':'' !!}>
  • @endforeach
@endif

Phong Cách

@if ($cates = get_product_collections(['@limit' => 40]))
    @foreach ($cates as $cate) @php $args = $cate->getProductParams(); $count = get_product_count($args); @endphp @if (!$count) @continue @endif
  • id==$request->collection?'checked':'' !!}>
  • @endforeach
@endif