Dashboard sipadu mbip
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. <?php
  2. use Illuminate\Http\Request;
  3. /*
  4. |--------------------------------------------------------------------------
  5. | API Routes
  6. |--------------------------------------------------------------------------
  7. |
  8. | Here is where you can register API routes for your application. These
  9. | routes are loaded by the RouteServiceProvider within a group which
  10. | is assigned the "api" middleware group. Enjoy building your API!
  11. |
  12. */
  13. Route::group(['middleware' => 'mobileapps'], function() {
  14. /*-------------------------------------------------------------------------
  15. | Staff Login/Logout/Detail
  16. |-------------------------------------------------------------------------*/
  17. Route::post('/mobile/staff/login', 'Api\LoginController@requestStaffLogin');
  18. Route::post('/mobile/staff/logout', 'Api\LoginController@requestStaffLogout');
  19. Route::post('/mobile/check/device/token', 'Api\LoginController@checkDeviceToken' );
  20. Route::post('/mobile/staff/department/list', 'Api\DepartmentController@requestStaffDepartment');
  21. Route::post('/mobile/staff/deedlaw/list', 'Api\DepartmentController@requestStaffDeedLaw');
  22. Route::post('/mobile/staff/faulty/list', 'Api\DepartmentController@requestStaffFaulty');
  23. Route::post('/mobile/staff/update/coordinates', 'Api\TrackMapController@save_updateLocation');
  24. Route::post('/mobile/staff/compound/today/list', 'Api\CompoundController@viewCompoundToday');
  25. Route::post('/mobile/staff/notice/today/list', 'Api\CompoundController@viewNoticeToday');
  26. Route::post('/mobile/store/compound', 'Api\CompoundResourceController@store');
  27. Route::post('/mobile/store/notice', 'Api\CompoundResourceController@storeNewNotice');
  28. Route::post('/mobile/store', 'Api\CompoundResourceController@storeNewCompound');
  29. Route::post('/mobile/store/compound/picture', 'Api\CompoundController@storeCompoundAttachment');
  30. Route::post('/mobile/store/acceptance/compound', 'Api\CompoundController@storeAcceptanceCompound');
  31. /*-------------------------------------------------------------------------
  32. | Department
  33. |-------------------------------------------------------------------------*/
  34. Route::get('/department/list', 'Api\DepartmentController@departmentList');
  35. Route::post('/department/detail', 'Api\DepartmentController@departmentDetail');
  36. Route::post('/delete/department', 'Api\DepartmentController@deleteDepartment');
  37. Route::get('/filter-department-based-faulty/{id}', 'Api\DepartmentController@filterDepartmentBasedFaulty');
  38. /*-------------------------------------------------------------------------
  39. | Acts & UUK
  40. |-------------------------------------------------------------------------*/
  41. Route::get('/deed-law/list', 'Api\DepartmentController@deedLawList');
  42. Route::get('/officer/{jbkod}/deed-law/list', 'Api\DepartmentController@officerDeedLawList');
  43. Route::post('/deed-law/detail', 'Api\DepartmentController@deedLawDetail');
  44. Route::post('/delete/deed-law', 'Api\DepartmentController@deleteDeedLaw');
  45. Route::get('/get-deedlaw-based-faulty/{id}', 'Api\DepartmentController@getDeedlawBasedFaulty');
  46. /*-------------------------------------------------------------------------
  47. | Faulty
  48. |-------------------------------------------------------------------------*/
  49. Route::get('/faulty/list/{id}', 'Api\DepartmentController@faultyList');
  50. Route::get('/officer/{jbkod}/faulty/list', 'Api\DepartmentController@officerFaultyList');
  51. Route::get('/faulty/{jbkod}/{akkod}/list', 'Api\DepartmentController@faultyListFilter');
  52. Route::post('/faulty/detail', 'Api\DepartmentController@faultyDetail');
  53. Route::post('/delete/faulty', 'Api\DepartmentController@deleteFaulty');
  54. /*-------------------------------------------------------------------------
  55. | Staff
  56. |-------------------------------------------------------------------------*/
  57. Route::get('/staff/list/{roles}', 'Api\StaffController@staffList');
  58. Route::get('/officer/{jbkod}/staff/list/{roles}', 'Api\StaffController@officerStaffList');
  59. Route::get('/staff/{department}/{position}/{module}/list/{roles}', 'Api\StaffController@staffFilterList');
  60. Route::post('/staff/detail', 'Api\StaffController@staffDetail');
  61. Route::post('/delete/staff', 'Api\StaffController@deleteStaff');
  62. /*-------------------------------------------------------------------------
  63. | Application
  64. |-------------------------------------------------------------------------*/
  65. Route::get('/user/app/list', 'Api\ApplicationController@appList');
  66. Route::get('{jbkod}/user/app/list', 'Api\ApplicationController@officerAppList');
  67. /*-------------------------------------------------------------------------
  68. | Compound
  69. |-------------------------------------------------------------------------*/
  70. Route::get('/list/compound', 'Api\CompoundResourceController@index');
  71. Route::post('/update/compound/via-dashboard', 'Api\CompoundResourceController@updateStatusPaymentViaDashboard');
  72. Route::post('/update/notice/via-dashboard', 'Api\CompoundResourceController@updateStatusNoticeViaDashboard');
  73. Route::get('/compound/list/{modul}', 'Api\CompoundController@compoundList');
  74. Route::get('/compound/{jbkod}/{akta}/{sec}/list/{modul}', 'Api\CompoundController@compoundFilterList');
  75. Route::get('/compound/completed/list', 'Api\CompoundController@compoundCompleteLists');
  76. Route::get('/compound/completed/{jbkod}/{akta}/{sec}/list', 'Api\CompoundController@compoundCompleteFilterList');
  77. Route::get('/compound/{no_siri}/memo/list', 'Api\MemoController@memoList');
  78. Route::post('/compound/delete/memo', 'Api\MemoController@deleteMemo');
  79. /*-------------------------------------------------------------------------
  80. | Investigation
  81. |-------------------------------------------------------------------------*/
  82. Route::get('/investigation/{no_siri}/attachment/list', 'Api\InvestigationController@investigationAttachmentList');
  83. Route::post('/investigation/attachment/delete', 'Api\InvestigationController@deleteAttachment');
  84. /*-------------------------------------------------------------------------
  85. | Inventory
  86. |-------------------------------------------------------------------------*/
  87. Route::get('/inventory/{no_siri}/list', 'Api\InventoryController@iventoryList');
  88. Route::post('/inventory/detail', 'Api\InventoryController@getDetail');
  89. Route::post('/inventory/delete', 'Api\InventoryController@deleteItem');
  90. /*-------------------------------------------------------------------------
  91. | Setting
  92. |-------------------------------------------------------------------------*/
  93. Route::get('/setting/memo/list', 'Api\SettingController@memoList');
  94. Route::post('/setting/memo/confirm', 'Api\SettingController@confirmMemo');
  95. Route::post('/setting/delete/memo', 'Api\SettingController@deleteMemo');
  96. Route::get('/setting/template/{_id}/{status}/list', 'Api\SettingController@templateList');
  97. Route::post('/setting/template/confirm', 'Api\SettingController@confirmTemplate');
  98. Route::post('/setting/template/send-email', 'Api\SettingController@sendNotice');
  99. Route::post('/setting/template/delete', 'Api\SettingController@deleteTemplate');
  100. Route::get('/setting/api-key/list', 'Api\SettingController@apiKeyList');
  101. Route::post('/delete-api-key', 'Api\SettingController@deleteApiKey');
  102. Route::get('/setting/api-integration/list', 'Api\SettingController@apiKeyIntegrationList');
  103. /*-------------------------------------------------------------------------
  104. | Tracking Map
  105. |-------------------------------------------------------------------------*/
  106. Route::get('/track/staff/list', 'Api\TrackMapController@getStaffList');
  107. Route::get('/track/coordinates/{id}/list', 'Api\TrackMapController@getNearestLocation');
  108. Route::post('/update/emergency/status', 'Api\TrackMapController@postEmergency');
  109. Route::post('/update/normal/status', 'Api\TrackMapController@returnNormal');
  110. /*-------------------------------------------------------------------------
  111. | Cron Job
  112. |-------------------------------------------------------------------------*/
  113. Route::get('/cron/job/update-compound-price', 'Api\JobController@JobMemo');
  114. Route::get('/cron/job/send-notice-letter', 'Api\JobController@sendLetterNotice');
  115. /*-------------------------------------------------------------------------
  116. | Payment
  117. |-------------------------------------------------------------------------*/
  118. Route::post('/compound/make/payment', 'PaymentController@makeMobilePayment');
  119. Route::post('/payment/compound', 'Api\PaymentController@paymentCompound');
  120. Route::post('/update/payment/compound', 'Api\PaymentController@updatePayment');
  121. Route::get('/report/payment/list', 'Api\PaymentController@reportpaymentList');
  122. /*-------------------------------------------------------------------------
  123. | Notification
  124. |-------------------------------------------------------------------------*/
  125. Route::post('/update/firebase/token', 'NotificationController@saveToken');
  126. Route::post('/push/notification', 'NotificationController@sendNotification');
  127. Route::post('/mobile/notification/list', 'NotificationController@getNotificationMobile');
  128. Route::post('/web/notification/list', 'NotificationController@getNotificationWeb');
  129. Route::post('/delete/notification', 'NotificationController@deleteNotification');
  130. /*-------------------------------------------------------------------------
  131. | Enforcer Task/Job
  132. |-------------------------------------------------------------------------*/
  133. Route::post('/enforcer/compound/list', 'Api\CompoundController@confidentialFileList');
  134. Route::post('/enforcer/inventory/list', 'Api\InventoryController@iventoryListMobile');
  135. Route::post('/enforcer/add/inventory', 'Api\InventoryController@addItemMobile');
  136. Route::post('/enforcer/add/inventory/picture', 'Api\InventoryController@addItemPictureMobile');
  137. Route::post('/enforcer/inventory/scan/barcode', 'Api\InventoryController@getDetailMobile');
  138. Route::post('/enforcer/delete/inventory', 'Api\InventoryController@deleteItemMobile');
  139. /*-------------------------------------------------------------------------
  140. | Statistics
  141. |-------------------------------------------------------------------------*/
  142. Route::get('/report/compound/list/{start}/{end}', 'Api\StatisticController@reportCompoundList');
  143. /*-------------------------------------------------------------------------
  144. | Export / Store Report Data
  145. |-------------------------------------------------------------------------*/
  146. Route::get('/get/onsite/payment/enforcer', 'Api\Export\CaculationOnSiteReport@returnReportOnSite');
  147. Route::get('/get/masukkan_data/{year}/{jbkod}', 'Api\Export\CalculationReportEnforcer@report_enforcer');
  148. Route::get('/get/statistic-compound/enforcer', 'Api\Export\CalculationReportEnforcer@returnReportEnforcer');
  149. Route::get('/get/statistic-faulty', 'Api\Export\CalculationReportFaulty@returnReportFaulty');
  150. Route::get('/get/backlog-compound', 'Api\Export\CalculationReportBacklog@returnBacklogCompound');
  151. Route::get('/get/current-compound', 'Api\Export\CalculateReportCurrentCompound@returnReportCurrentCompound');
  152. Route::get('/run_faulty_db/{year}', 'Api\Export\CalculationReportFaulty@run_statistik');
  153. /*-------------------------------------------------------------------------
  154. | API Integration
  155. |-------------------------------------------------------------------------*/
  156. Route::post('/search/compound', 'Api\RestfulapiController@viewCompoundPersonal');
  157. Route::post('/update/compound/payment', 'Api\RestfulapiController@updatePaymentIntegrasi');
  158. Route::get('/get/compound-for/epbt', 'Api\RestfulapiController@compoundToEPBT');
  159. Route::get('/store/external/summon', 'Api\ImportDataController@storeExternalCompound');
  160. /*--------------------------------------------------------------------------
  161. | AREA, RESIDENCE, ROADS
  162. |---------------------------------------------------------------------------*/
  163. Route::get('/insert/area/res/road', 'Api\DataController@insertArea');
  164. Route::get('/code/bandar', 'Api\EpbtController@getCodeBandar');
  165. Route::post('/code/taman', 'Api\EpbtController@getCodeTaman');
  166. Route::post('/code/jalan', 'Api\EpbtController@getCodeJalan');
  167. /*---------------------------------------------------------------------------
  168. | TEST
  169. |----------------------------------------------------------------------------*/
  170. Route::post('data/testing', 'Api\LoginController@testing');
  171. });