From 5051e78b13bccdcec6b32ce694978f592eba0a42 Mon Sep 17 00:00:00 2001 From: Loyd Tafireyi Date: Fri, 18 Sep 2020 11:54:08 +0200 Subject: [PATCH] Wishlist fix --- resources/views/layouts/frontend.blade.php | 4 +++- resources/views/product/show.blade.php | 7 ++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/resources/views/layouts/frontend.blade.php b/resources/views/layouts/frontend.blade.php index 14d41dd..26ee803 100644 --- a/resources/views/layouts/frontend.blade.php +++ b/resources/views/layouts/frontend.blade.php @@ -69,7 +69,9 @@ function gtag(){dataLayer.push(arguments);}
- {{ Cart::instance('wishlist')->count() }} + @if(Cart::instance('wishlist')->count() != 0) + {{ Cart::instance('wishlist')->count() }} + @endif
Wishlist
diff --git a/resources/views/product/show.blade.php b/resources/views/product/show.blade.php index 67a3f72..e0ac9e7 100644 --- a/resources/views/product/show.blade.php +++ b/resources/views/product/show.blade.php @@ -182,7 +182,12 @@ -
+ + @csrf + + + +