diff --git a/app/Http/Controllers/MainController.php b/app/Http/Controllers/MainController.php index 0a1a08c..7547001 100644 --- a/app/Http/Controllers/MainController.php +++ b/app/Http/Controllers/MainController.php @@ -121,11 +121,18 @@ class MainController extends Controller return redirect('/login'); } - public function singleProduct() + public function singleProduct($id) { - return view('singleProduct'); + $products = Products::find($id); + + if (!$products) { + abort(404); + } + + return view('singleProduct', compact('products')); } + public function blogDetails() { return view('blogDetails'); diff --git a/resources/views/about.blade.php b/resources/views/about.blade.php index 0569ba6..b718dad 100644 --- a/resources/views/about.blade.php +++ b/resources/views/about.blade.php @@ -215,29 +215,3 @@ - - -
-
-
+
-
- -
-
-
- - - - - - - - - - - - - - - - diff --git a/resources/views/blog.blade.php b/resources/views/blog.blade.php index 60b2e35..b58915a 100644 --- a/resources/views/blog.blade.php +++ b/resources/views/blog.blade.php @@ -113,29 +113,3 @@ - - -
-
-
+
-
- -
-
-
- - - - - - - - - - - - - - - - diff --git a/resources/views/blogDetails.blade.php b/resources/views/blogDetails.blade.php index f6fa688..f88fb53 100644 --- a/resources/views/blogDetails.blade.php +++ b/resources/views/blogDetails.blade.php @@ -132,29 +132,3 @@ - - -
-
-
+
-
- -
-
-
- - - - - - - - - - - - - - - - diff --git a/resources/views/cart.blade.php b/resources/views/cart.blade.php index 101eaa1..edb5214 100644 --- a/resources/views/cart.blade.php +++ b/resources/views/cart.blade.php @@ -156,29 +156,3 @@ - - -
-
-
+
-
- -
-
-
- - - - - - - - - - - - - - - - diff --git a/resources/views/checkout.blade.php b/resources/views/checkout.blade.php index 4ac0e53..f12a854 100644 --- a/resources/views/checkout.blade.php +++ b/resources/views/checkout.blade.php @@ -155,29 +155,3 @@ - - -
-
-
+
-
- -
-
-
- - - - - - - - - - - - - - - - diff --git a/resources/views/components/footer.blade.php b/resources/views/components/footer.blade.php index c853388..b036c51 100644 --- a/resources/views/components/footer.blade.php +++ b/resources/views/components/footer.blade.php @@ -1,3 +1,4 @@ +
@@ -62,3 +63,31 @@
+ + + + +
+
+
+
+
+ +
+
+
+ + + + + + + + + + + + + + + + diff --git a/resources/views/components/header.blade.php b/resources/views/components/header.blade.php index 2f37b05..9c00c95 100644 --- a/resources/views/components/header.blade.php +++ b/resources/views/components/header.blade.php @@ -14,14 +14,14 @@ rel="stylesheet"> - - - - - - - - + + + + + + + + @@ -48,9 +48,10 @@
- - - 0 + + + 0
Rs 0.00
@@ -93,7 +94,7 @@
@@ -123,9 +124,11 @@
- - - 0 + + + + 0
Rs 0.00
diff --git a/resources/views/index.blade.php b/resources/views/index.blade.php index 178c2c1..287e87d 100644 --- a/resources/views/index.blade.php +++ b/resources/views/index.blade.php @@ -114,7 +114,7 @@
  • Compare
  • -
  • @@ -275,30 +275,3 @@ - - - -
    -
    -
    +
    -
    - -
    -
    -
    - - - - - - - - - - - - - - - - diff --git a/resources/views/login.blade.php b/resources/views/login.blade.php index 4b5d4e8..9caa5c6 100644 --- a/resources/views/login.blade.php +++ b/resources/views/login.blade.php @@ -43,18 +43,3 @@ - - - - - - - - - - - - - - - diff --git a/resources/views/register.blade.php b/resources/views/register.blade.php index e8bdeab..7fe1617 100644 --- a/resources/views/register.blade.php +++ b/resources/views/register.blade.php @@ -65,29 +65,3 @@ - - -
    -
    -
    +
    -
    - -
    -
    -
    - - - - - - - - - - - - - - - - diff --git a/resources/views/shop.blade.php b/resources/views/shop.blade.php index 34fdfb4..d53b75b 100644 --- a/resources/views/shop.blade.php +++ b/resources/views/shop.blade.php @@ -662,29 +662,3 @@ - - -
    -
    -
    +
    -
    - -
    -
    -
    - - - - - - - - - - - - - - - - diff --git a/resources/views/singleProduct.blade.php b/resources/views/singleProduct.blade.php index 7b1b775..91aa26d 100644 --- a/resources/views/singleProduct.blade.php +++ b/resources/views/singleProduct.blade.php @@ -18,25 +18,29 @@