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