fix(product): separate list and TV visibility toggles

Product active toggle now drives show_in_list; TV has its own endpoint and no longer requires active.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-05 10:16:35 +03:30
co-authored by Cursor
parent f3eaf91559
commit e4e9c74872
2 changed files with 62 additions and 14 deletions
+1
View File
@@ -96,6 +96,7 @@ Route::middleware('auth:user')->group(function (){
Route::post('/product/archive/table', [ProductController::class, 'archiveTable']);
Route::get('/product/archive/{id}', [ProductController::class, 'archive']);
Route::get('/product/active/{id}',[ProductController::class, 'active']);
Route::get('/product/show_on_tv/{id}',[ProductController::class, 'showOnTv']);
Route::get('/product/hide/{id}',[ProductController::class, 'hide']);
Route::get('/product/credit',[ProductController::class, 'listProductCredit']);
Route::get('/product/list',[ProductController::class, 'listProduct']);