From 800fed20978f78589aee284dce85678a22553c6e Mon Sep 17 00:00:00 2001 From: ale Date: Tue, 27 Aug 2024 19:53:57 -0300 Subject: [PATCH] Agregada ruta para obtener total de pedidos --- routes/web.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/routes/web.php b/routes/web.php index 2b57d96..c5c4d6e 100644 --- a/routes/web.php +++ b/routes/web.php @@ -34,11 +34,11 @@ Route::get('/admin/obtener_sesion', function() { Route::middleware(['auth', 'admin'])->group( function () { Route::get('/admin/pedidos', 'AdminController@index')->name('admin_login.index'); - + Route::get('/admin/exportar-planillas-a-pdf/{gdc}', 'AdminController@exportarPlanillasAPdf'); - + Route::get('/admin/exportar-pedido-a-csv/{gdc}', 'AdminController@exportarPedidoACSV'); - + Route::get('/admin/exportar-pedido-con-nucleos-a-csv/{gdc}', 'AdminController@exportarPedidoConNucleosACSV'); }); @@ -70,3 +70,7 @@ Route::middleware('auth')->group( function() { })->name('obtenerSesion'); }); }); + +Route::middleware(['auth', 'comi_compras'])->group( function() { + Route::get('/compras/pedidos', 'ComprasController@pedidos')->name('compras.pedidos'); +});