'{trans}', 'where' => ['trans' => Trans::keys('|')], ], function () { include('routes.php'); } ); } // Workflow routes for booking Route::prefix('{guard}/booking')->group(function () { Route::get('/workflow/{booking}/{user}', 'BookingWorkflowController@get') ->name('bixo.offplan.workflow'); Route::post('/workflow/{booking}/{user}', 'BookingWorkflowController@post'); Route::get('/action/{booking}/{user}', 'BookingActionController@get') ->name('bixo.offplan.action'); Route::post('/action/{booking}/{user}', 'BookingActionController@post'); }); // Workflow routes for floorplan Route::prefix('{guard}/floorplan')->group(function () { Route::get('/workflow/{floorplan}/{user}', 'FloorplanWorkflowController@get') ->name('bixo.offplan.workflow'); Route::post('/workflow/{floorplan}/{user}', 'FloorplanWorkflowController@post'); Route::get('/action/{floorplan}/{user}', 'FloorplanActionController@get') ->name('bixo.offplan.action'); Route::post('/action/{floorplan}/{user}', 'FloorplanActionController@post'); }); // Workflow routes for payment Route::prefix('{guard}/payment')->group(function () { Route::get('/workflow/{payment}/{user}', 'PaymentWorkflowController@get') ->name('bixo.offplan.workflow'); Route::post('/workflow/{payment}/{user}', 'PaymentWorkflowController@post'); Route::get('/action/{payment}/{user}', 'PaymentActionController@get') ->name('bixo.offplan.action'); Route::post('/action/{payment}/{user}', 'PaymentActionController@post'); }); // Workflow routes for project Route::prefix('{guard}/project')->group(function () { Route::get('/workflow/{project}/{user}', 'ProjectWorkflowController@get') ->name('bixo.offplan.workflow'); Route::post('/workflow/{project}/{user}', 'ProjectWorkflowController@post'); Route::get('/action/{project}/{user}', 'ProjectActionController@get') ->name('bixo.offplan.action'); Route::post('/action/{project}/{user}', 'ProjectActionController@post'); }); // Workflow routes for unit Route::prefix('{guard}/unit')->group(function () { Route::get('/workflow/{unit}/{user}', 'UnitWorkflowController@get') ->name('bixo.offplan.workflow'); Route::post('/workflow/{unit}/{user}', 'UnitWorkflowController@post'); Route::get('/action/{unit}/{user}', 'UnitActionController@get') ->name('bixo.offplan.action'); Route::post('/action/{unit}/{user}', 'UnitActionController@post'); });