From 2f81f1d61da677acd13f094c7ea4708ba2a4e909 Mon Sep 17 00:00:00 2001 From: Ludovic CANDELLIER Date: Mon, 24 Jan 2022 00:31:23 +0100 Subject: [PATCH] better integration of filters --- .../views/Shop/Tags/partials/filter.blade.php | 46 ++++++++++++------- .../layout/partials/category_add.blade.php | 3 +- .../Shop/layout/partials/header-nav.blade.php | 1 + resources/views/Shop/shelve.blade.php | 31 ++++++------- resources/views/load/layout/sidebar.blade.php | 20 ++++++++ 5 files changed, 66 insertions(+), 35 deletions(-) create mode 100644 resources/views/load/layout/sidebar.blade.php diff --git a/resources/views/Shop/Tags/partials/filter.blade.php b/resources/views/Shop/Tags/partials/filter.blade.php index 322f8eaf..d8b0124a 100644 --- a/resources/views/Shop/Tags/partials/filter.blade.php +++ b/resources/views/Shop/Tags/partials/filter.blade.php @@ -1,18 +1,32 @@ -
-
- @include('components.form.button', ['id' => 'reset_filters', 'txt' => 'Annuler les filtres', 'class' => 'btn-success w-100']) -
-
+ + +@push('js') + +@endpush \ No newline at end of file diff --git a/resources/views/Shop/layout/partials/category_add.blade.php b/resources/views/Shop/layout/partials/category_add.blade.php index f0537527..9698df72 100644 --- a/resources/views/Shop/layout/partials/category_add.blade.php +++ b/resources/views/Shop/layout/partials/category_add.blade.php @@ -1,12 +1,13 @@
diff --git a/resources/views/Shop/layout/partials/header-nav.blade.php b/resources/views/Shop/layout/partials/header-nav.blade.php index da348898..32cabe14 100644 --- a/resources/views/Shop/layout/partials/header-nav.blade.php +++ b/resources/views/Shop/layout/partials/header-nav.blade.php @@ -2,6 +2,7 @@
+
diff --git a/resources/views/Shop/shelve.blade.php b/resources/views/Shop/shelve.blade.php index e8f5abf4..bf5e0efa 100644 --- a/resources/views/Shop/shelve.blade.php +++ b/resources/views/Shop/shelve.blade.php @@ -3,25 +3,20 @@ ]) @section('content') + @include('Shop.Tags.partials.filter') +
-
- @include('Shop.Tags.partials.filter') +
+

{{ $category['name'] }}

+

{!! $category['description'] !!}

-
-
-
-

{{ $category['name'] }}

-

{!! $category['description'] !!}

-
-
- @include('Shop.layout.partials.category_add') -
-
- @if ($display_by_rows ?? false) - @include('Shop.layout.partials.category_articles_rows') - @else - @include('Shop.layout.partials.category_articles') - @endif +
+ @include('Shop.layout.partials.category_add')
-@endsection \ No newline at end of file + @if ($display_by_rows ?? false) + @include('Shop.layout.partials.category_articles_rows') + @else + @include('Shop.layout.partials.category_articles') + @endif +@endsection diff --git a/resources/views/load/layout/sidebar.blade.php b/resources/views/load/layout/sidebar.blade.php new file mode 100644 index 00000000..163a0fe3 --- /dev/null +++ b/resources/views/load/layout/sidebar.blade.php @@ -0,0 +1,20 @@ +@if(!defined('LOAD_SIDEBAR')) + @push('scripts') + + + + + + @endpush + + @push('css') + + @endpush + + @php(define('LOAD_SIDEBAR', true)) +@endif \ No newline at end of file