diff --git a/app/Http/Controllers/Admin/ProductController.php b/app/Http/Controllers/Admin/ProductController.php index 9859354..1cc1112 100644 --- a/app/Http/Controllers/Admin/ProductController.php +++ b/app/Http/Controllers/Admin/ProductController.php @@ -25,7 +25,7 @@ public function index() */ public function create() { - $categories = Category::orderBy('name')->get(); + $categories = Category::where('is_visible', 1)->orderBy('name')->get(); return view('admin.products.create', compact('categories')); } @@ -55,7 +55,7 @@ public function show(string $id) */ public function edit(Product $product) { - $categories = Category::orderBy('name')->get(); + $categories = Category::where('is_visible', 1)->orderBy('name')->get(); return view('admin.products.edit', compact('categories','product')); } diff --git a/resources/views/frontend/cart.blade.php b/resources/views/frontend/cart.blade.php index 5dbe154..32ba18c 100644 --- a/resources/views/frontend/cart.blade.php +++ b/resources/views/frontend/cart.blade.php @@ -10,7 +10,7 @@ @foreach( Cart::content() as $item )
  • - Front side of sienna cotton t-shirt. + Front side of sienna cotton t-shirt.
    diff --git a/resources/views/frontend/home.blade.php b/resources/views/frontend/home.blade.php index ec3bb40..4260ecb 100644 --- a/resources/views/frontend/home.blade.php +++ b/resources/views/frontend/home.blade.php @@ -176,7 +176,7 @@ class="h-full w-full object-cover object-center"> @foreach( $products as $product )