diff --git a/resources/views/mylinkspao.blade.php b/resources/views/mylinkspao.blade.php index 244089e0..3b51c254 100644 --- a/resources/views/mylinkspao.blade.php +++ b/resources/views/mylinkspao.blade.php @@ -7,8 +7,14 @@

Links

- Mostra i Libri con Quantità negativa -
- Verifica Prevendita Articolo 1 +
+ + + + +
- \ No newline at end of file + diff --git a/routes/web.php b/routes/web.php index 49a3d23b..d7cadab3 100644 --- a/routes/web.php +++ b/routes/web.php @@ -6211,8 +6211,23 @@ Route::get('/qtanegativa', function () { $ind++; } -}); +})->name('qtanegativa'); Route::get('/mylinkspao', function () { return view('mylinkspao'); -}); \ No newline at end of file +}); + +Route::get('/handle-article-action', function (Request $request) { + $id = $request->id; + $action = $request->action; + + if ($action == 'search') { + // Logica di ricerca dell'articolo + return "Ricerca articolo con ID: " . $id; + } elseif ($action == 'checkPreOrder') { + // Logica per verificare se l'articolo è in preordine + return "Verifica preordine per l'articolo con ID: " . $id; + } else { + return "Azione non supportata"; + } +})->name('handleArticleActionPao');