// ============================================ // ROUTES DU MODULE BOUTIQUE/STOCK // ============================================ // À inclure dans votre fichier de routes principal // Dashboard $router->get('/shop', 'Shop\\ShopDashboardController@index'); $router->get('/shop/dashboard', 'Shop\\ShopDashboardController@index'); // Catégories $router->get('/shop/categories', 'Shop\\ShopCategoriesController@index'); $router->get('/shop/categories/create', 'Shop\\ShopCategoriesController@create'); $router->post('/shop/categories', 'Shop\\ShopCategoriesController@store'); $router->get('/shop/categories/{id}', 'Shop\\ShopCategoriesController@show'); $router->get('/shop/categories/{id}/edit', 'Shop\\ShopCategoriesController@edit'); $router->post('/shop/categories/{id}', 'Shop\\ShopCategoriesController@update'); $router->post('/shop/categories/{id}/delete', 'Shop\\ShopCategoriesController@delete'); // Articles $router->get('/shop/articles', 'Shop\\ShopArticlesController@index'); $router->get('/shop/articles/create', 'Shop\\ShopArticlesController@create'); $router->post('/shop/articles', 'Shop\\ShopArticlesController@store'); $router->get('/shop/articles/{id}', 'Shop\\ShopArticlesController@show'); $router->get('/shop/articles/{id}/edit', 'Shop\\ShopArticlesController@edit'); $router->post('/shop/articles/{id}', 'Shop\\ShopArticlesController@update'); $router->post('/shop/articles/{id}/delete', 'Shop\\ShopArticlesController@delete'); // Stock $router->get('/shop/stock', 'Shop\\ShopStockController@index'); $router->get('/shop/stock/alimenter', 'Shop\\ShopStockController@createEntree'); $router->post('/shop/stock/alimenter', 'Shop\\ShopStockController@storeEntree'); $router->get('/shop/stock/mouvements', 'Shop\\ShopStockController@mouvements'); // Ventes $router->get('/shop/ventes', 'Shop\\ShopVentesController@index'); $router->get('/shop/ventes/create', 'Shop\\ShopVentesController@create'); $router->post('/shop/ventes', 'Shop\\ShopVentesController@store'); $router->get('/shop/ventes/{id}', 'Shop\\ShopVentesController@show'); $router->get('/shop/ventes/{id}/ticket', 'Shop\\ShopVentesController@ticket'); // Rapports $router->get('/shop/reports', 'Shop\\ShopReportsController@index'); $router->get('/shop/reports/ventes', 'Shop\\ShopReportsController@ventes'); $router->get('/shop/reports/ventes/pdf', 'Shop\\ShopReportsController@ventesPdf'); $router->get('/shop/reports/stock', 'Shop\\ShopReportsController@stock'); $router->get('/shop/reports/stock/pdf', 'Shop\\ShopReportsController@stockPdf');