routes.php 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373
  1. <?php
  2. Route::get('/', function () {
  3. if(Auth::check())
  4. {
  5. return redirect('/admin/check_user');
  6. }
  7. else{
  8. return redirect('/login');
  9. }
  10. });
  11. Route::get('test', function () {
  12. $node->makeRoot();
  13. $parent = $node->parent()->get();
  14. });
  15. Route::group(['middleware' => 'web'], function () {
  16. Route::auth();
  17. Route::get('/admin/check_user', 'Admin\HomeController@check_user');
  18. Route::get('admin/dashboard', 'Admin\HomeController@index');
  19. Route::post('admin/add_note', 'Admin\NoteController@add_note');
  20. Route::get('admin/change_note_status/{id}', 'Admin\NoteController@change_note_status');
  21. Route::get('admin/remove_note/{id}', 'Admin\NoteController@remove_note');
  22. Route::get('/admin/project_details/{id}', 'Admin\projectController@project_details');
  23. Route::post('admin/assign_project', 'Admin\projectController@assign_project');
  24. Route::get('admin/projects', 'Admin\projectController@index');
  25. Route::post('admin/add_proj', 'Admin\projectController@add_project');
  26. Route::post('admin/add_file', 'Admin\projectController@add_file');
  27. Route::get('admin/remove_proj/{id}', 'Admin\projectController@remove_proj');
  28. Route::get('admin/remove_proj_user/{id}', 'Admin\projectController@remove_proj_user');
  29. Route::get('admin/remove_proj_document/{id}', 'Admin\projectController@remove_proj_document');
  30. Route::post('admin/make_pm', 'Admin\projectController@make_pm');
  31. Route::post('admin/user_list_for_task_assign', 'Admin\TaskController@user_list_for_task_assign');
  32. Route::post('admin/task_assign_to_user', 'Admin\TaskController@task_assign_to_user');
  33. Route::post('admin/remove_assign_task_user', 'Admin\TaskController@remove_assign_task_user');
  34. Route::post('admin/remove_comment', 'Admin\CommentController@remove_comment');
  35. Route::post('admin/edit_comment_form', 'Admin\CommentController@edit_comment_form');
  36. Route::post('admin/save_update_comment', 'Admin\CommentController@save_update_comment');
  37. Route::post('admin/add_task_doc', 'Admin\CommentController@add_task_doc');
  38. Route::post('admin/change_notification', 'Admin\CommentController@change_notification');
  39. Route::post('admin/change_support_notification_status', 'Admin\HomeController@change_support_status');
  40. Route::get('admin/task', 'Admin\TaskController@index');
  41. Route::get('admin/task/deadline_today', 'Admin\TaskController@deadlineToday');
  42. Route::get('admin/task/deadline_missed', 'Admin\TaskController@deadlineMissed');
  43. Route::get('admin/task/completed_today', 'Admin\TaskController@completedToday');
  44. Route::get('admin/task/completed_yesterday', 'Admin\TaskController@completedYesterday');
  45. Route::get('admin/task/pending_task', 'Admin\TaskController@pendingTask');
  46. Route::get('admin/task/in_process', 'Admin\TaskController@inProcess');
  47. Route::post('admin/add_task', 'Admin\TaskController@add_task');
  48. Route::get('admin/remove_task/{id}', 'Admin\TaskController@remove_task');
  49. Route::post('admin/change_tast_by_proj', 'Admin\TaskController@change_tast_by_proj');
  50. Route::post('admin/add_task_comment', 'Admin\TaskController@add_task_comment');
  51. Route::post('admin/change_to_process', 'Admin\TaskController@change_to_process');
  52. Route::post('admin/company_task/{typ}', 'Admin\TaskController@company_task');
  53. Route::get('admin/employee', 'Admin\EmployeeController@index');
  54. Route::get('admin/employee/add', 'Admin\EmployeeController@create');
  55. Route::post('admin/employee/store', 'Admin\EmployeeController@store');
  56. Route::get('admin/employee/show/{id}', 'Admin\EmployeeController@show');
  57. Route::get('admin/employee/edit_employee/{id}', 'Admin\EmployeeController@editEmployee');
  58. Route::post('admin/employee/update/{id}', 'Admin\EmployeeController@update');
  59. Route::get('admin/employee/delete/{id}', 'Admin\EmployeeController@destroy');
  60. Route::get('admin/employee/status/{id}', 'Admin\EmployeeController@statusUpdate');
  61. Route::get('admin/employee/add_user/{id}', 'Admin\EmployeeController@addUser');
  62. Route::post('admin/employee/add_to_user/{id}', 'Admin\EmployeeController@addToUser');
  63. Route::post('admin/employee/change_password', 'Admin\EmployeeController@changePassword');
  64. Route::post('admin/employee/rejoining', 'Admin\EmployeeController@rejoining');
  65. // Education Level
  66. Route::get('admin/education_level', 'Admin\EducationController@index');
  67. Route::get('admin/education_level/add', 'Admin\EducationController@create');
  68. Route::post('admin/education_level/store', 'Admin\EducationController@store');
  69. Route::get('admin/education_level/edit/{id}', 'Admin\EducationController@edit');
  70. Route::post('admin/education_level/update/{id}', 'Admin\EducationController@update');
  71. Route::get('admin/education_level/delete/{id}', 'Admin\EducationController@destroy');
  72. Route::get('admin/education_level/status/{id}', 'Admin\EducationController@statusUpdate');
  73. // Document Type
  74. Route::get('admin/document_type', 'Admin\DocumentTypeController@index');
  75. Route::get('admin/document_type/add', 'Admin\DocumentTypeController@create');
  76. Route::post('admin/document_type/store', 'Admin\DocumentTypeController@store');
  77. Route::get('admin/document_type/edit/{id}', 'Admin\DocumentTypeController@edit');
  78. Route::post('admin/document_type/update/{id}', 'Admin\DocumentTypeController@update');
  79. Route::get('admin/document_type/delete/{id}', 'Admin\DocumentTypeController@destroy');
  80. Route::get('admin/document_type/status/{id}', 'Admin\DocumentTypeController@statusUpdate');
  81. // Grade
  82. Route::get('admin/grade', 'Admin\GradeController@index');
  83. Route::get('admin/grade/add', 'Admin\GradeController@create');
  84. Route::post('admin/grade/store', 'Admin\GradeController@store');
  85. Route::get('admin/grade/edit/{id}', 'Admin\GradeController@edit');
  86. Route::post('admin/grade/update/{id}', 'Admin\GradeController@update');
  87. Route::get('admin/grade/delete/{id}', 'Admin\GradeController@destroy');
  88. Route::get('admin/grade/status/{id}', 'Admin\GradeController@statusUpdate');
  89. // Designation
  90. Route::get('admin/designation', 'Admin\DesignationController@index');
  91. //Route::get('admin/designation/get', 'Admin\DesignationController@getDesignation');
  92. Route::get('admin/designation/add', 'Admin\DesignationController@create');
  93. Route::post('admin/designation/store', 'Admin\DesignationController@store');
  94. Route::get('admin/designation/edit/{id}', 'Admin\DesignationController@edit');
  95. Route::post('admin/designation/update/{id}', 'Admin\DesignationController@update');
  96. Route::get('admin/designation/delete/{id}', 'Admin\DesignationController@destroy');
  97. Route::get('admin/designation/status/{id}', 'Admin\DesignationController@statusUpdate');
  98. // Payroll Head
  99. Route::get('admin/payroll_head', 'Admin\PayrollHeadController@index');
  100. Route::get('admin/payroll_head/add', 'Admin\PayrollHeadController@create');
  101. Route::post('admin/payroll_head/store', 'Admin\PayrollHeadController@store');
  102. Route::get('admin/payroll_head/edit/{id}', 'Admin\PayrollHeadController@edit');
  103. Route::post('admin/payroll_head/update/{id}', 'Admin\PayrollHeadController@update');
  104. Route::get('admin/payroll_head/delete/{id}', 'Admin\PayrollHeadController@destroy');
  105. Route::get('admin/payroll_head/status/{id}', 'Admin\PayrollHeadController@statusUpdate');
  106. // Grade Structure
  107. Route::get('admin/grade_structure', 'Admin\GradeStructureController@index');
  108. Route::get('admin/grade_structure/add', 'Admin\GradeStructureController@create');
  109. Route::post('admin/grade_structure/store', 'Admin\GradeStructureController@store');
  110. Route::get('admin/grade_structure/edit/{id}', 'Admin\GradeStructureController@edit');
  111. Route::post('admin/grade_structure/update', 'Admin\GradeStructureController@update');
  112. Route::get('admin/grade_structure/delete/{id}', 'Admin\GradeStructureController@destroy');
  113. Route::get('admin/grade_structure/status/{id}', 'Admin\GradeStructureController@statusUpdate');
  114. // Payroll Structure
  115. Route::get('admin/payroll_structure', 'Admin\PayrollStructureController@index');
  116. Route::get('admin/payroll_structure/ps_update/{id}', 'Admin\PayrollStructureController@psUpdate');
  117. Route::post('admin/payroll_structure/update/{id}', 'Admin\PayrollStructureController@update');
  118. Route::get('admin/payroll_structure/delete/{id}', 'Admin\PayrollStructureController@destroy');
  119. Route::get('admin/payroll_structure/status/{id}', 'Admin\PayrollStructureController@statusUpdate');
  120. // Payroll
  121. Route::get('admin/payroll', 'Admin\PayrollController@index');
  122. Route::get('admin/payroll/create', 'Admin\PayrollController@create');
  123. Route::post('admin/payroll/bill_create', 'Admin\PayrollController@billCreate');
  124. Route::get('admin/payroll/pr_update/{id}', 'Admin\PayrollController@prUpdate');
  125. Route::post('admin/payroll/update/{id}', 'Admin\PayrollController@update');
  126. Route::get('admin/payroll/details/{id}', 'Admin\PayrollController@details');
  127. Route::get('admin/payroll/receipt/{id}/{pay_id}', 'Admin\PayrollController@receipt');
  128. // Notice Board
  129. Route::get('admin/notice_board', 'Admin\NoticeBoardController@index');
  130. Route::get('admin/notice_board/add', 'Admin\NoticeBoardController@create');
  131. Route::post('admin/notice_board/store', 'Admin\NoticeBoardController@store');
  132. Route::get('admin/notice_board/details/{id}', 'Admin\NoticeBoardController@show');
  133. Route::get('admin/notice_board/my_notice', 'Admin\NoticeBoardController@myNotice');
  134. Route::get('admin/notice_board/edit/{id}', 'Admin\NoticeBoardController@edit');
  135. Route::get('admin/notice_board/delete/{id}', 'Admin\NoticeBoardController@destroy');
  136. Route::get('admin/users', 'Admin\UsersController@index');
  137. Route::post('admin/add_user', 'Admin\UsersController@add_user');
  138. Route::get('admin/user_active/{id}', 'Admin\UsersController@user_active');
  139. Route::post('admin/change_user_pass', 'Admin\UsersController@change_user_pass');
  140. Route::get('admin/usergroup', 'Admin\UserGroupController@index');
  141. Route::post('admin/add_group_user', 'Admin\UserGroupController@add_group_user');
  142. Route::get('admin/remove_group_user/{id}', 'Admin\UserGroupController@remove_group_user');
  143. // Companies
  144. Route::resource('admin/companies','Admin\CompanyController');
  145. Route::post('admin/update_company', 'Admin\CompanyController@update_company');
  146. Route::get('admin/view_company/{id}', 'Admin\CompanyController@view_company');
  147. Route::post('admin/save_remarks', 'Admin\CompanyController@save_remarks');
  148. Route::post('admin/remove_remarks', 'Admin\CompanyController@remove_remarks');
  149. Route::post('admin/save_activity', 'Admin\CompanyController@save_activity');
  150. Route::post('admin/remove_activity', 'Admin\CompanyController@remove_activity');
  151. Route::post('admin/send_email_to_company', 'Admin\CompanyController@send_email_to_company');
  152. Route::post('admin/change_status','Admin\CompanyController@change_status')->name('change_company_status');
  153. Route::get('admin/company/edit_company/{id}','Admin\CompanyController@edit_company_info')->name('edit_company');
  154. Route::post('admin/company/change_company_info','Admin\CompanyController@change_company_info')->name('change_company_info');
  155. Route::get('admin/updateDrag/{id}/{levelchange}', 'Admin\projectController@updateDrag');
  156. Route::get('admin/change_task_status/{id}', 'Admin\projectController@change_task_status');
  157. Route::resource('admin/address_book','Admin\AddressBookController');
  158. Route::post('admin/update_address_book', 'Admin\AddressBookController@update_address_book');
  159. Route::resource('admin/file_upload','Admin\FileUploadController');
  160. //REPORT
  161. Route::get('admin/completed_task_by_user', 'Admin\ReportTaskController@completed_task_by_user');
  162. Route::post('admin/search_completed_task_by_user', 'Admin\ReportTaskController@search_completed_task_by_user');
  163. Route::get('admin/work_flow', 'Admin\ReportTaskController@work_flow');
  164. //SERVICE
  165. Route::post('admin/company/service/assign','Admin\CompanyController@assign_service');
  166. Route::get('admin/company/service/details/{id}','Admin\CompanyController@get_service');
  167. Route::get('admin/company/service/upload/{id}','Admin\CompanyController@file_upload_view');
  168. Route::post('admin/company/service/upload','Admin\CompanyController@save_upload');
  169. Route::get('admin/user_profile/{id}', 'Admin\HomeController@user_profile');
  170. Route::get('admin/user_attendace', 'Admin\HomeController@user_attendace');
  171. Route::post('admin/attendace_sheet_entry', 'Admin\HomeController@attendace_sheet_entry');
  172. Route::get('admin/attendace_report', 'Admin\HomeController@attendace_report');
  173. Route::post('admin/report_content', 'Admin\HomeController@get_report_by_user');
  174. Route::get('admin/load_content', 'Admin\HomeController@load_content');
  175. Route::get('admin/vocabulary', 'Admin\VocabularyController@index');
  176. Route::get('admin/vocabulary_edit/{id}', 'Admin\VocabularyController@edit');
  177. Route::post('admin/vocabulary_edit', 'Admin\VocabularyController@update');
  178. Route::get('admin/leave_requests', 'Admin\HomeController@leave_report');
  179. Route::get('admin/leave_requests/details/{id}', 'Admin\HomeController@leave_details');
  180. Route::post('admin/leave_req_approved/{id}', 'Admin\HomeController@leave_accept');
  181. Route::get('admin/leave_requests/apply', 'Admin\HomeController@apply');
  182. Route::post('admin/leave_requests/store', 'Admin\HomeController@store');
  183. Route::get('admin/leave_req_discard/{id}', 'Admin\HomeController@leave_discard');
  184. Route::get('admin/leave_requests/delete/{id}', 'Admin\HomeController@destroy');
  185. Route::get('admin/company/add_user/{id}','Admin\CompanyController@company_user');
  186. Route::post('admin/company/add_manager',['as'=>'add_manager','uses'=>'Admin\CompanyController@company_manager']);
  187. // Roles & Permissions
  188. Route::get('admin/roles', 'Admin\RoleController@index');
  189. Route::post('admin/roles/store', 'Admin\RoleController@store');
  190. Route::get('admin/roles/edit/{id}', 'Admin\RoleController@edit');
  191. Route::post('admin/roles/update/{id}', 'Admin\RoleController@update');
  192. Route::get('admin/roles/delete/{id}', 'Admin\RoleController@destroy');
  193. Route::get('admin/permissions', 'Admin\PermissionController@index');
  194. Route::post('admin/permissions/store', 'Admin\PermissionController@store');
  195. Route::get('admin/permissions/edit/{id}', 'Admin\PermissionController@edit');
  196. Route::post('admin/permissions/update/{id}', 'Admin\PermissionController@update');
  197. Route::get('admin/permissions/delete/{id}', 'Admin\PermissionController@destroy');
  198. // End Roles & Permissions
  199. });
  200. Route::group(['middleware' => 'web'], function (){
  201. Route::auth();
  202. Route::get('user/user_profile', 'User\UserController@index');
  203. Route::get('user/user_group', 'User\UserController@group');
  204. Route::post('user/update_profile', 'User\UserController@update_profile');
  205. Route::post('user/add_note', 'User\UserController@add_note');
  206. Route::get('user/change_note_status/{id}', 'User\UserController@change_note_status');
  207. Route::get('user/remove_note/{id}', 'User\UserController@remove_note');
  208. Route::get('user/user_projects', 'User\UProjectController@index');
  209. Route::get('user/uproject_details/{id}', 'User\UProjectController@uproject_details');
  210. Route::get('user/uproj_inprocess_pending_task/{id}', 'User\UProjectController@uproj_inprocess_pending_task');
  211. Route::post('user/assign_project', 'User\UProjectController@assign_project');
  212. Route::get('user/remove_proj_user/{id}', 'User\UProjectController@remove_proj_user');
  213. Route::get('user/remove_proj_document/{id}', 'User\UProjectController@remove_proj_document');
  214. Route::post('user/add_file', 'User\UProjectController@add_file');
  215. Route::post('user/add_task', 'User\UTaskController@add_task');
  216. Route::get('user/remove_task/{id}', 'User\UTaskController@remove_task');
  217. Route::post('user/task_assign_to_user', 'User\UTaskController@task_assign_to_user');
  218. Route::post('user/task_details', 'User\UTaskController@task_details');
  219. Route::post('user/add_task_comment', 'User\UTaskController@add_task_comment');
  220. Route::post('user/remove_assign_task_user', 'User\UTaskController@remove_assign_task_user');
  221. Route::post('user/user_list_for_task_assign', 'User\UTaskController@user_list_for_task_assign');
  222. Route::post('user/change_tast_by_proj', 'User\UTaskController@change_tast_by_proj');
  223. Route::post('user/change_to_process', 'User\UTaskController@change_to_process');
  224. Route::post('user/change_to_inprocess', 'User\UTaskController@change_to_inprocess');
  225. Route::post('user/remove_comment', 'User\UCommentController@remove_comment');
  226. Route::post('user/edit_comment_form', 'User\UCommentController@edit_comment_form');
  227. Route::post('user/save_update_comment', 'User\UCommentController@save_update_comment');
  228. Route::post('user/add_task_doc', 'User\UCommentController@add_task_doc');
  229. Route::get('user/change_task_status/{id}', 'User\UProjectController@change_task_status');
  230. Route::get('user/attend_entry', 'User\UserController@attend_entry');
  231. Route::post('user/attendace_sheet_entry', 'User\UserController@attendace_sheet_entry');
  232. Route::get('user/leave_apply', 'User\UserController@leave_apply');
  233. Route::post('user/leave_req', 'User\UserController@leave_req');
  234. });
  235. Route::group(['middleware' => 'web'], function (){
  236. Route::get('client/client_projects', 'Client\CProjectController@index');
  237. Route::get('client/client_profile', 'Client\ClientController@index');
  238. Route::get('client/client_dashboard', 'Client\ClientController@client_dashboard');
  239. Route::post('client/add_proj', 'Client\CProjectController@add_project');
  240. Route::get('client/remove_proj/{id}', 'Client\CProjectController@remove_proj');
  241. Route::post('client/add_file', 'Client\CProjectController@add_file');
  242. Route::get('client/cproject_details/{id}', 'Client\CProjectController@project_details');
  243. Route::get('client/remove_proj_document/{id}', 'Client\CProjectController@remove_proj_document');
  244. Route::post('client/add_task', 'Client\CTaskController@add_task');
  245. Route::get('client/remove_task/{id}', 'Client\CTaskController@remove_task');
  246. Route::post('client/user_list_for_task_assign', 'Client\CTaskController@user_list_for_task_assign');
  247. Route::post('client/change_to_process', 'Client\CTaskController@change_to_process');
  248. Route::post('client/add_task_comment', 'Client\CTaskController@add_task_comment');
  249. });
  250. Route::group(['middleware' => 'web','prefix'=>'account','namespace'=>'Admin'], function () {
  251. Route::get('journal','JounalController@index');
  252. Route::get('journal/new','JounalController@create');
  253. Route::post('journal/save','JounalController@store');
  254. Route::get('journal/get_head/{id}','JounalController@get_acc_head');
  255. Route::post('journal/change_approaval_status','JounalController@change_approaval_status');
  256. Route::get('journal/payment/{id}','JounalController@payment');
  257. Route::post('journal/payment/save','JounalController@save_payment');
  258. Route::get('journal/details/{id}','JounalController@get_details');
  259. Route::get('report/expense','AccountReportController@expense_report_view');
  260. Route::post('report/expense','AccountReportController@expense_report');
  261. Route::get('report/revenue','AccountReportController@revenue_report_view');
  262. Route::post('report/revenue','AccountReportController@revenue_report');
  263. Route::get('fund_req','FundRequestController@index');
  264. Route::post('fund_req/save','FundRequestController@store');
  265. Route::post('fund/approval_status','FundRequestController@change_approval_status');
  266. Route::get('revenue','RevenueController@index');
  267. Route::post('revenue/save','RevenueController@store');
  268. });
  269. Route::group(['middleware'=>'web','namespace'=>'Client'],function(){
  270. Route::get('ticket','TicketController@index');
  271. Route::get('ticket/new','TicketController@create');
  272. Route::post('ticket/save','TicketController@store');
  273. Route::get('ticket/show/{id}','TicketController@show');
  274. Route::get('ticket/comments/{tkt_id}','TicketController@get_comments');
  275. Route::post('ticket/comment/save','TicketController@save_comment');
  276. Route::post('ticket/status/change','TicketController@change_status');
  277. });
  278. Route::group(['middleware' => 'web','prefix'=>'invoice','namespace'=>'Admin'], function () {
  279. Route::get('/','InvoiceController@index');
  280. Route::get('show/{id}','InvoiceController@show');
  281. Route::get('new','InvoiceController@create');
  282. Route::post('save','InvoiceController@store');
  283. Route::get('edit/{id}','InvoiceController@edit');
  284. Route::post('update','InvoiceController@update');
  285. Route::get('delete/{id}','InvoiceController@delete');
  286. Route::post('pay','InvoiceController@make_payment');
  287. Route::get('invoice_created_email/{id}','InvoiceController@invoice_created_email');
  288. });
  289. Route::group(['prefix' => 'api','middleware' => 'api'], function () {
  290. Route::get('users','ApiController@get_all_users');
  291. Route::get('projects','ApiController@get_all_projects');
  292. Route::get('tasks','ApiController@get_all_tasks');
  293. Route::get('deadline_missed','ApiController@deadline_missed');
  294. Route::get('no_work_today','ApiController@no_work_today');
  295. Route::post('create_task','ApiController@create_task');
  296. Route::get('change_task_status/{id}','ApiController@change_task_status');
  297. Route::get('fund_purpose','ApiController@fund_purpose');
  298. Route::post('fund_save','ApiController@fund_save');
  299. Route::get('get_entry_time_today','ApiController@get_entry_time_today');
  300. Route::get('get_exit_time_yesterday','ApiController@get_exit_time_yesterday');
  301. Route::get('get_month_attendance_report','ApiController@get_month_attendance_report');
  302. Route::get('get_month_report/{id}','ApiController@get_month_report');
  303. Route::get('get_fund_requests','ApiController@get_fund_requests');
  304. Route::get('change_fund_request_status/{id}/{value}','ApiController@change_fund_request_status');
  305. Route::get('get_pending_tasks','ApiController@get_pending_tasks');
  306. Route::get('get_in_progress_tasks','ApiController@get_in_progress_tasks');
  307. Route::get('get_leave_purposes','ApiController@get_leave_purposes');
  308. Route::get('get_leave_requests','ApiController@get_leave_requests');
  309. Route::post('leave_req','ApiController@leave_req');
  310. Route::post('leave_accept','ApiController@leave_accept');
  311. Route::post('user_login','ApiController@login');
  312. });