Some Cleanup Done

This commit is contained in:
Devansh 2022-01-28 16:25:34 +05:30
parent e09e9f2845
commit 39836f9a7b
2 changed files with 8 additions and 22 deletions

View File

@ -1,17 +1,10 @@
<div class="layered-filter-wrapper">
{!! view_render_event('bagisto.shop.products.list.layered-nagigation.before') !!}
@if (isset($category))
<layered-navigation
attribute-src="{{ route('admin.catalog.products.get-filter-attributes', $category->id) }}"
max-price-src="{{ route('admin.catalog.products.get-category-product-maximum-price', $category->id) }}">
</layered-navigation>
@else
<layered-navigation
attribute-src="{{ route('admin.catalog.products.get-filter-attributes') }}"
max-price-src="{{ route('admin.catalog.products.get-category-product-maximum-price') }}">
</layered-navigation>
@endif
<layered-navigation
attribute-src="{{ route('admin.catalog.products.get-filter-attributes', $category->id ?? null) }}"
max-price-src="{{ route('admin.catalog.products.get-category-product-maximum-price', $category->id ?? null) }}">
</layered-navigation>
{!! view_render_event('bagisto.shop.products.list.layered-nagigation.after') !!}
</div>

View File

@ -1,17 +1,10 @@
<div class="layered-filter-wrapper left">
{!! view_render_event('bagisto.shop.products.list.layered-nagigation.before') !!}
@if (isset($category))
<layered-navigation
attribute-src="{{ route('admin.catalog.products.get-filter-attributes', $category->id) }}"
max-price-src="{{ route('admin.catalog.products.get-category-product-maximum-price', $category->id) }}">
</layered-navigation>
@else
<layered-navigation
attribute-src="{{ route('admin.catalog.products.get-filter-attributes') }}"
max-price-src="{{ route('admin.catalog.products.get-category-product-maximum-price') }}">
</layered-navigation>
@endif
<layered-navigation
attribute-src="{{ route('admin.catalog.products.get-filter-attributes', $category->id ?? null) }}"
max-price-src="{{ route('admin.catalog.products.get-category-product-maximum-price', $category->id ?? null) }}">
</layered-navigation>
{!! view_render_event('bagisto.shop.products.list.layered-nagigation.after') !!}
</div>