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 @@