You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

web.php 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437
  1. <?php
  2. use Illuminate\Support\Facades\Route;
  3. Route::get('/', function () {
  4. $rekodKPIPelaburan = [
  5. [
  6. 'id' => 1,
  7. 'name' => 'Perbadanan Kemajuan Negeri Pahang (PKNP)',
  8. 'investment_target' => 2000897,
  9. 'investment_target_setting' => 2000897,
  10. ],
  11. [
  12. 'id' => 2,
  13. 'name' => 'Perbadanan Pertanian Negeri Pahang (PKPP)',
  14. 'investment_target' => 2000897,
  15. 'investment_target_setting' => 2000897,
  16. ],
  17. [
  18. 'id' => 3,
  19. 'name' => 'Perbadanan Setiausaha Kerajaan Pahang (PSK)',
  20. 'investment_target' => 2000897,
  21. 'investment_target_setting' => 2000897,
  22. ],
  23. [
  24. 'id' => 4,
  25. 'name' => 'Pahang Corporations Sdn. Bhd',
  26. 'investment_target' => 2000897,
  27. 'investment_target_setting' => 2000897,
  28. ],
  29. [
  30. 'id' => 5,
  31. 'name' => 'East Coast Development Region Council (ECERDC)',
  32. 'investment_target' => 2000897,
  33. 'investment_target_setting' => 2000897,
  34. ],
  35. [
  36. 'id' => 6,
  37. 'name' => 'Yayasan Pahang',
  38. 'investment_target' => 2000897,
  39. 'investment_target_setting' => 2000897,
  40. ],
  41. [
  42. 'id' => 7,
  43. 'name' => 'TGA Solutions',
  44. 'investment_target' => 2000897,
  45. 'investment_target_setting' => 2000897,
  46. ],
  47. [
  48. 'id' => 8,
  49. 'name' => 'UNIPSAS',
  50. 'investment_target' => 2000897,
  51. 'investment_target_setting' => 2000897,
  52. ]
  53. ];
  54. $status = [
  55. [
  56. 'name' => 'Deraf Perjanjian',
  57. 'percent' => "38"
  58. ],
  59. [
  60. 'name' => 'Dalam Tindakan/Rundingan Kertas Kerja',
  61. 'percent' => "18"
  62. ],
  63. [
  64. 'name' => 'Penyediaan Kertas BOD',
  65. 'percent' => "9"
  66. ],
  67. [
  68. 'name' => 'Project Syarikat',
  69. 'percent' => "24"
  70. ],
  71. [
  72. 'name' => 'Penilaian JK Pelaburan',
  73. 'percent' => "21"
  74. ],
  75. [
  76. 'name' => 'Perjanjian Muktamad',
  77. 'percent' => "42"
  78. ]
  79. ];
  80. return view('home', compact('rekodKPIPelaburan', 'status'));
  81. });
  82. Route::get('/agency', function () {
  83. $agencys = [
  84. [
  85. "id" => 1,
  86. "name" => "Perbadanan Kemajuan Negeri Pahang (PKNP)",
  87. "active_count" => 23,
  88. "status" => 2,
  89. ],
  90. [
  91. "id" => 2,
  92. "name" => "Perbadanan Pertanian Negeri Pahang (PKPP)",
  93. "active_count" => 45,
  94. "status" => 1,
  95. ],
  96. [
  97. "id" => 3,
  98. "name" => "Perbadanan Setiausaha Kerajaan Pahang (PSK)",
  99. "active_count" => 21,
  100. "status" => 3,
  101. ],
  102. [
  103. "id" => 4,
  104. "name" => "Pahang Corporations Sdn. Bhd",
  105. "active_count" => 77,
  106. "status" => 2,
  107. ],
  108. [
  109. "id" => 5,
  110. "name" => "Perbadanan Kemajuan Cameron Highlands (PKCH)",
  111. "active_count" => 53,
  112. "status" => 1,
  113. ],
  114. [
  115. "id" => 6,
  116. "name" => "Pahang Mining Corporations Sdn. Bhd",
  117. "active_count" => 56,
  118. "status" => 3,
  119. ],
  120. [
  121. "id" => 7,
  122. "name" => "East Coast Development Region Council (ECERDC)",
  123. "active_count" => 32,
  124. "status" => 2,
  125. ],
  126. [
  127. "id" => 8,
  128. "name" => "Yayasan Pahang",
  129. "active_count" => 234,
  130. "status" => 1,
  131. ],
  132. [
  133. "id" => 9,
  134. "name" => "TGA Solutions",
  135. "active_count" => 90,
  136. "status" => 3,
  137. ],
  138. [
  139. "id" => 10,
  140. "name" => "UNIPSAS",
  141. "active_count" => 32,
  142. "status" => 2,
  143. ]
  144. ];
  145. return view('agency', compact('agencys'));
  146. });
  147. Route::get('/project', function () {
  148. $commitedFDIProject = [
  149. [
  150. "id" => 1,
  151. "company_name" => "Fire Phoenix International",
  152. "type" => "Data Center",
  153. "status" => 1,
  154. "note" => "Dalam Proses Submit",
  155. "moa_date" => "22-02-2025",
  156. "area" => "Gambang",
  157. "invesment_approx" => 100000000,
  158. "labour_approx" => 50,
  159. "land_area" => 4757
  160. ],
  161. [
  162. "id" => 2,
  163. "company_name" => "Lestari Angkasa Sdn Bhd",
  164. "type" => "International Space Port",
  165. "status" => 0,
  166. "note" => "Loi Ditandatangani pada 14-03-2025",
  167. "moa_date" => "22-02-2025",
  168. "area" => "Pekan",
  169. "invesment_approx" => 100000000,
  170. "labour_approx" => 50,
  171. "land_area" => null
  172. ]
  173. ];
  174. $commitedDDIProject = [
  175. [
  176. "id" => 1,
  177. "company_name" => "Kicap Bentong Sdn. Bhd (Jualan)",
  178. "type" => "Kilang Memproses Kicap (Pembesaran)",
  179. "status" => 0,
  180. "note" => "Dalam Proses Submit",
  181. "moa_date" => "",
  182. "area" => "Kawasan Perindustrian Bentong",
  183. "invesment_approx" => 100000000,
  184. "labour_approx" => 50,
  185. "land_area" => 2
  186. ],
  187. [
  188. "id" => 2,
  189. "company_name" => "Advanced Achieve Property Management Sdn. Bhd",
  190. "type" => "International Space Port",
  191. "status" => 1,
  192. "note" => "Dalam Proses Pindahan",
  193. "moa_date" => "",
  194. "area" => "KP Gebeng 1",
  195. "invesment_approx" => 100000000,
  196. "labour_approx" => 50,
  197. "land_area" => 1.74
  198. ],
  199. [
  200. "id" => 3,
  201. "company_name" => "BH Setia Sdn Bhd (Jualan IKS)",
  202. "type" => "Data Center",
  203. "status" => 1,
  204. "note" => "Proses Dalam Pindahan",
  205. "moa_date" => "22-02-2025",
  206. "area" => "KP Gebeng 2",
  207. "invesment_approx" => 100000000,
  208. "labour_approx" => 50,
  209. "land_area" => 2.046
  210. ],
  211. [
  212. "id" => 4,
  213. "company_name" => "Gading Senggara Property (Pajakan)",
  214. "type" => "International Space Port",
  215. "status" => 0,
  216. "note" => "Dalam Proses Memuktamadkan Perjanjian",
  217. "moa_date" => "",
  218. "area" => "KP Gebeng 3",
  219. "invesment_approx" => 100000000,
  220. "labour_approx" => 50,
  221. "land_area" => 152
  222. ]
  223. ];
  224. return view('project', compact('commitedFDIProject', 'commitedDDIProject'));
  225. });
  226. Route::get('/agency_performance', function () {
  227. $agencys = [
  228. [
  229. "id" => 1,
  230. "name" => "Perbadanan Kemajuan Negeri Pahang (PKNP)",
  231. "company_name" => "Fire Phoenix International",
  232. "percent" => 45,
  233. ],
  234. [
  235. "id" => 2,
  236. "name" => "Perbadanan Pertanian Negeri Pahang (PKPP)",
  237. "company_name" => "Lestari Angkasa Sdn. Bhd.",
  238. "percent" => 100,
  239. ],
  240. [
  241. "id" => 3,
  242. "name" => "Perbadanan Setiausaha Kerajaan Pahang (PSK)",
  243. "company_name" => "Fire Phoenix International",
  244. "percent" => 15,
  245. ],
  246. [
  247. "id" => 4,
  248. "name" => "Pahang Corporations Sdn. Bhd",
  249. "company_name" => "Lestari Angkasa Sdn. Bhd.",
  250. "percent" => 45,
  251. ],
  252. [
  253. "id" => 5,
  254. "name" => "Perbadanan Kemajuan Cameron Highlands (PKCH)",
  255. "company_name" => "Fire Phoenix International",
  256. "percent" => 80,
  257. ],
  258. [
  259. "id" => 6,
  260. "name" => "Pahang Mining Corporations Sdn. Bhd",
  261. "company_name" => "Lestari Angkasa Sdn. Bhd.",
  262. "percent" => 15,
  263. ],
  264. [
  265. "id" => 7,
  266. "name" => "East Coast Development Region Council (ECERDC)",
  267. "company_name" => "Fire Phoenix International",
  268. "percent" => 45,
  269. ],
  270. [
  271. "id" => 8,
  272. "name" => "Yayasan Pahang",
  273. "company_name" => "Lestari Angkasa Sdn. Bhd.",
  274. "percent" => 66,
  275. ],
  276. [
  277. "id" => 9,
  278. "name" => "TGA Solutions",
  279. "company_name" => "Fire Phoenix International",
  280. "percent" => 15,
  281. ],
  282. [
  283. "id" => 10,
  284. "name" => "UNIPSAS",
  285. "company_name" => "Lestari Angkasa Sdn. Bhd.",
  286. "percent" => 45,
  287. ]
  288. ];
  289. return view('agency_performance', compact('agencys'));
  290. });
  291. /* For demo purpose only - please delete this when building the actual app */
  292. // To demo comited and potential project
  293. Route::prefix('api')->group(function () {
  294. Route::get('project/{type}', function ($type) {
  295. $comittedFDIProject = [
  296. [
  297. "id" => 1,
  298. "company_name" => "Fire Phoenix International",
  299. "type" => "Data Center",
  300. "status" => 1,
  301. "note" => "Dalam Proses Submit",
  302. "moa_date" => "22-02-2025",
  303. "area" => "Gambang",
  304. "invesment_approx" => 100000000,
  305. "labour_approx" => 50,
  306. "land_area" => 4757
  307. ],
  308. [
  309. "id" => 2,
  310. "company_name" => "Lestari Angkasa Sdn Bhd",
  311. "type" => "International Space Port",
  312. "status" => 0,
  313. "note" => "Loi Ditandatangani pada 14-03-2025",
  314. "moa_date" => "22-02-2025",
  315. "area" => "Pekan",
  316. "invesment_approx" => 100000000,
  317. "labour_approx" => 50,
  318. "land_area" => null
  319. ]
  320. ];
  321. $commitedDDIProject = [
  322. [
  323. "id" => 1,
  324. "company_name" => "Kicap Bentong Sdn. Bhd (Jualan)",
  325. "type" => "Kilang Memproses Kicap (Pembesaran)",
  326. "status" => 0,
  327. "note" => "Dalam Proses Submit",
  328. "moa_date" => "",
  329. "area" => "Kawasan Perindustrian Bentong",
  330. "invesment_approx" => 100000000,
  331. "labour_approx" => 50,
  332. "land_area" => 2
  333. ],
  334. [
  335. "id" => 2,
  336. "company_name" => "Advanced Achieve Property Management Sdn. Bhd",
  337. "type" => "International Space Port",
  338. "status" => 1,
  339. "note" => "Dalam Proses Pindahan",
  340. "moa_date" => "",
  341. "area" => "KP Gebeng 1",
  342. "invesment_approx" => 100000000,
  343. "labour_approx" => 50,
  344. "land_area" => 1.74
  345. ],
  346. [
  347. "id" => 3,
  348. "company_name" => "BH Setia Sdn Bhd (Jualan IKS)",
  349. "type" => "Data Center",
  350. "status" => 1,
  351. "note" => "Proses Dalam Pindahan",
  352. "moa_date" => "22-02-2025",
  353. "area" => "KP Gebeng 2",
  354. "invesment_approx" => 100000000,
  355. "labour_approx" => 50,
  356. "land_area" => 2.046
  357. ],
  358. [
  359. "id" => 4,
  360. "company_name" => "Gading Senggara Property (Pajakan)",
  361. "type" => "International Space Port",
  362. "status" => 0,
  363. "note" => "Dalam Proses Memuktamadkan Perjanjian",
  364. "moa_date" => "",
  365. "area" => "KP Gebeng 3",
  366. "invesment_approx" => 100000000,
  367. "labour_approx" => 50,
  368. "land_area" => 152
  369. ]
  370. ];
  371. $potentialFDIProject = [
  372. [
  373. "id" => 1,
  374. "company_name" => "Kicap Bentong Sdn. Bhd (Jualan)",
  375. "type" => "Kilang Memproses Kicap (Pembesaran)",
  376. "status" => null,
  377. "note" => "Dalam Proses Submit",
  378. "moa_date" => "",
  379. "area" => "Kawasan Perindustrian Bentong",
  380. "invesment_approx" => 100000000,
  381. "labour_approx" => 50,
  382. "land_area" => 2
  383. ]
  384. ];
  385. $potentialDDIProject = [
  386. [
  387. "id" => 1,
  388. "company_name" => "Kicap Bentong Sdn. Bhd (Jualan)",
  389. "type" => "Kilang Memproses Kicap (Pembesaran)",
  390. "status" => 0,
  391. "note" => "Dalam Proses Submit",
  392. "moa_date" => "",
  393. "area" => "Kawasan Perindustrian Bentong",
  394. "invesment_approx" => 100000000,
  395. "labour_approx" => 50,
  396. "land_area" => 2
  397. ]
  398. ];
  399. if ($type == "commited") {
  400. return array(
  401. "FDIProject" => $comittedFDIProject,
  402. "DDIProject" => $commitedDDIProject,
  403. );
  404. }
  405. if ($type == "potential") {
  406. return array(
  407. "FDIProject" => $potentialFDIProject,
  408. "DDIProject" => $potentialDDIProject,
  409. );
  410. }
  411. return array(
  412. []
  413. );
  414. });
  415. });