diff --git a/app/Models/Gender.php b/app/Models/Gender.php new file mode 100644 index 0000000..ed50549 --- /dev/null +++ b/app/Models/Gender.php @@ -0,0 +1,24 @@ +name]); + $ids = collect($ids)->pluck("gender"); + return Gender::whereIn("name",$ids)->get(); + } + return Gender::get(); + } +} diff --git a/app/View/Components/Layout/Header.php b/app/View/Components/Layout/Header.php new file mode 100644 index 0000000..f0a5e3c --- /dev/null +++ b/app/View/Components/Layout/Header.php @@ -0,0 +1,26 @@ +genders = $genderRepository->getList([]); + $this->categories = $categoryRepository->getList([]); + // chunk + $this->categories = collect($this->categories)->chunk(7); + + } + + /** + * Get the view / contents that represent the component. + */ + public function render(): View|Closure|string + { + return view('components.layout.navbar-category'); + } +} diff --git a/resources/views/components/layout/header.blade.php b/resources/views/components/layout/header.blade.php new file mode 100644 index 0000000..a6910a5 --- /dev/null +++ b/resources/views/components/layout/header.blade.php @@ -0,0 +1,145 @@ + diff --git a/resources/views/components/layout/navbar-category.blade.php b/resources/views/components/layout/navbar-category.blade.php new file mode 100644 index 0000000..82e904f --- /dev/null +++ b/resources/views/components/layout/navbar-category.blade.php @@ -0,0 +1,93 @@ + diff --git a/resources/views/home/fashion-v1.blade.php b/resources/views/home/fashion-v1.blade.php index 1ee6938..fe3f44f 100644 --- a/resources/views/home/fashion-v1.blade.php +++ b/resources/views/home/fashion-v1.blade.php @@ -189,533 +189,7 @@ - +
diff --git a/resources/views/shop/catalog-fashion.blade.php b/resources/views/shop/catalog-fashion.blade.php index aa74acd..5db95cc 100644 --- a/resources/views/shop/catalog-fashion.blade.php +++ b/resources/views/shop/catalog-fashion.blade.php @@ -189,1195 +189,7 @@ - +
@@ -1447,8 +259,8 @@

@@ -1477,8 +289,7 @@
@@ -2022,7 +778,8 @@ aria-label="Add to Wishlist"> - +
Image
@@ -2048,15 +805,13 @@ Denim midi skirt with pockets
- - Shop + Shop now @@ -2375,7 +1136,8 @@ aria-label="Add to Wishlist"> - +
Image
@@ -2429,7 +1191,8 @@ aria-label="Add to Wishlist"> -
+
Image
@@ -2487,7 +1250,8 @@ aria-label="Add to Wishlist"> -
+
Image
@@ -2541,7 +1305,8 @@ aria-label="Add to Wishlist"> -
+
Image
diff --git a/resources/views/shop/product-fashion.blade.php b/resources/views/shop/product-fashion.blade.php index 248e396..2f94d66 100644 --- a/resources/views/shop/product-fashion.blade.php +++ b/resources/views/shop/product-fashion.blade.php @@ -593,674 +593,7 @@ -
+