group(function () { Route::get('/', [DocumentsetsController::class, 'index'])->name('documentsets.index'); Route::get('/fetchdocuments', [DocumentsetsController::class, 'fetchdocuments'])->name('documentsets.fetchdocuments'); Route::get('/create', [DocumentsetsController::class, 'create'])->name('documentsets.create'); Route::post('/store', [DocumentsetsController::class, 'store'])->name('documentsets.store'); Route::post('/sort', [DocumentsetsController::class, 'sort'])->name('documentsets.sort'); Route::post('/updatealias', [DocumentsetsController::class, 'updatealias'])->name('documentsets.updatealias'); Route::get('/show/{id}', [DocumentsetsController::class, 'show'])->name('documentsets.show'); Route::get('/edit/{id}', [DocumentsetsController::class, 'edit'])->name('documentsets.edit') ; Route::post('/update/{id}', [DocumentsetsController::class, 'update'])->name('documentsets.update'); Route::delete('/destroy/{id}', [DocumentsetsController::class, 'destroy'])->name('documentsets.destroy'); Route::get('/toggle/{id}', [DocumentsetsController::class, 'toggle'])->name('documentsets.toggle'); Route::get('/clone/{id}', [DocumentsetsController::class, 'clone'])->name('documentsets.clone'); });