Dashboard sipadu mbip
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

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