public function GetMainAndSubCategory($category, $sub_category)
 {
     $category_subCategory = Category::GetCategoryAndSubcategoryInfo($category, $sub_category);
     if (count($category_subCategory) == 0) {
         return Redirect::to("/");
     }
     $translatedCategory = Category::TranslateCategoryName($category);
     $translatedSubcategory = Category::TranslateSubcategoryName($sub_category);
     $sub_categories = Category::GetSubCategories($category_subCategory[0]->category_id);
     $newest_products = Product::GetProductsByMainAndSubCategory($translatedCategory[0]->category_id, $translatedSubcategory[0]->sub_category_id);
     $data["newest_products"] = $newest_products;
     $data["sub_info"] = $category_subCategory;
     $data["sub_categories"] = $sub_categories;
     return view("sub_category", ["data" => $data]);
 }