diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php
index bebfa47..ed77bb9 100644
--- a/app/Http/Controllers/HomeController.php
+++ b/app/Http/Controllers/HomeController.php
@@ -8,7 +8,7 @@ class HomeController extends Controller
{
- public function index(Request $request)
+ public function fashion(Request $request)
{
return view('home.fashion-v1');
}
diff --git a/app/Http/Controllers/ProductController.php b/app/Http/Controllers/ProductController.php
index e143976..0bb3ad6 100644
--- a/app/Http/Controllers/ProductController.php
+++ b/app/Http/Controllers/ProductController.php
@@ -477,7 +477,7 @@ class ProductController extends Controller
]);
}
- public function detail($slug, Request $request, ProductRepository $productRepository)
+ public function detailFashion($slug, Request $request, ProductRepository $productRepository)
{
$product = $productRepository->show($slug);
@@ -495,4 +495,7 @@ class ProductController extends Controller
]);
}
+
+
+
}
diff --git a/app/Repositories/Catalog/CategoryRepository.php b/app/Repositories/Catalog/CategoryRepository.php
index aafd7c9..0a68140 100644
--- a/app/Repositories/Catalog/CategoryRepository.php
+++ b/app/Repositories/Catalog/CategoryRepository.php
@@ -14,4 +14,5 @@ class CategoryRepository
public function getList($params){
return Category::get();
}
+
}
diff --git a/app/View/Components/Navbar/Categories.php b/app/View/Components/Navbar/Categories.php
new file mode 100644
index 0000000..42edec5
--- /dev/null
+++ b/app/View/Components/Navbar/Categories.php
@@ -0,0 +1,34 @@
+categories = $categoryRepository->getList([]);
+ }
+
+ /**
+ * Get the view / contents that represent the component.
+ */
+ public function render(): View|Closure|string
+ {
+
+ return view('components.navbar.categories', [
+ 'categories' => $this->categories,
+ ]);
+ }
+}
diff --git a/lang/en/navbar.php b/lang/en/navbar.php
index 114e838..ffd7c6e 100644
--- a/lang/en/navbar.php
+++ b/lang/en/navbar.php
@@ -13,5 +13,6 @@ return [
'sign_in' => 'Sign In',
'sign_up' => 'Sign Up',
'contact' => 'Contact',
- 'terms_conditions' => 'Terms & Conditions'
-];
\ No newline at end of file
+ 'terms_conditions' => 'Terms & Conditions',
+ 'categories' => 'Categories'
+];
diff --git a/lang/id/navbar.php b/lang/id/navbar.php
index 8133d23..9054bce 100644
--- a/lang/id/navbar.php
+++ b/lang/id/navbar.php
@@ -13,5 +13,6 @@ return [
'sign_in' => 'Masuk',
'sign_up' => 'Daftar',
'contact' => 'Kontak',
- 'terms_conditions' => 'Syarat & Ketentuan'
+ 'terms_conditions' => 'Syarat & Ketentuan',
+ 'categories' => 'Kategori',
];
diff --git a/resources/views/404/fashion.blade.php b/resources/views/404/fashion.blade.php
index 287f541..1a81b15 100644
--- a/resources/views/404/fashion.blade.php
+++ b/resources/views/404/fashion.blade.php
@@ -200,7 +200,7 @@