@ -18,11 +18,8 @@ $router->get('/', function () use ($router) {
});
});
$router->group(['prefix'=>'api'], function () use ($router) {
$router->group(['prefix'=>'api'], function () use ($router) {
// API route
// Login
$router->post('/login', 'AuthController@login');
$router->post('/login', 'AuthController@login');
// Role
$router->post('/role/search', 'RoleController@search');
$router->post('/role/search', 'RoleController@search');
$router->post('/role/add', 'RoleController@add');
$router->post('/role/add', 'RoleController@add');
$router->get('/role/edit/{id}', 'RoleController@edit');
$router->get('/role/edit/{id}', 'RoleController@edit');
@ -31,7 +28,6 @@ $router->group(['prefix'=>'api'], function () use ($router) {
$router->get('/role/list', 'RoleController@list');
$router->get('/role/list', 'RoleController@list');
// menu
$router->post('/menu/add', 'MenuController@add');
$router->post('/menu/add', 'MenuController@add');
$router->get('/menu/edit/{id}', 'MenuController@edit');
$router->get('/menu/edit/{id}', 'MenuController@edit');
$router->put('/menu/update/{id}', 'MenuController@update');
$router->put('/menu/update/{id}', 'MenuController@update');
@ -39,34 +35,28 @@ $router->group(['prefix'=>'api'], function () use ($router) {
$router->post('/menu/search', 'MenuController@search');
$router->post('/menu/search', 'MenuController@search');
$router->get('/menu/management/{id}', 'MenuController@listMenu');
$router->get('/menu/management/{id}', 'MenuController@listMenu');
$router->get('/menu/list', 'MenuController@list');
$router->get('/menu/list', 'MenuController@list');
// role menu
$router->post('/role-menu/add', 'RoleMenuController@add');
$router->post('/role-menu/add', 'RoleMenuController@add');
$router->put('/role-menu/update/{id}', 'RoleMenuController@update');
$router->put('/role-menu/update/{id}', 'RoleMenuController@update');
$router->delete('/role-menu/delete/{id}', 'RoleMenuController@delete');
$router->delete('/role-menu/delete/{id}', 'RoleMenuController@delete');
$router->delete('/role-menu/delete-byrole/{id}', 'RoleMenuController@deleteByRole');
$router->delete('/role-menu/delete-byrole/{id}', 'RoleMenuController@deleteByRole');
$router->post('/role-menu/search', 'RoleMenuController@search');
$router->post('/role-menu/search', 'RoleMenuController@search');
$router->get('/role-menu/get-role/{id}', 'RoleMenuController@listMenu');
$router->get('/role-menu/get-role/{id}', 'RoleMenuController@listMenu');
// download dokumen no need token
$router->get('/document-project/download/{id}', 'ProjectDokumenController@downloadDokumen');
$router->get('/document-project/download/{id}', 'ProjectDokumenController@downloadDokumen');
$router->group(['middleware' => 'auth'], function () use ($router) {
$router->group(['middleware' => 'auth'], function () use ($router) {
// API route need token to akses
// project dokumen
$router->post('/document-project/upload', 'ProjectDokumenController@uploadProjectDokumen');
$router->post('/document-project/upload', 'ProjectDokumenController@uploadProjectDokumen');
$router->get('/document-project/get/{id}', 'ProjectDokumenController@dokumenByProyekId');
$router->get('/document-project/get/{id}', 'ProjectDokumenController@dokumenByProyekId');
$router->delete('/document-project/delete/{id}', 'ProjectDokumenController@delete');
$router->delete('/document-project/delete/{id}', 'ProjectDokumenController@delete');
$router->post('/document-project/search', 'ProjectDokumenController@searchDocProject');
$router->post('/document-project/search', 'ProjectDokumenController@searchDocProject');
// activity dokumen
$router->post('/document-activity/upload', 'ActivityDokumenController@uploadProjectDokumen');
$router->post('/document-activity/upload', 'ActivityDokumenController@uploadProjectDokumen');
$router->get('/document-activity/get/{id}', 'ActivityDokumenController@dokumenByActivityId');
$router->get('/document-activity/get/{id}', 'ActivityDokumenController@dokumenByActivityId');
$router->delete('/document-activity/delete/{id}', 'ActivityDokumenController@delete');
$router->delete('/document-activity/delete/{id}', 'ActivityDokumenController@delete');
$router->post('/document-activity/search', 'ActivityDokumenController@searchDocProject');
$router->post('/document-activity/search', 'ActivityDokumenController@searchDocProject');
$router->get('/document-activity/download/{id}', 'ActivityDokumenController@downloadDokumen');
$router->get('/document-activity/download/{id}', 'ActivityDokumenController@downloadDokumen');
// project
$router->post('/project/search', 'ProjectController@search');
$router->post('/project/search', 'ProjectController@search');
$router->post('/project/add', 'ProjectController@add');
$router->post('/project/add', 'ProjectController@add');
$router->put('/project/update/{id}', 'ProjectController@update');
$router->put('/project/update/{id}', 'ProjectController@update');
@ -74,12 +64,10 @@ $router->group(['prefix'=>'api'], function () use ($router) {
$router->delete('/project/delete/{id}', 'ProjectController@delete');
$router->delete('/project/delete/{id}', 'ProjectController@delete');
$router->get('/project/list', 'ProjectController@list');
$router->get('/project/list', 'ProjectController@list');
$router->get('/project/list-user/{id}', 'ProjectController@getListProjectTask');
$router->get('/project/list-user/{id}', 'ProjectController@getListProjectTask');
// Project Charter
$router->post('/project-charter/search', 'ProjectCharterController@search');
$router->post('/project-charter/search', 'ProjectCharterController@search');
$router->post('/project-charter/add', 'ProjectCharterController@add');
$router->post('/project-charter/add', 'ProjectCharterController@add');
$router->put('/project-charter/update/{id}', 'ProjectCharterController@update');
$router->put('/project-charter/update/{id}', 'ProjectCharterController@update');
// divisi
$router->post('/divisi/add', 'DivisiController@add');
$router->post('/divisi/add', 'DivisiController@add');
$router->get('/divisi/edit/{id}', 'DivisiController@edit');
$router->get('/divisi/edit/{id}', 'DivisiController@edit');
$router->put('/divisi/update/{id}', 'DivisiController@update');
$router->put('/divisi/update/{id}', 'DivisiController@update');
@ -87,7 +75,6 @@ $router->group(['prefix'=>'api'], function () use ($router) {
$router->delete('/divisi/delete/{id}', 'DivisiController@delete');
$router->delete('/divisi/delete/{id}', 'DivisiController@delete');
$router->get('/divisi/list', 'DivisiController@list');
$router->get('/divisi/list', 'DivisiController@list');
// config alert
$router->post('/config-alert/search', 'ConfigAlertController@search');
$router->post('/config-alert/search', 'ConfigAlertController@search');
$router->post('/config-alert/add', 'ConfigAlertController@add');
$router->post('/config-alert/add', 'ConfigAlertController@add');
$router->get('/config-alert/edit/{id}', 'ConfigAlertController@edit');
$router->get('/config-alert/edit/{id}', 'ConfigAlertController@edit');
@ -95,14 +82,12 @@ $router->group(['prefix'=>'api'], function () use ($router) {
$router->delete('/config-alert/delete/{id}', 'ConfigAlertController@delete');
$router->delete('/config-alert/delete/{id}', 'ConfigAlertController@delete');
$router->get('/config-alert/list', 'ConfigAlertController@list');
$router->get('/config-alert/list', 'ConfigAlertController@list');
// config alert user
$router->post('/config-alert-to-user/search', 'ConfigAlertUserController@search');
$router->post('/config-alert-to-user/search', 'ConfigAlertUserController@search');
$router->post('/config-alert-to-user/add', 'ConfigAlertUserController@add');
$router->post('/config-alert-to-user/add', 'ConfigAlertUserController@add');
$router->put('/config-alert-to-user/update/{id}', 'ConfigAlertUserController@update');
$router->put('/config-alert-to-user/update/{id}', 'ConfigAlertUserController@update');
$router->delete('/config-alert-to-user/delete/{id}', 'ConfigAlertUserController@delete');
$router->delete('/config-alert-to-user/delete/{id}', 'ConfigAlertUserController@delete');
$router->get('/config-alert/get-user/{id}', 'ConfigAlertUserController@getConfigUser');
$router->get('/config-alert/get-user/{id}', 'ConfigAlertUserController@getConfigUser');
// Human Resource
$router->post('/human-resource/search', 'HumanResourceController@search');
$router->post('/human-resource/search', 'HumanResourceController@search');
$router->post('/human-resource/add', 'HumanResourceController@add');
$router->post('/human-resource/add', 'HumanResourceController@add');
$router->get('/human-resource/edit/{id}', 'HumanResourceController@edit');
$router->get('/human-resource/edit/{id}', 'HumanResourceController@edit');
@ -112,7 +97,6 @@ $router->group(['prefix'=>'api'], function () use ($router) {
$router->get('/human-resource/select', 'HumanResourceController@select');
$router->get('/human-resource/select', 'HumanResourceController@select');
$router->post('/human-resource/check-old-password/{id}', 'HumanResourceController@checkOldPassword');
$router->post('/human-resource/check-old-password/{id}', 'HumanResourceController@checkOldPassword');
// Project Role
$router->post('/project-role/search', 'ProjectRoleController@search');
$router->post('/project-role/search', 'ProjectRoleController@search');
$router->post('/project-role/add', 'ProjectRoleController@add');
$router->post('/project-role/add', 'ProjectRoleController@add');
$router->get('/project-role/edit/{id}', 'ProjectRoleController@edit');
$router->get('/project-role/edit/{id}', 'ProjectRoleController@edit');
@ -121,7 +105,6 @@ $router->group(['prefix'=>'api'], function () use ($router) {
$router->get('/project-role/list', 'ProjectRoleController@list');
$router->get('/project-role/list', 'ProjectRoleController@list');
$router->get('/project-role/select', 'ProjectRoleController@select');
$router->get('/project-role/select', 'ProjectRoleController@select');
// Project Type
$router->post('/project-type/search', 'ProjectTypeController@search');
$router->post('/project-type/search', 'ProjectTypeController@search');
$router->post('/project-type/add', 'ProjectTypeController@add');
$router->post('/project-type/add', 'ProjectTypeController@add');
$router->get('/project-type/edit/{id}', 'ProjectTypeController@edit');
$router->get('/project-type/edit/{id}', 'ProjectTypeController@edit');
@ -129,10 +112,8 @@ $router->group(['prefix'=>'api'], function () use ($router) {
$router->delete('/project-type/delete/{id}', 'ProjectTypeController@delete');
$router->delete('/project-type/delete/{id}', 'ProjectTypeController@delete');
$router->get('/project-type/list', 'ProjectTypeController@list');
$router->get('/project-type/list', 'ProjectTypeController@list');
// user to project
$router->post('/user-to-project/assign', 'UserProyekController@assignUserProyek');
$router->post('/user-to-project/assign', 'UserProyekController@assignUserProyek');
// Request Material
$router->post('/request-material/add', 'RequestMaterialController@add');
$router->post('/request-material/add', 'RequestMaterialController@add');
$router->post('/request-material/search', 'RequestMaterialController@search');
$router->post('/request-material/search', 'RequestMaterialController@search');
$router->get('/request-material/edit/{id}', 'RequestMaterialController@edit');
$router->get('/request-material/edit/{id}', 'RequestMaterialController@edit');
@ -140,13 +121,10 @@ $router->group(['prefix'=>'api'], function () use ($router) {
$router->delete('/request-material/delete/{id}', 'RequestMaterialController@delete');
$router->delete('/request-material/delete/{id}', 'RequestMaterialController@delete');
$router->get('/request-material/list', 'RequestMaterialController@list');
$router->get('/request-material/list', 'RequestMaterialController@list');
// update receipt to warehouse / site
$router->put('/request-material/update-warehouse-site/{id}', 'RequestMaterialController@updateWarehouseSite');
$router->put('/request-material/update-warehouse-site/{id}', 'RequestMaterialController@updateWarehouseSite');
// Material to project
$router->post('/material-to-project/assign', 'MaterialProjectController@assignMaterial');
$router->post('/material-to-project/assign', 'MaterialProjectController@assignMaterial');
// material resource
$router->post('/material-resource/add', 'MaterialResourceController@add');
$router->post('/material-resource/add', 'MaterialResourceController@add');
$router->post('/material-resource/search', 'MaterialResourceController@search');
$router->post('/material-resource/search', 'MaterialResourceController@search');
$router->get('/material-resource/update/{id}', 'MaterialResourceController@edit');
$router->get('/material-resource/update/{id}', 'MaterialResourceController@edit');
@ -155,11 +133,9 @@ $router->group(['prefix'=>'api'], function () use ($router) {
$router->get('/material-resource/list', 'MaterialResourceController@list');
$router->get('/material-resource/list', 'MaterialResourceController@list');
$router->get('/material-resource/select', 'MaterialResourceController@select');
$router->get('/material-resource/select', 'MaterialResourceController@select');
// Tools to project
$router->post('/tools-to-project/assign', 'ToolsProjectController@assignTools');
$router->post('/tools-to-project/assign', 'ToolsProjectController@assignTools');
$router->get('/tools-to-project/search', 'ToolsProjectController@searchTools');
$router->get('/tools-to-project/search', 'ToolsProjectController@searchTools');
// tools resource
$router->post('/tools-resource/add', 'ToolsResourceController@add');
$router->post('/tools-resource/add', 'ToolsResourceController@add');
$router->post('/tools-resource/search', 'ToolsResourceController@search');
$router->post('/tools-resource/search', 'ToolsResourceController@search');
$router->get('/tools-resource/edit/{id}', 'ToolsResourceController@edit');
$router->get('/tools-resource/edit/{id}', 'ToolsResourceController@edit');
@ -168,7 +144,6 @@ $router->group(['prefix'=>'api'], function () use ($router) {
$router->get('/tools-resource/list', 'ToolsResourceController@list');
$router->get('/tools-resource/list', 'ToolsResourceController@list');
$router->get('/tools-resource/select', 'ToolsResourceController@select');
$router->get('/tools-resource/select', 'ToolsResourceController@select');
// Tools Request
$router->post('/req-tools/add', 'ToolsRequestController@add');
$router->post('/req-tools/add', 'ToolsRequestController@add');
$router->get('/req-tools/edit/{id}', 'ToolsRequestController@edit');
$router->get('/req-tools/edit/{id}', 'ToolsRequestController@edit');
$router->put('/req-tools/update/{id}', 'ToolsRequestController@update');
$router->put('/req-tools/update/{id}', 'ToolsRequestController@update');
@ -176,7 +151,6 @@ $router->group(['prefix'=>'api'], function () use ($router) {
$router->delete('/req-tools/delete/{id}', 'ToolsRequestController@delete');
$router->delete('/req-tools/delete/{id}', 'ToolsRequestController@delete');
$router->get('/req-tools/list', 'ToolsRequestController@list');
$router->get('/req-tools/list', 'ToolsRequestController@list');
// Version Gantt
$router->post('/version-gantt/add', 'VersionGanttController@add');
$router->post('/version-gantt/add', 'VersionGanttController@add');
$router->get('/version-gantt/edit/{id}', 'VersionGanttController@edit');
$router->get('/version-gantt/edit/{id}', 'VersionGanttController@edit');
$router->put('/version-gantt/update/{id}', 'VersionGanttController@update');
$router->put('/version-gantt/update/{id}', 'VersionGanttController@update');
@ -184,7 +158,6 @@ $router->group(['prefix'=>'api'], function () use ($router) {
$router->delete('/version-gantt/delete/{id}', 'VersionGanttController@delete');
$router->delete('/version-gantt/delete/{id}', 'VersionGanttController@delete');
$router->get('/version-gantt/list', 'VersionGanttController@list');
$router->get('/version-gantt/list', 'VersionGanttController@list');
// User Version Gantt
$router->post('/user-to-version-gantt/add', 'UserToVersionGanttController@add');
$router->post('/user-to-version-gantt/add', 'UserToVersionGanttController@add');
$router->post('/user-to-version-gantt/add-multiple', 'UserToVersionGanttController@addMultiple');
$router->post('/user-to-version-gantt/add-multiple', 'UserToVersionGanttController@addMultiple');
$router->get('/user-to-version-gantt/edit/{id}', 'UserToVersionGanttController@edit');
$router->get('/user-to-version-gantt/edit/{id}', 'UserToVersionGanttController@edit');
@ -194,7 +167,6 @@ $router->group(['prefix'=>'api'], function () use ($router) {
$router->get('/user-to-version-gantt/list', 'UserToVersionGanttController@list');
$router->get('/user-to-version-gantt/list', 'UserToVersionGanttController@list');
$router->get('/user-to-version-gantt/get-by-gantt/{gantt_id}', 'UserToVersionGanttController@getByUserGantt');
$router->get('/user-to-version-gantt/get-by-gantt/{gantt_id}', 'UserToVersionGanttController@getByUserGantt');
// User to activity
$router->post('/user-to-activity/add', 'UserToActivityController@add');
$router->post('/user-to-activity/add', 'UserToActivityController@add');
$router->post('/user-to-activity/add-multiple', 'UserToActivityController@addMultiple');
$router->post('/user-to-activity/add-multiple', 'UserToActivityController@addMultiple');
$router->get('/user-to-activity/edit/{id}', 'UserToActivityController@edit');
$router->get('/user-to-activity/edit/{id}', 'UserToActivityController@edit');
@ -204,7 +176,6 @@ $router->group(['prefix'=>'api'], function () use ($router) {
$router->get('/user-to-activity/list', 'UserToActivityController@list');
$router->get('/user-to-activity/list', 'UserToActivityController@list');
$router->get('/user-to-activity/datatables', 'UserToActivityController@datatables');
$router->get('/user-to-activity/datatables', 'UserToActivityController@datatables');
// activity
$router->get('/sumVolActualM/{id}', 'ActivityController@sumVolumeActualMaterial');
$router->get('/sumVolActualM/{id}', 'ActivityController@sumVolumeActualMaterial');
$router->get('/activity/{id}/{proyek_id}/get', 'ActivityController@getByGanttId');
$router->get('/activity/{id}/{proyek_id}/get', 'ActivityController@getByGanttId');
$router->get('/activity/search', 'ActivityController@search');
$router->get('/activity/search', 'ActivityController@search');
@ -219,12 +190,10 @@ $router->group(['prefix'=>'api'], function () use ($router) {
$router->post('/activity/get-curva-s', 'ActivityController@getCalculateCurvaS');
$router->post('/activity/get-curva-s', 'ActivityController@getCalculateCurvaS');
$router->get('/activity/synchronize-report/{gantt_id}', 'ActivityController@synchronizeReport');
$router->get('/activity/synchronize-report/{gantt_id}', 'ActivityController@synchronizeReport');
// link
$router->post('/link', 'LinkController@add');
$router->post('/link', 'LinkController@add');
$router->put('/link/{id}', 'LinkController@update');
$router->put('/link/{id}', 'LinkController@update');
$router->delete('/link/{id}', 'LinkController@delete');
$router->delete('/link/{id}', 'LinkController@delete');
// template gantt
$router->post('/template-gantt/add', 'TemplateGanttController@add');
$router->post('/template-gantt/add', 'TemplateGanttController@add');
$router->get('/template-gantt/edit/{id}', 'TemplateGanttController@edit');
$router->get('/template-gantt/edit/{id}', 'TemplateGanttController@edit');
$router->put('/template-gantt/update/{id}', 'TemplateGanttController@update');
$router->put('/template-gantt/update/{id}', 'TemplateGanttController@update');
@ -233,7 +202,6 @@ $router->group(['prefix'=>'api'], function () use ($router) {
$router->get('/template-gantt/list', 'TemplateGanttController@list');
$router->get('/template-gantt/list', 'TemplateGanttController@list');
$router->get('/template-gantt/get-tree/{id}', 'TemplateGanttController@getTreeByTypeProject');
$router->get('/template-gantt/get-tree/{id}', 'TemplateGanttController@getTreeByTypeProject');
// comment activity
$router->post('/comment-activity/add', 'CommentActivityController@add');
$router->post('/comment-activity/add', 'CommentActivityController@add');
$router->get('/comment-activity/edit/{id}', 'CommentActivityController@edit');
$router->get('/comment-activity/edit/{id}', 'CommentActivityController@edit');
$router->put('/comment-activity/update/{id}', 'CommentActivityController@update');
$router->put('/comment-activity/update/{id}', 'CommentActivityController@update');
@ -241,7 +209,6 @@ $router->group(['prefix'=>'api'], function () use ($router) {
$router->delete('/comment-activity/delete/{id}', 'CommentActivityController@delete');
$router->delete('/comment-activity/delete/{id}', 'CommentActivityController@delete');
$router->get('/comment-activity/list', 'CommentActivityController@list');
$router->get('/comment-activity/list', 'CommentActivityController@list');
// presence human resource
$router->post('/presence/add', 'PresenceController@add');
$router->post('/presence/add', 'PresenceController@add');
$router->get('/presence/edit/{id}', 'PresenceController@edit');
$router->get('/presence/edit/{id}', 'PresenceController@edit');
$router->put('/presence/update/{id}', 'PresenceController@update');
$router->put('/presence/update/{id}', 'PresenceController@update');
@ -251,7 +218,6 @@ $router->group(['prefix'=>'api'], function () use ($router) {
$router->get('/presence/clockinout/{id}', 'PresenceController@clockinout');
$router->get('/presence/clockinout/{id}', 'PresenceController@clockinout');
$router->get('/presence/bulk-update-location', 'PresenceController@bulkUpdateLocation');
$router->get('/presence/bulk-update-location', 'PresenceController@bulkUpdateLocation');
// absent human resource
$router->post('/permit/add', 'AbsentController@add');
$router->post('/permit/add', 'AbsentController@add');
$router->get('/permit/edit/{id}', 'AbsentController@edit');
$router->get('/permit/edit/{id}', 'AbsentController@edit');
$router->put('/permit/update/{id}', 'AbsentController@update');
$router->put('/permit/update/{id}', 'AbsentController@update');
@ -259,7 +225,6 @@ $router->group(['prefix'=>'api'], function () use ($router) {
$router->delete('/permit/delete/{id}', 'AbsentController@delete');
$router->delete('/permit/delete/{id}', 'AbsentController@delete');
$router->get('/permit/list', 'AbsentController@list');
$router->get('/permit/list', 'AbsentController@list');
// assign tools
$router->post('/assign-tools/add', 'AssignToolsController@add');
$router->post('/assign-tools/add', 'AssignToolsController@add');
$router->get('/assign-tools/edit/{id}', 'AssignToolsController@edit');
$router->get('/assign-tools/edit/{id}', 'AssignToolsController@edit');
$router->put('/assign-tools/update/{id}', 'AssignToolsController@update');
$router->put('/assign-tools/update/{id}', 'AssignToolsController@update');
@ -268,7 +233,6 @@ $router->group(['prefix'=>'api'], function () use ($router) {
$router->get('/assign-tools/list', 'AssignToolsController@list');
$router->get('/assign-tools/list', 'AssignToolsController@list');
$router->get('/assign-tools/datatables', 'AssignToolsController@datatables');
$router->get('/assign-tools/datatables', 'AssignToolsController@datatables');
// assign material
$router->post('/assign-material/add', 'AssignMaterialController@add');
$router->post('/assign-material/add', 'AssignMaterialController@add');
$router->get('/assign-material/edit/{id}', 'AssignMaterialController@edit');
$router->get('/assign-material/edit/{id}', 'AssignMaterialController@edit');
$router->put('/assign-material/update/{id}', 'AssignMaterialController@update');
$router->put('/assign-material/update/{id}', 'AssignMaterialController@update');
@ -279,14 +243,12 @@ $router->group(['prefix'=>'api'], function () use ($router) {
$router->get('/assign-material/datatablesForReportActivity', 'AssignMaterialController@datatablesForReportActivity');
$router->get('/assign-material/datatablesForReportActivity', 'AssignMaterialController@datatablesForReportActivity');
$router->post('/assign-material/ForReportActivityByMaterial', 'AssignMaterialController@ForReportActivityByMaterial');
$router->post('/assign-material/ForReportActivityByMaterial', 'AssignMaterialController@ForReportActivityByMaterial');
// image
$router->post('/image/search', 'ImageController@search');
$router->post('/image/search', 'ImageController@search');
$router->delete('/image/delete/{id}', 'ImageController@delete');
$router->delete('/image/delete/{id}', 'ImageController@delete');
$router->delete('/image/delete/{id}/{category}', 'ImageController@deleteByRef');
$router->delete('/image/delete/{id}/{category}', 'ImageController@deleteByRef');
$router->post('/image/upload', 'ImageController@uploadImage');
$router->post('/image/upload', 'ImageController@uploadImage');
$router->get('/image/{id}/{category}', 'ImageController@getByRefId');
$router->get('/image/{id}/{category}', 'ImageController@getByRefId');
// panic button
$router->post('/panic-button/add', 'PanicButtonController@add');
$router->post('/panic-button/add', 'PanicButtonController@add');
$router->get('/panic-button/edit/{id}', 'PanicButtonController@edit');
$router->get('/panic-button/edit/{id}', 'PanicButtonController@edit');
$router->put('/panic-button/update/{id}', 'PanicButtonController@update');
$router->put('/panic-button/update/{id}', 'PanicButtonController@update');
@ -294,7 +256,6 @@ $router->group(['prefix'=>'api'], function () use ($router) {
$router->delete('/panic-button/delete/{id}', 'PanicButtonController@delete');
$router->delete('/panic-button/delete/{id}', 'PanicButtonController@delete');
$router->get('/panic-button/list', 'PanicButtonController@list');
$router->get('/panic-button/list', 'PanicButtonController@list');
// rate-sallary
$router->post('/rate-sallary/add', 'RateSallaryController@add');
$router->post('/rate-sallary/add', 'RateSallaryController@add');
$router->get('/rate-sallary/edit/{id}', 'RateSallaryController@edit');
$router->get('/rate-sallary/edit/{id}', 'RateSallaryController@edit');
$router->put('/rate-sallary/update/{id}', 'RateSallaryController@update');
$router->put('/rate-sallary/update/{id}', 'RateSallaryController@update');
@ -302,7 +263,6 @@ $router->group(['prefix'=>'api'], function () use ($router) {
$router->delete('/rate-sallary/delete/{id}', 'RateSallaryController@delete');
$router->delete('/rate-sallary/delete/{id}', 'RateSallaryController@delete');
$router->get('/rate-sallary/list', 'RateSallaryController@list');
$router->get('/rate-sallary/list', 'RateSallaryController@list');
// project-participants
$router->post('/project-participants/add', 'ProjectParticipantsController@add');
$router->post('/project-participants/add', 'ProjectParticipantsController@add');
$router->get('/project-participants/edit/{id}', 'ProjectParticipantsController@edit');
$router->get('/project-participants/edit/{id}', 'ProjectParticipantsController@edit');
$router->put('/project-participants/update/{id}', 'ProjectParticipantsController@update');
$router->put('/project-participants/update/{id}', 'ProjectParticipantsController@update');
@ -312,7 +272,6 @@ $router->group(['prefix'=>'api'], function () use ($router) {
$router->get('/project-participants/list', 'ProjectParticipantsController@list');
$router->get('/project-participants/list', 'ProjectParticipantsController@list');
$router->get('/project-participants/{where}/{val}', 'ProjectParticipantsController@customWhere');
$router->get('/project-participants/{where}/{val}', 'ProjectParticipantsController@customWhere');
// project-approval
$router->post('/project-approval/add', 'ProjectApprovalController@add');
$router->post('/project-approval/add', 'ProjectApprovalController@add');
$router->get('/project-approval/edit/{id}', 'ProjectApprovalController@edit');
$router->get('/project-approval/edit/{id}', 'ProjectApprovalController@edit');
$router->put('/project-approval/update/{id}', 'ProjectApprovalController@update');
$router->put('/project-approval/update/{id}', 'ProjectApprovalController@update');
@ -322,7 +281,6 @@ $router->group(['prefix'=>'api'], function () use ($router) {
$router->get('/project-approval/list', 'ProjectApprovalController@list');
$router->get('/project-approval/list', 'ProjectApprovalController@list');
$router->get('/project-approval/{where}/{val}', 'ProjectApprovalController@customWhere');
$router->get('/project-approval/{where}/{val}', 'ProjectApprovalController@customWhere');
// project-milestone
$router->post('/project-milestone/add', 'ProjectMileStoneController@add');
$router->post('/project-milestone/add', 'ProjectMileStoneController@add');
$router->get('/project-milestone/edit/{id}', 'ProjectMileStoneController@edit');
$router->get('/project-milestone/edit/{id}', 'ProjectMileStoneController@edit');
$router->put('/project-milestone/update/{id}', 'ProjectMileStoneController@update');
$router->put('/project-milestone/update/{id}', 'ProjectMileStoneController@update');
@ -333,14 +291,12 @@ $router->group(['prefix'=>'api'], function () use ($router) {
$router->get('/project-milestone/select', 'ProjectMileStoneController@select');
$router->get('/project-milestone/select', 'ProjectMileStoneController@select');
$router->get('/project-milestone/{where}/{val}', 'ProjectMileStoneController@customWhere');
$router->get('/project-milestone/{where}/{val}', 'ProjectMileStoneController@customWhere');
// dashboard
$router->post('/dashboard/cost-planning-actual', 'DashboardController@costPlanningActual');
$router->post('/dashboard/cost-planning-actual', 'DashboardController@costPlanningActual');
$router->post('/dashboard/percentage-planning-actual', 'DashboardController@percentagePlanningActual');
$router->post('/dashboard/percentage-planning-actual', 'DashboardController@percentagePlanningActual');
$router->post('/dashboard/search-user-presence', 'DashboardController@searchUserPresencePoints');
$router->post('/dashboard/search-user-presence', 'DashboardController@searchUserPresencePoints');
$router->post('/dashboard/status-proyek', 'DashboardController@statusProyek');
$router->post('/dashboard/status-proyek', 'DashboardController@statusProyek');
$router->post('/dashboard/curva-s', 'DashboardController@curvaS');
$router->post('/dashboard/curva-s', 'DashboardController@curvaS');
// report-activity
$router->post('/report-activity/add', 'ReportActivityController@add');
$router->post('/report-activity/add', 'ReportActivityController@add');
$router->get('/report-activity/edit/{id}', 'ReportActivityController@edit');
$router->get('/report-activity/edit/{id}', 'ReportActivityController@edit');
$router->put('/report-activity/update/{id}', 'ReportActivityController@update');
$router->put('/report-activity/update/{id}', 'ReportActivityController@update');
@ -350,20 +306,15 @@ $router->group(['prefix'=>'api'], function () use ($router) {
$router->post('/report-activity/search-point', 'ReportActivityController@searchPoint');
$router->post('/report-activity/search-point', 'ReportActivityController@searchPoint');
$router->get('/report-activity/datatables', 'ReportActivityController@datatables');
$router->get('/report-activity/datatables', 'ReportActivityController@datatables');
// report-activity-material
$router->post('/report-activity-material/add', 'ReportActivityMaterialController@add');
$router->post('/report-activity-material/add', 'ReportActivityMaterialController@add');
// $router->get('/report-activity-material/edit/{id}', 'ReportActivityMaterialController@edit');
// $router->put('/report-activity-material/update/{id}', 'ReportActivityMaterialController@update');
$router->post('/report-activity-material/search', 'ReportActivityMaterialController@search');
$router->post('/report-activity-material/search', 'ReportActivityMaterialController@search');
$router->delete('/report-activity-material/delete/{id}', 'ReportActivityMaterialController@delete');
$router->delete('/report-activity-material/delete/{id}', 'ReportActivityMaterialController@delete');
$router->get('/report-activity-material/list', 'ReportActivityMaterialController@list');
$router->get('/report-activity-material/list', 'ReportActivityMaterialController@list');
// $router->post('/report-activity-material/search-point', 'ReportActivityMaterialController@searchPoint');
$router->get('/report-activity-material/datatables', 'ReportActivityMaterialController@datatables');
$router->get('/report-activity-material/datatables', 'ReportActivityMaterialController@datatables');
$router->post('/report-activity-material/update-status', 'ReportActivityMaterialController@updateStatusStartFinish');
$router->post('/report-activity-material/update-status', 'ReportActivityMaterialController@updateStatusStartFinish');
$router->get('/report-activity-material/test', 'ReportActivityMaterialController@countForProgressTest');
$router->get('/report-activity-material/test', 'ReportActivityMaterialController@countForProgressTest');
// waypoint
$router->post('/waypoint/add', 'WaypointController@add');
$router->post('/waypoint/add', 'WaypointController@add');
$router->get('/waypoint/edit/{id}', 'WaypointController@edit');
$router->get('/waypoint/edit/{id}', 'WaypointController@edit');
$router->put('/waypoint/update/{id}', 'WaypointController@update');
$router->put('/waypoint/update/{id}', 'WaypointController@update');
@ -371,7 +322,6 @@ $router->group(['prefix'=>'api'], function () use ($router) {
$router->delete('/waypoint/delete/{id}', 'WaypointController@delete');
$router->delete('/waypoint/delete/{id}', 'WaypointController@delete');
$router->get('/waypoint/list', 'WaypointController@list');
$router->get('/waypoint/list', 'WaypointController@list');
// holiday
$router->post('/holiday/add', 'HolidayController@add');
$router->post('/holiday/add', 'HolidayController@add');
$router->get('/holiday/edit/{id}', 'HolidayController@edit');
$router->get('/holiday/edit/{id}', 'HolidayController@edit');
$router->put('/holiday/update/{id}', 'HolidayController@update');
$router->put('/holiday/update/{id}', 'HolidayController@update');
@ -380,7 +330,6 @@ $router->group(['prefix'=>'api'], function () use ($router) {
$router->get('/holiday/list', 'HolidayController@list');
$router->get('/holiday/list', 'HolidayController@list');
$router->get('/holiday/datatables', 'HolidayController@datatables');
$router->get('/holiday/datatables', 'HolidayController@datatables');
// satuan
$router->post('/satuan/add', 'SatuanController@add');
$router->post('/satuan/add', 'SatuanController@add');
$router->get('/satuan/edit/{id}', 'SatuanController@edit');
$router->get('/satuan/edit/{id}', 'SatuanController@edit');
$router->put('/satuan/update/{id}', 'SatuanController@update');
$router->put('/satuan/update/{id}', 'SatuanController@update');
@ -388,7 +337,6 @@ $router->group(['prefix'=>'api'], function () use ($router) {
$router->delete('/satuan/delete/{id}', 'SatuanController@delete');
$router->delete('/satuan/delete/{id}', 'SatuanController@delete');
$router->get('/satuan/list', 'SatuanController@list');
$router->get('/satuan/list', 'SatuanController@list');
// checklist k3
$router->post('/checklist-k3/add', 'ChecklistK3Controller@add');
$router->post('/checklist-k3/add', 'ChecklistK3Controller@add');
$router->get('/checklist-k3/edit/{id}', 'ChecklistK3Controller@edit');
$router->get('/checklist-k3/edit/{id}', 'ChecklistK3Controller@edit');
$router->put('/checklist-k3/update/{id}', 'ChecklistK3Controller@update');
$router->put('/checklist-k3/update/{id}', 'ChecklistK3Controller@update');
@ -396,7 +344,6 @@ $router->group(['prefix'=>'api'], function () use ($router) {
$router->delete('/checklist-k3/delete/{id}', 'ChecklistK3Controller@delete');
$router->delete('/checklist-k3/delete/{id}', 'ChecklistK3Controller@delete');
$router->get('/checklist-k3/list', 'ChecklistK3Controller@list');
$router->get('/checklist-k3/list', 'ChecklistK3Controller@list');
// report k3
$router->post('/report-k3/add', 'ReportK3Controller@add');
$router->post('/report-k3/add', 'ReportK3Controller@add');
$router->get('/report-k3/edit/{id}', 'ReportK3Controller@edit');
$router->get('/report-k3/edit/{id}', 'ReportK3Controller@edit');
$router->put('/report-k3/update/{id}', 'ReportK3Controller@update');
$router->put('/report-k3/update/{id}', 'ReportK3Controller@update');
@ -404,7 +351,6 @@ $router->group(['prefix'=>'api'], function () use ($router) {
$router->delete('/report-k3/delete/{id}', 'ReportK3Controller@delete');
$router->delete('/report-k3/delete/{id}', 'ReportK3Controller@delete');
$router->get('/report-k3/list', 'ReportK3Controller@list');
$router->get('/report-k3/list', 'ReportK3Controller@list');
// report k3 detail
$router->post('/report-k3-detail/add', 'ReportK3DetailController@add');
$router->post('/report-k3-detail/add', 'ReportK3DetailController@add');
$router->get('/report-k3-detail/edit/{id}', 'ReportK3DetailController@edit');
$router->get('/report-k3-detail/edit/{id}', 'ReportK3DetailController@edit');
$router->put('/report-k3-detail/update/{id}', 'ReportK3DetailController@update');
$router->put('/report-k3-detail/update/{id}', 'ReportK3DetailController@update');
@ -412,7 +358,6 @@ $router->group(['prefix'=>'api'], function () use ($router) {
$router->delete('/report-k3-detail/delete/{id}', 'ReportK3DetailController@delete');
$router->delete('/report-k3-detail/delete/{id}', 'ReportK3DetailController@delete');
$router->get('/report-k3-detail/list', 'ReportK3DetailController@list');
$router->get('/report-k3-detail/list', 'ReportK3DetailController@list');
// user to proyek
$router->post('/user-to-proyek/add', 'UserToProyekController@add');
$router->post('/user-to-proyek/add', 'UserToProyekController@add');
$router->get('/user-to-proyek/edit/{id}', 'UserToProyekController@edit');
$router->get('/user-to-proyek/edit/{id}', 'UserToProyekController@edit');
$router->put('/user-to-proyek/update/{id}', 'UserToProyekController@update');
$router->put('/user-to-proyek/update/{id}', 'UserToProyekController@update');
@ -421,7 +366,6 @@ $router->group(['prefix'=>'api'], function () use ($router) {
$router->get('/user-to-proyek/list', 'UserToProyekController@list');
$router->get('/user-to-proyek/list', 'UserToProyekController@list');
$router->get('/user-to-proyek/select', 'UserToProyekController@select');
$router->get('/user-to-proyek/select', 'UserToProyekController@select');
// flder document proyek
$router->post('/folder-document-proyek/add', 'FolderDocumentProyekController@add');
$router->post('/folder-document-proyek/add', 'FolderDocumentProyekController@add');
$router->get('/folder-document-proyek/edit/{id}', 'FolderDocumentProyekController@edit');
$router->get('/folder-document-proyek/edit/{id}', 'FolderDocumentProyekController@edit');
$router->put('/folder-document-proyek/update/{id}', 'FolderDocumentProyekController@update');
$router->put('/folder-document-proyek/update/{id}', 'FolderDocumentProyekController@update');
@ -430,7 +374,6 @@ $router->group(['prefix'=>'api'], function () use ($router) {
$router->get('/folder-document-proyek/list', 'FolderDocumentProyekController@list');
$router->get('/folder-document-proyek/list', 'FolderDocumentProyekController@list');
$router->get('/folder-document-proyek/get-tree/{id}', 'FolderDocumentProyekController@getTree');
$router->get('/folder-document-proyek/get-tree/{id}', 'FolderDocumentProyekController@getTree');
// office-hours
$router->post('/office-hours/add', 'OfficeHoursController@add');
$router->post('/office-hours/add', 'OfficeHoursController@add');
$router->get('/office-hours/edit/{id}', 'OfficeHoursController@edit');
$router->get('/office-hours/edit/{id}', 'OfficeHoursController@edit');
$router->put('/office-hours/update/{id}', 'OfficeHoursController@update');
$router->put('/office-hours/update/{id}', 'OfficeHoursController@update');
@ -438,13 +381,11 @@ $router->group(['prefix'=>'api'], function () use ($router) {
$router->delete('/office-hours/delete/{id}', 'OfficeHoursController@delete');
$router->delete('/office-hours/delete/{id}', 'OfficeHoursController@delete');
$router->get('/office-hours/list', 'OfficeHoursController@list');
$router->get('/office-hours/list', 'OfficeHoursController@list');
// gantt-show-hide
$router->get('/gantt-show-hide/get-by-gantt/{gantt_id}', 'ShowHideColumnController@getByUserGantt');
$router->get('/gantt-show-hide/get-by-gantt/{gantt_id}', 'ShowHideColumnController@getByUserGantt');
$router->post('/gantt-show-hide/add', 'ShowHideColumnController@add');
$router->post('/gantt-show-hide/add', 'ShowHideColumnController@add');
$router->post('/gantt-show-hide/update/{gantt_id}', 'ShowHideColumnController@update');
$router->post('/gantt-show-hide/update/{gantt_id}', 'ShowHideColumnController@update');
// master shift
$router->post('/shift/add', 'ShiftController@add');
$router->post('/shift/add', 'ShiftController@add');
$router->get('/shift/edit/{id}', 'ShiftController@edit');
$router->get('/shift/edit/{id}', 'ShiftController@edit');
$router->put('/shift/update/{id}', 'ShiftController@update');
$router->put('/shift/update/{id}', 'ShiftController@update');
@ -452,7 +393,6 @@ $router->group(['prefix'=>'api'], function () use ($router) {
$router->delete('/shift/delete/{id}', 'ShiftController@delete');
$router->delete('/shift/delete/{id}', 'ShiftController@delete');
$router->get('/shift/list', 'ShiftController@list');
$router->get('/shift/list', 'ShiftController@list');
// monthly shift
$router->post('/user-monthly-shift/add', 'UserMonthlyShiftController@add');
$router->post('/user-monthly-shift/add', 'UserMonthlyShiftController@add');
$router->put('/user-monthly-shift/update/{id}', 'UserMonthlyShiftController@update');
$router->put('/user-monthly-shift/update/{id}', 'UserMonthlyShiftController@update');
$router->post('/user-monthly-shift/search', 'UserMonthlyShiftController@search');
$router->post('/user-monthly-shift/search', 'UserMonthlyShiftController@search');
@ -462,7 +402,6 @@ $router->group(['prefix'=>'api'], function () use ($router) {
$router->post('/user-monthly-shift/import', 'UserMonthlyShiftController@import');
$router->post('/user-monthly-shift/import', 'UserMonthlyShiftController@import');
$router->get('/user-monthly-shift/list/{yyyymm}', 'UserMonthlyShiftController@listYYYYMM');
$router->get('/user-monthly-shift/list/{yyyymm}', 'UserMonthlyShiftController@listYYYYMM');
// Shift assignment
$router->post('/user-to-shift/add', 'UserToShiftController@add');
$router->post('/user-to-shift/add', 'UserToShiftController@add');
$router->get('/user-to-shift/edit/{id}', 'UserToShiftController@edit');
$router->get('/user-to-shift/edit/{id}', 'UserToShiftController@edit');
$router->put('/user-to-shift/update/{id}', 'UserToShiftController@update');
$router->put('/user-to-shift/update/{id}', 'UserToShiftController@update');
@ -470,12 +409,9 @@ $router->group(['prefix'=>'api'], function () use ($router) {
$router->delete('/user-to-shift/delete/{id}', 'UserToShiftController@delete');
$router->delete('/user-to-shift/delete/{id}', 'UserToShiftController@delete');
$router->get('/user-to-shift/list', 'UserToShiftController@list');
$router->get('/user-to-shift/list', 'UserToShiftController@list');
// control monitoring
$router->post('/control-monitoring/search', 'ControlMonitoringController@search');
$router->post('/control-monitoring/search', 'ControlMonitoringController@search');
// currency
$router->get('/currency/list', 'CurrencyController@list');
$router->get('/currency/list', 'CurrencyController@list');
// project to checklist k3
$router->post('/project-to-checklist-k3/add', 'ProjectToChecklistK3Controller@add');
$router->post('/project-to-checklist-k3/add', 'ProjectToChecklistK3Controller@add');
$router->post('/project-to-checklist-k3/add-multiple', 'ProjectToChecklistK3Controller@addMultiple');
$router->post('/project-to-checklist-k3/add-multiple', 'ProjectToChecklistK3Controller@addMultiple');
$router->get('/project-to-checklist-k3/edit/{id}', 'ProjectToChecklistK3Controller@edit');
$router->get('/project-to-checklist-k3/edit/{id}', 'ProjectToChecklistK3Controller@edit');