'{trans}', 'where' => ['trans' => Trans::keys('|')], ], function () { include('routes.php'); } ); } // Workflow routes for snagging Route::prefix('{guard}/snagging')->group(function () { Route::get('/workflow/{snagging}/{user}', 'SnaggingWorkflowController@get') ->name('litecms.snagging.workflow'); Route::post('/workflow/{snagging}/{user}', 'SnaggingWorkflowController@post'); Route::get('/action/{snagging}/{user}', 'SnaggingActionController@get') ->name('litecms.snagging.action'); Route::post('/action/{snagging}/{user}', 'SnaggingActionController@post'); }); // Workflow routes for area Route::prefix('{guard}/area')->group(function () { Route::get('/action/{area}/{user}', 'AreaActionController@get') ->name('litecms.snagging.action'); Route::post('/action/{area}/{user}', 'AreaActionController@post'); }); // Workflow routes for schedule Route::prefix('{guard}/schedule')->group(function () { Route::get('/workflow/{schedule}/{user}', 'ScheduleWorkflowController@get') ->name('litecms.snagging.workflow'); Route::post('/workflow/{schedule}/{user}', 'ScheduleWorkflowController@post'); Route::get('/action/{schedule}/{user}', 'ScheduleActionController@get') ->name('litecms.snagging.action'); Route::post('/action/{schedule}/{user}', 'ScheduleActionController@post'); });