group(function () { Route::resource('call', 'CallResourceController'); }); if (Trans::isMultilingual()) { Route::group( [ 'prefix' => '{trans}', 'where' => ['trans' => Trans::keys('|')], ], function () { // Guard routes for pages Route::prefix('{guard}/page')->group(function () { Route::apiResource('page', 'CallResourceController'); }); // Public routes for pages Route::get('activities/', 'CallPublicController@index'); Route::get('activities/{slug?}', 'CallPublicController@show'); } ); } // web routes for meeting Route::prefix('{guard}/activity')->group(function () { Route::resource('meeting', 'MeetingResourceController'); }); if (Trans::isMultilingual()) { Route::group( [ 'prefix' => '{trans}', 'where' => ['trans' => Trans::keys('|')], ], function () { // Guard routes for pages Route::prefix('{guard}/page')->group(function () { Route::apiResource('page', 'MeetingResourceController'); }); // Public routes for pages Route::get('activities/', 'MeetingPublicController@index'); Route::get('activities/{slug?}', 'MeetingPublicController@show'); } ); } // web routes for task Route::prefix('{guard}/activity')->group(function () { Route::resource('task', 'TaskResourceController'); }); if (Trans::isMultilingual()) { Route::group( [ 'prefix' => '{trans}', 'where' => ['trans' => Trans::keys('|')], ], function () { // Guard routes for pages Route::prefix('{guard}/page')->group(function () { Route::apiResource('page', 'TaskResourceController'); }); // Public routes for pages Route::get('activities/', 'TaskPublicController@index'); Route::get('activities/{slug?}', 'TaskPublicController@show'); } ); } // web routes for attendee Route::prefix('{guard}/activity')->group(function () { Route::resource('attendee', 'AttendeeResourceController'); }); if (Trans::isMultilingual()) { Route::group( [ 'prefix' => '{trans}', 'where' => ['trans' => Trans::keys('|')], ], function () { // Guard routes for pages Route::prefix('{guard}/page')->group(function () { Route::apiResource('page', 'AttendeeResourceController'); }); // Public routes for pages Route::get('activities/', 'AttendeePublicController@index'); Route::get('activities/{slug?}', 'AttendeePublicController@show'); } ); } // web routes for calendar Route::prefix('{guard}/activity')->group(function () { Route::resource('calendar', 'CalendarResourceController'); }); if (Trans::isMultilingual()) { Route::group( [ 'prefix' => '{trans}', 'where' => ['trans' => Trans::keys('|')], ], function () { // Guard routes for pages Route::prefix('{guard}/page')->group(function () { Route::apiResource('page', 'CalendarResourceController'); }); // Public routes for pages Route::get('activities/', 'CalendarPublicController@index'); Route::get('activities/{slug?}', 'CalendarPublicController@show'); } ); }