@@ -24,6 +24,7 @@ public function __construct(
2424 public static function registerRoutes (\Slim \Routing \RouteCollectorProxy $ app ) {
2525 $ app ->get ('/brand ' , [ self ::class, 'brandSales ' ]);
2626 $ app ->get ('/category ' , [ self ::class, 'categorySales ' ]);
27+ $ app ->get ('/dogs ' , [ self ::class, 'dogs ' ]);
2728 $ app ->get ('/empty-products ' , [ self ::class, 'emptyProducts ' ]);
2829 $ app ->get ('/backordered-items ' , [ self ::class, 'backorderedItems ' ]);
2930 $ app ->get ('/cashflow ' , [ self ::class, 'cashflow ' ]);
@@ -113,6 +114,12 @@ public function purchases(Request $request, Response $response) {
113114 return $ this ->view ->render ($ response , 'report/purchases.html ' , $ data );
114115 }
115116
117+ public function dogs (Request $ request , Response $ response ) {
118+ $ data = $ this ->report ->dogs ();
119+ return $ this ->view ->render ($ response , 'report/dogs.html ' , $ data );
120+ }
121+
122+
116123 public function emptyProducts (Request $ request , Response $ response ) {
117124 $ data = $ this ->report ->emptyProducts ();
118125 return $ this ->view ->render ($ response , 'report/empty-products.html ' , $ data );
0 commit comments