genders = $genderRepository->getList([]); $this->genders = collect($this->genders)->chunk(7); $this->categories = $categoryRepository->getList([]); // chunk $this->categories = collect($this->categories)->chunk(7); $this->brands = $brandsRepository->getList([]); $this->brands = collect($this->brands)->chunk(7); } /** * Get the view / contents that represent the component. */ public function render(): View|Closure|string { return view('components.layout.navbar-category'); } }