partial update create toggle active product and mutations

This commit is contained in:
2025-06-02 18:51:04 +07:00
parent 6bf8bc4965
commit a881779c4f
22 changed files with 512 additions and 21 deletions

View File

@@ -9,6 +9,7 @@ use App\Http\Controllers\TransactionController;
use App\Http\Controllers\UserController;
use App\Http\Controllers\WarehouseManagement\ProductCategoriesController;
use App\Http\Controllers\WarehouseManagement\ProductsController;
use App\Http\Controllers\WarehouseManagement\StockMutationsController;
use App\Http\Controllers\WorkController;
use App\Models\Menu;
use App\Models\Privilege;
@@ -206,7 +207,9 @@ Route::group(['middleware' => 'auth'], function() {
Route::prefix('warehouse')->group(function (){
Route::resource('products', ProductsController::class);
Route::resource('product_categories', ProductCategoriesController::class);
Route::get('categories/parents', [ProductCategoriesController::class, 'getParents']);
Route::get('categories/parents', [ProductCategoriesController::class, 'getParents'])->name('products.parents');
Route::post('products/{product}/toggle-active', [ProductsController::class, 'toggleActive'])->name('products.toggleActive');
Route::get('mutations/index',[StockMutationsController::class, 'index'])->name('mutations.index');
});
});