@php
$filterableAttributes = app(Webkul\Attribute\Repositories\AttributeRepository::class)
->with([
'options' => function ($query) {
$query->orderBy('sort_order');
},
'options.translation' => function ($q) {
$q->where('locale', core()->getCurrentLocale()->code);
},
])
->getFilterableAttributes();
@endphp
@pushOnce('scripts')
@endPushOnce