{{ __("Filter Results By") }}

@if (!empty(request()->input('search'))) @endif @if (!empty(request()->input('sort'))) @endif
    @foreach ($categories as $element)
  • {{$element->name}} @if(!empty($cat) && $cat->id == $element->id && !empty($cat->subs)) @foreach ($cat->subs as $key => $subelement)
    {{$subelement->name}} @if(!empty($subcat) && $subcat->id == $subelement->id && !empty($subcat->childs)) @foreach ($subcat->childs as $key => $childcat) @endforeach @endif
    @endforeach
    @endif
  • @endforeach @if(config("features.marketplace"))

    {{ __("Filter Results By") }} {{ __("Brands") }}

    @foreach ($brands as $element)
  • @endforeach @endif
{{ __("To") }}
@if(env("ENABLE_OLD_ATTR_STYLE")) @if ((!empty($cat)) || (!empty($subcat)) || (!empty($childcat)))

{{__('Filters')}}

    @if (!empty($cat) && !empty(json_decode($cat->attributes, true))) @foreach ($cat->attributes as $key => $attr)
    {{$attr->name}}
    @if (!empty($attr->attribute_options)) @foreach ($attr->attribute_options as $key => $option)
    @endforeach @endif @endforeach @endif @if (!empty($cat->subs)) @foreach ($cat->subs as $key => $attr) @foreach($attr->attributes as $key => $att)
    {{$att->name}}
    @if (!empty($att->attribute_options)) @foreach ($att->attribute_options as $key => $option)
    @endforeach @endif @endforeach @endforeach @endif @if (!empty($cat->childs)) @foreach ($cat->childs as $key => $attr) @foreach($attr->attributes as $key => $att)
    {{$att->name}}
    @if (!empty($att->attribute_options)) @foreach ($att->attribute_options as $key => $option)
    @endforeach @endif @endforeach @endforeach @endif
@endif @else @if ((!empty($cat)) || (!empty($subcat)) || (!empty($childcategory)))

{{__('Filters')}}

    @if (!empty($cat) && empty($subcat) && !empty(json_decode($cat->attributes, true))) @foreach ($cat->attributes as $key => $attr)
    {{$attr->name}}
    @if (!empty($attr->attribute_options)) @foreach ($attr->attribute_options as $key => $option)
    @endforeach @endif @endforeach @endif @if (!empty($subcat) && empty($childcategory)) @foreach ($cat->attributes as $key => $attr)
    {{$attr->name}}
    @if (!empty($attr->attribute_options)) @foreach ($attr->attribute_options as $key => $option)
    @endforeach @endif @endforeach @foreach ($subcat->attributes as $key => $attr)
    {{$attr->name}}
    @if (!empty($attr->attribute_options)) @foreach ($attr->attribute_options as $key => $option)
    @endforeach @endif @endforeach @endif @if (!empty($childcategory) && !empty(json_decode($childcategory->attributes, true))) @foreach ($cat->attributes as $key => $attr)
    {{$attr->name}}
    @if (!empty($attr->attribute_options)) @foreach ($attr->attribute_options as $key => $option)
    @endforeach @endif @endforeach @foreach ($subcat->attributes as $key => $attr)
    {{$attr->name}}
    @if (!empty($attr->attribute_options)) @foreach ($attr->attribute_options as $key => $option)
    @endforeach @endif @endforeach @foreach ($childcategory->attributes as $key => $attr)
    {{$attr->name}}
    @if (!empty($attr->attribute_options)) @foreach ($attr->attribute_options as $key => $option)
    @endforeach @endif @endforeach @endif
@endif @endif @if(!isset($vendor)) {{--

{{__("Popular Tags")}}

    @foreach(App\Models\Product::showTags() as $tag) @if(!empty($tag))
  • {{ $tag }}
  • @endif @endforeach
--}} @else

{{ __("Service Center") }}

@endif