|
@@ -155,7 +155,7 @@ Route::get('/agency', function () {
|
155
|
155
|
|
156
|
156
|
Route::get('/project', function () {
|
157
|
157
|
|
158
|
|
- $comittedFDIProject = [
|
|
158
|
+ $commitedFDIProject = [
|
159
|
159
|
[
|
160
|
160
|
"id" => 1,
|
161
|
161
|
"company_name" => "Fire Phoenix International",
|
|
@@ -233,10 +233,10 @@ Route::get('/project', function () {
|
233
|
233
|
]
|
234
|
234
|
];
|
235
|
235
|
|
236
|
|
- return view('project', compact('comittedFDIProject', 'commitedDDIProject'));
|
|
236
|
+ return view('project', compact('commitedFDIProject', 'commitedDDIProject'));
|
237
|
237
|
});
|
238
|
238
|
|
239
|
|
-Route::get('/agency_performance', function(){
|
|
239
|
+Route::get('/agency_performance', function () {
|
240
|
240
|
$agencys = [
|
241
|
241
|
[
|
242
|
242
|
"id" => 1,
|
|
@@ -302,3 +302,136 @@ Route::get('/agency_performance', function(){
|
302
|
302
|
|
303
|
303
|
return view('agency_performance', compact('agencys'));
|
304
|
304
|
});
|
|
305
|
+
|
|
306
|
+/* For demo purpose only - please delete this when building the actual app */
|
|
307
|
+// To demo comited and potential project
|
|
308
|
+Route::prefix('api')->group(function () {
|
|
309
|
+ Route::get('project/{type}', function ($type) {
|
|
310
|
+
|
|
311
|
+ $comittedFDIProject = [
|
|
312
|
+ [
|
|
313
|
+ "id" => 1,
|
|
314
|
+ "company_name" => "Fire Phoenix International",
|
|
315
|
+ "type" => "Data Center",
|
|
316
|
+ "status" => 1,
|
|
317
|
+ "note" => "Dalam Proses Submit",
|
|
318
|
+ "moa_date" => "22-02-2025",
|
|
319
|
+ "area" => "Gambang",
|
|
320
|
+ "invesment_approx" => 100000000,
|
|
321
|
+ "labour_approx" => 50,
|
|
322
|
+ "land_area" => 4757
|
|
323
|
+ ],
|
|
324
|
+ [
|
|
325
|
+ "id" => 2,
|
|
326
|
+ "company_name" => "Lestari Angkasa Sdn Bhd",
|
|
327
|
+ "type" => "International Space Port",
|
|
328
|
+ "status" => 0,
|
|
329
|
+ "note" => "Loi Ditandatangani pada 14-03-2025",
|
|
330
|
+ "moa_date" => "22-02-2025",
|
|
331
|
+ "area" => "Pekan",
|
|
332
|
+ "invesment_approx" => 100000000,
|
|
333
|
+ "labour_approx" => 50,
|
|
334
|
+ "land_area" => null
|
|
335
|
+ ]
|
|
336
|
+ ];
|
|
337
|
+
|
|
338
|
+ $commitedDDIProject = [
|
|
339
|
+ [
|
|
340
|
+ "id" => 1,
|
|
341
|
+ "company_name" => "Kicap Bentong Sdn. Bhd (Jualan)",
|
|
342
|
+ "type" => "Kilang Memproses Kicap (Pembesaran)",
|
|
343
|
+ "status" => 0,
|
|
344
|
+ "note" => "Dalam Proses Submit",
|
|
345
|
+ "moa_date" => "",
|
|
346
|
+ "area" => "Kawasan Perindustrian Bentong",
|
|
347
|
+ "invesment_approx" => 100000000,
|
|
348
|
+ "labour_approx" => 50,
|
|
349
|
+ "land_area" => 2
|
|
350
|
+ ],
|
|
351
|
+ [
|
|
352
|
+ "id" => 2,
|
|
353
|
+ "company_name" => "Advanced Achieve Property Management Sdn. Bhd",
|
|
354
|
+ "type" => "International Space Port",
|
|
355
|
+ "status" => 1,
|
|
356
|
+ "note" => "Dalam Proses Pindahan",
|
|
357
|
+ "moa_date" => "",
|
|
358
|
+ "area" => "KP Gebeng 1",
|
|
359
|
+ "invesment_approx" => 100000000,
|
|
360
|
+ "labour_approx" => 50,
|
|
361
|
+ "land_area" => 1.74
|
|
362
|
+ ],
|
|
363
|
+ [
|
|
364
|
+ "id" => 3,
|
|
365
|
+ "company_name" => "BH Setia Sdn Bhd (Jualan IKS)",
|
|
366
|
+ "type" => "Data Center",
|
|
367
|
+ "status" => 1,
|
|
368
|
+ "note" => "Proses Dalam Pindahan",
|
|
369
|
+ "moa_date" => "22-02-2025",
|
|
370
|
+ "area" => "KP Gebeng 2",
|
|
371
|
+ "invesment_approx" => 100000000,
|
|
372
|
+ "labour_approx" => 50,
|
|
373
|
+ "land_area" => 2.046
|
|
374
|
+ ],
|
|
375
|
+ [
|
|
376
|
+ "id" => 4,
|
|
377
|
+ "company_name" => "Gading Senggara Property (Pajakan)",
|
|
378
|
+ "type" => "International Space Port",
|
|
379
|
+ "status" => 0,
|
|
380
|
+ "note" => "Dalam Proses Memuktamadkan Perjanjian",
|
|
381
|
+ "moa_date" => "",
|
|
382
|
+ "area" => "KP Gebeng 3",
|
|
383
|
+ "invesment_approx" => 100000000,
|
|
384
|
+ "labour_approx" => 50,
|
|
385
|
+ "land_area" => 152
|
|
386
|
+ ]
|
|
387
|
+ ];
|
|
388
|
+
|
|
389
|
+ $potentialFDIProject = [
|
|
390
|
+ [
|
|
391
|
+ "id" => 1,
|
|
392
|
+ "company_name" => "Kicap Bentong Sdn. Bhd (Jualan)",
|
|
393
|
+ "type" => "Kilang Memproses Kicap (Pembesaran)",
|
|
394
|
+ "status" => null,
|
|
395
|
+ "note" => "Dalam Proses Submit",
|
|
396
|
+ "moa_date" => "",
|
|
397
|
+ "area" => "Kawasan Perindustrian Bentong",
|
|
398
|
+ "invesment_approx" => 100000000,
|
|
399
|
+ "labour_approx" => 50,
|
|
400
|
+ "land_area" => 2
|
|
401
|
+ ]
|
|
402
|
+ ];
|
|
403
|
+
|
|
404
|
+ $potentialDDIProject = [
|
|
405
|
+ [
|
|
406
|
+ "id" => 1,
|
|
407
|
+ "company_name" => "Kicap Bentong Sdn. Bhd (Jualan)",
|
|
408
|
+ "type" => "Kilang Memproses Kicap (Pembesaran)",
|
|
409
|
+ "status" => 0,
|
|
410
|
+ "note" => "Dalam Proses Submit",
|
|
411
|
+ "moa_date" => "",
|
|
412
|
+ "area" => "Kawasan Perindustrian Bentong",
|
|
413
|
+ "invesment_approx" => 100000000,
|
|
414
|
+ "labour_approx" => 50,
|
|
415
|
+ "land_area" => 2
|
|
416
|
+ ]
|
|
417
|
+ ];
|
|
418
|
+
|
|
419
|
+ if ($type == "commited") {
|
|
420
|
+ return array(
|
|
421
|
+ "FDIProject" => $comittedFDIProject,
|
|
422
|
+ "DDIProject" => $commitedDDIProject,
|
|
423
|
+ );
|
|
424
|
+ }
|
|
425
|
+
|
|
426
|
+ if ($type == "potential") {
|
|
427
|
+ return array(
|
|
428
|
+ "FDIProject" => $potentialFDIProject,
|
|
429
|
+ "DDIProject" => $potentialDDIProject,
|
|
430
|
+ );
|
|
431
|
+ }
|
|
432
|
+
|
|
433
|
+ return array(
|
|
434
|
+ []
|
|
435
|
+ );
|
|
436
|
+ });
|
|
437
|
+});
|