public function index()
 {
     $categories = Category::GetMainCategories();
     $data["categories"] = $categories;
     $products = Product::GetIndexProducts();
     $data["index_products"] = $products;
     return view("AdminPanel.admin_index_top_products", ["data" => $data]);
 }
 public function index()
 {
     //get data
     //TODO: Create a class for slideshow images
     $slideshow_images = DB::select('select path from slideshow_pics');
     $data["slideshow_images"] = $slideshow_images;
     $index_products = Product::GetIndexProducts();
     $data["index_products"] = $index_products;
     return view("index", ["data" => $data]);
 }