Selaa lähdekoodia

Static Page

master
azri 1 päivä sitten
vanhempi
commit
9fa6fd3c60

BIN
public/assets/image/logoinvestpahang.png Näytä tiedosto


+ 115
- 0
resources/views/agency.blade.php Näytä tiedosto

@@ -0,0 +1,115 @@
1
+@extends('layouts.main')
2
+
3
+
4
+@php
5
+    $hasNotification = true;
6
+@endphp
7
+
8
+@section('content')
9
+    <div class="flex flex-col gap-4 bg-white rounded p-10 min-h-screen">
10
+
11
+        <div class="flex justify-between items-center">
12
+            <p class="flex items-center text-xs">
13
+                <i class="fa-solid fa-house text-[#BD8736] mr-1"></i>
14
+                <span>Dashboard <i class="fa-solid fa-chevron-right"></i> Senarai Agensi</span>
15
+            </p>
16
+            <div class="relative cursor-pointer">
17
+                @if ($hasNotification)
18
+                    <div class="absolute top-[2px] left-0 w-2 h-2 bg-[#E50A0A] rounded-full"></div>
19
+                @endif
20
+
21
+                <i class="fa-regular fa-bell text-md hover:text-[#BD8736]"></i>
22
+            </div>
23
+        </div>
24
+
25
+        <div class="flex" style="gap:10px">
26
+            <div class="relative w-fit">
27
+                <input type="text" placeholder="Carian"
28
+                    class="w-full pl-4 pr-10 py-1 px-5 border border-gray-300 rounded-lg text-sm text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-blue-500" />
29
+                <div class="pointer-events-none absolute text-gray-500 text-xs" style="top: 50%; transform: translateY(-50%); right:10px">
30
+                    <i class="fas fa-search"></i>
31
+                </div>
32
+            </div>
33
+
34
+            <div class="relative w-fit">
35
+                <select
36
+                    class="appearance-none w-full pl-4 pr-10 py-1 px-5 border border-gray-300 rounded-lg text-sm text-gray-700 cursor-pointer bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-blue-500">
37
+                    <option value="all" selected>Agensi</option>
38
+                    <option value="pknp">PKNP</option>
39
+                    <option value="pkpp">PKPP</option>
40
+                </select>
41
+            </div>
42
+
43
+            <div class="relative w-fit">
44
+                <select
45
+                    class="appearance-none w-full pl-4 pr-10 py-1 px-5 border border-gray-300 rounded-lg text-sm text-gray-700 cursor-pointer bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-blue-500">
46
+                    <option value="all" selected>Status Prestasi</option>
47
+                    <option value="1">Lemah</option>
48
+                    <option value="2">Sederhana</option>
49
+                    <option value="3">Baik</option>
50
+                </select>
51
+            </div>
52
+
53
+        </div>
54
+
55
+        <div class="border rounded">
56
+            <h5 class="font-semibold m-5">Senarai Agensi</h5>
57
+            <div class="overflow-x-auto overflow-hidden rounded-[10px]">
58
+                <table class="w-full text-sm text-left text-gray-700 border-collapse">
59
+                    <thead>
60
+                        <tr>
61
+                            <th class="text-xs px-4 py-2">Bil</th>
62
+                            <th class="text-xs px-4 py-2">S-GLC to Agensi</th>
63
+                            <th class="text-xs px-4 py-2 text-center">Jumlah Peojek Aktif</th>
64
+                            <th class="text-xs px-4 py-2 text-center">Status Prestasi</th>
65
+                            <th class="text-xs px-4 py-2 text-center">Tindakan</th>
66
+                        </tr>
67
+                    </thead>
68
+                    <tbody>
69
+                        @foreach ($agencys as $index => $agency)
70
+                            <tr>
71
+                                <td class="px-4 py-2">{{ $index + 1 }}</td>
72
+                                <td class="px-4 py-2">{{ $agency['name'] }}</td>
73
+                                <td class="px-4 py-2 text-center">{{ $agency['active_count'] }}
74
+                                </td>
75
+                                <td class="px-4 py-2 text-center">
76
+                                    @switch($agency['status'])
77
+                                        @case(1)
78
+                                            <div class="px-3 py-1 text-xs rounded-lg border inline-block"
79
+                                                style="color:#CE4C4A; background-color:#FFF5F4; border-color:#ef4444;width:100%">
80
+                                                Lemah
81
+                                            </div>
82
+                                        @break
83
+
84
+                                        @case(2)
85
+                                            <div class="px-3 py-1 text-xs rounded-lg border inline-block"
86
+                                                style="color:#E5A20A; background-color:#FFFBF4; border-color:#E5A20A;width:100%">
87
+                                                Sederhana
88
+                                            </div>
89
+                                        @break
90
+
91
+                                        @case(3)
92
+                                            <div class="px-3 py-1 text-xs rounded-lg border inline-block"
93
+                                                style="color:#49B452; background-color:#F7FFF7; border-color:#49B452; width:100%">
94
+                                                Baik
95
+                                            </div>
96
+                                        @break
97
+
98
+                                        @default
99
+                                    @endswitch
100
+                                </td>
101
+                                <td class="px-4 py-2 text-center">
102
+                                    <a href="#" class="text-blue-800 underline">Lihat Projek</a>
103
+                                </td>
104
+                            </tr>
105
+                        @endforeach
106
+                    </tbody>
107
+                </table>
108
+            </div>
109
+        </div>
110
+
111
+    </div>
112
+@endsection
113
+
114
+@section('scripts')
115
+@endsection

+ 107
- 0
resources/views/agency_performance.blade.php Näytä tiedosto

@@ -0,0 +1,107 @@
1
+@extends('layouts.main')
2
+
3
+
4
+@php
5
+    $hasNotification = true;
6
+@endphp
7
+
8
+@section('content')
9
+    <div class="flex flex-col gap-4 bg-white rounded p-10 min-h-screen">
10
+
11
+        <div class="flex justify-between items-center">
12
+            <p class="flex items-center text-xs">
13
+                <i class="fa-solid fa-house text-[#BD8736] mr-1"></i>
14
+                <span>Dashboard <i class="fa-solid fa-chevron-right"></i> Senarai Agensi</span>
15
+            </p>
16
+            <div class="relative cursor-pointer">
17
+                @if ($hasNotification)
18
+                    <div class="absolute top-[2px] left-0 w-2 h-2 bg-[#E50A0A] rounded-full"></div>
19
+                @endif
20
+
21
+                <i class="fa-regular fa-bell text-md hover:text-[#BD8736]"></i>
22
+            </div>
23
+        </div>
24
+
25
+        <div class="flex" style="gap:10px">
26
+            <div class="relative w-fit">
27
+                <input type="text" placeholder="Carian"
28
+                    class="w-full pl-4 pr-10 py-1 px-5 border border-gray-300 rounded-lg text-sm text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-blue-500" />
29
+                <div class="pointer-events-none absolute text-gray-500 text-xs"
30
+                    style="top: 50%; transform: translateY(-50%); right:10px">
31
+                    <i class="fas fa-search"></i>
32
+                </div>
33
+            </div>
34
+
35
+            <div class="relative w-fit">
36
+                <select
37
+                    class="appearance-none w-full pl-4 pr-10 py-1 px-5 border border-gray-300 rounded-lg text-sm text-gray-700 cursor-pointer bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-blue-500">
38
+                    <option value="all" selected>Agensi</option>
39
+                    <option value="pknp">PKNP</option>
40
+                    <option value="pkpp">PKPP</option>
41
+                </select>
42
+            </div>
43
+
44
+            <div class="relative w-fit">
45
+                <select
46
+                    class="appearance-none w-full pl-4 pr-10 py-1 px-5 border border-gray-300 rounded-lg text-sm text-gray-700 cursor-pointer bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-blue-500">
47
+                    <option value="all" selected>Status Prestasi</option>
48
+                    <option value="1">Lemah</option>
49
+                    <option value="2">Sederhana</option>
50
+                    <option value="3">Baik</option>
51
+                </select>
52
+            </div>
53
+
54
+        </div>
55
+
56
+        <div class="border rounded">
57
+            <h5 class="font-semibold m-5">Senarai Agensi</h5>
58
+            <div class="overflow-x-auto overflow-hidden rounded-[10px]">
59
+                <table class="w-full text-sm text-left text-gray-700 border-collapse">
60
+                    <thead>
61
+                        <tr>
62
+                            <th class="text-xs px-4 py-2">Bil</th>
63
+                            <th class="text-xs px-4 py-2">S-GLC to Agensi</th>
64
+                            <th class="text-xs px-4 py-2 text-center">Nama Syarikat</th>
65
+                            <th class="text-xs px-4 py-2 text-center">Siap / Lambat (%)</th>
66
+                        </tr>
67
+                    </thead>
68
+                    <tbody>
69
+                        @foreach ($agencys as $index => $agency)
70
+                            <tr>
71
+                                <td class="px-4 py-2">{{ $index + 1 }}</td>
72
+                                <td class="px-4 py-2">{{ $agency['name'] }}</td>
73
+                                <td class="px-4 py-2 text-center">{{ $agency['company_name'] }}
74
+                                </td>
75
+                                <td class="px-4 py-2 text-center">
76
+                                    <div class="flex items-center gap-2">
77
+                                        <span class="font-bold text-xs">{{ $agency['percent'] }}</span>
78
+
79
+                                        @php
80
+                                            $percent = $agency['percent'];
81
+                                            $barColor = match (true) {
82
+                                                $percent < 30 => 'bg-[#CE4C4A]', // Red
83
+                                                $percent < 66 => 'bg-[#E5A20A]', // Yellow
84
+                                                default => 'bg-[#49B452]', // Green
85
+                                            };
86
+                                        @endphp
87
+
88
+                                        <div class="w-full bg-gray-200 rounded-full h-2 overflow-hidden">
89
+                                            <div class="{{ $barColor }} h-full rounded-full transition-all duration-500"
90
+                                                style="width: {{ $percent }}%">
91
+                                            </div>
92
+                                        </div>
93
+                                    </div>
94
+                                </td>
95
+
96
+                            </tr>
97
+                        @endforeach
98
+                    </tbody>
99
+                </table>
100
+            </div>
101
+        </div>
102
+
103
+    </div>
104
+@endsection
105
+
106
+@section('scripts')
107
+@endsection

+ 42
- 3
resources/views/components/table.blade.php Näytä tiedosto

@@ -1,3 +1,42 @@
1
-<div>
2
-    <!-- It is quality rather than quantity that matters. - Lucius Annaeus Seneca -->
3
-</div>
1
+@props([
2
+    'data' => [
3
+        [
4
+            'col1' => 1,
5
+            'col2' => 2,
6
+            'col3' => 3,
7
+        ],
8
+    ],
9
+    'showIndex' => false,
10
+])
11
+
12
+@php
13
+    // we derived the table heading based on each object key
14
+    $columns = count($data) > 0 ? array_keys($data[0]) : [];
15
+@endphp
16
+
17
+<table class="w-full text-sm text-left text-gray-700 border-collapse">
18
+    <thead class="bg-gray-100">
19
+        <tr>
20
+            @if ($showIndex)
21
+                <th class="px-4 py-2 border">Bil</th>
22
+            @endif
23
+
24
+            @foreach ($columns as $column)
25
+                <th class="px-4 py-2 border">{{ ucfirst(str_replace('_', ' ', $column)) }}</th>
26
+            @endforeach
27
+        </tr>
28
+    </thead>
29
+    <tbody>
30
+        @foreach ($data as $index => $row)
31
+            <tr>
32
+                @if ($showIndex)
33
+                    <td class="px-4 py-2 border">{{ $index + 1 }}</td>
34
+                @endif
35
+
36
+                @foreach ($columns as $column)
37
+                    <td class="px-4 py-2 border">{{ $row[$column] }}</td>
38
+                @endforeach
39
+            </tr>
40
+        @endforeach
41
+    </tbody>
42
+</table>

+ 111
- 35
resources/views/home.blade.php Näytä tiedosto

@@ -1,53 +1,110 @@
1 1
 @extends('layouts.main')
2 2
 
3
+@php
4
+
5
+    $totalTargetAmount = 0;
6
+    $totalTargetAmountYB = 0;
7
+
8
+    $chartLabel = [];
9
+    $chartPercent = [];
10
+
11
+    $hasNotification = true;
12
+
13
+    foreach ($status as $data) {
14
+        $chartLabel[] = $data['name'];
15
+        $chartPercent[] = $data['percent'];
16
+    }
17
+
18
+    foreach ($rekodKPIPelaburan as $index => $data) {
19
+        $totalTargetAmount += $data['investment_target'];
20
+        $totalTargetAmountYB += $data['investment_target_setting'];
21
+    }
22
+
23
+@endphp
24
+
25
+
3 26
 @section('content')
4 27
     <div class="flex flex-col gap-4 bg-white rounded p-10 min-h-screen">
5 28
 
6
-        <!-- Pie Chart Card -->
7
-        <div class="rounded-md border border-[rgba(0,0,0,0.2)] p-4">
8
-            <h5 class="text-lg font-semibold mb-4">Senarai Agensi Mengikut Status</h5>
29
+        <div class="flex justify-between items-center">
30
+            <p class="flex items-center text-xs">
31
+                <i class="fa-solid fa-house text-[#BD8736] mr-1"></i>
32
+                <span>Dashboard</span>
33
+            </p>
34
+            <div class="relative cursor-pointer">
35
+                @if ($hasNotification)
36
+                    <div class="absolute top-[2px] left-0 w-2 h-2 bg-[#E50A0A] rounded-full"></div>
37
+                @endif
38
+
39
+                <i class="fa-regular fa-bell text-md hover:text-[#BD8736]"></i>
40
+            </div>
41
+
42
+        </div>
43
+
44
+
45
+        <div class="border rounded p-5">
46
+            <h6 class="font-semibold mb-4">Senarai Agensi Mengikut Status</h6>
9 47
             <div class="mx-auto text-center" style="width:25%">
10 48
                 <canvas id="agencyPieChart"></canvas>
11
-                <h5 class="font-bold my-5">Status</h5>
49
+                <h5 class="font-bold my-2">Status</h5>
12 50
             </div>
13 51
         </div>
14 52
 
15
-        <!-- Table Card -->
16
-        <div class="rounded-md border border-[rgba(0,0,0,0.2)] p-4">
17
-            <h5 class="text-lg font-semibold mb-4">Rekod Penetapan KPI Pelaburan</h5>
18
-            <div class="overflow-x-auto">
53
+        <div class="border rounded">
54
+            <h5 class="font-semibold m-5">Rekod Penetapan KPI Pelaburan</h5>
55
+            <div class="overflow-x-auto overflow-hidden rounded-[10px]">
19 56
                 <table class="w-full text-sm text-left text-gray-700 border-collapse">
20
-                    <thead class="bg-gray-100">
57
+                    <thead>
21 58
                         <tr>
22
-                            <th class="px-4 py-2 border">Bil. </th>
23
-                            <th class="px-4 py-2 border">S-GLC</th>
24
-                            <th class="px-4 py-2 border">Sasaran Pelaburan 2025 (RM)</th>
25
-                            <th class="px-4 py-2 border">Penetapan Sasaran Pelaburan (RM) oleh YB Dato’ Pengerusi</th>
59
+                            <th class="text-xs px-4 py-2">Bil</th>
60
+                            <th class="text-xs px-4 py-2">S-GLC</th>
61
+                            <th class="text-xs px-4 py-2 text-right">Sasaran Pelaburan 2025 (RM)</th>
62
+                            <th class="text-xs px-4 py-2 text-right">Penetapan Sasaran Pelaburan (RM) oleh YB Dato’
63
+                                Pengerusi
64
+                            </th>
26 65
                         </tr>
27 66
                     </thead>
28 67
                     <tbody>
29
-                        <tr>
30
-                            <td class="px-4 py-2 border">1</td>
31
-                            <td class="px-4 py-2 border">Agensi A</td>
32
-                            <td class="px-4 py-2 border text-green-600 font-medium">Aktif</td>
33
-                            <td class="px-4 py-2 border">75%</td>
34
-                        </tr>
35
-                        <tr>
36
-                            <td class="px-4 py-2 border">2</td>
37
-                            <td class="px-4 py-2 border">Agensi B</td>
38
-                            <td class="px-4 py-2 border text-yellow-600 font-medium">Dalam Proses</td>
39
-                            <td class="px-4 py-2 border">50%</td>
40
-                        </tr>
41
-                        <tr>
42
-                            <td class="px-4 py-2 border">3</td>
43
-                            <td class="px-4 py-2 border">Agensi C</td>
44
-                            <td class="px-4 py-2 border text-red-600 font-medium">Tidak Aktif</td>
45
-                            <td class="px-4 py-2 border">30%</td>
68
+                        @foreach ($rekodKPIPelaburan as $index => $data)
69
+                            <tr>
70
+                                <td class="px-4 py-2 border">{{ $index + 1 }}</td>
71
+                                <td class="px-4 py-2 border ">
72
+                                    <a href="#" class="text-blue-800 underline">{{ $data['name'] }}</a>
73
+                                </td>
74
+                                <td class="px-4 py-2 border text-right">{{ number_format($data['investment_target'], 2) }}
75
+                                </td>
76
+                                <td class="px-4 py-2 border text-right">
77
+                                    {{ number_format($data['investment_target_setting'], 2) }}</td>
78
+                            </tr>
79
+                        @endforeach
80
+                        <tr class="bg-[#012961]">
81
+                            <td class="px-4 py-2 text-white" colspan="2">Jumlah</td>
82
+                            <td class="px-4 py-2 text-white text-right">{{ number_format($totalTargetAmount, 2) }}</td>
83
+                            <td class="px-4 py-2 text-white text-right">{{ number_format($totalTargetAmountYB, 2) }}</td>
46 84
                         </tr>
85
+
47 86
                     </tbody>
48 87
                 </table>
49 88
             </div>
50 89
         </div>
90
+
91
+        <button
92
+            class="bg-[#012961] hover:bg-blue-700 text-white font-semibold w-fit text-xs py-2 px-4 rounded-lg shadow-md transition duration-200 ml-auto">
93
+            <i class="fa-solid fa-download text-white text-xs"></i>
94
+            <span>Simpan</span>
95
+        </button>
96
+
97
+        <div class="border rounded p-5">
98
+
99
+            <h5 class="font-semibold mb-4">Rekod Penetapan KPI Pelaburan</h5>
100
+            <p class="text-xs font-bold">YB Dato’ Pengerusi memohon agar sasaran adalah melebihi sasaran tahun 2024: <span
101
+                    class="text-[#BD8736]">DEADLINE, 2 WEEK from JPPP MEETING.</span></p>
102
+            <p class="text-xs font-bold">15-04-2025 | Jumlah Pelaburan Komited telah dikemaskini berdasarkan data yang diisi
103
+                oleh S-GLC. Jumlah pelaburan komited berjumlah RM 2,000,333.00.</p>
104
+
105
+        </div>
106
+
107
+
51 108
     </div>
52 109
 @endsection
53 110
 
@@ -56,21 +113,40 @@
56 113
     <script>
57 114
         const ctx = document.getElementById('agencyPieChart').getContext('2d');
58 115
 
116
+        const chartLabels = @json($chartLabel);
117
+        const chartData = @json($chartPercent);
118
+
59 119
         new Chart(ctx, {
60 120
             type: 'pie',
61 121
             data: {
62
-                labels: ['Aktif', 'Dalam Proses', 'Tidak Aktif'],
122
+                labels: chartLabels,
63 123
                 datasets: [{
64
-                    label: 'Status Agensi',
65
-                    data: [12, 8, 5],
66
-                    backgroundColor: ['#10B981', '#FBBF24', '#EF4444'],
124
+                    label: 'Status',
125
+                    data: chartData,
126
+                    backgroundColor: [
127
+                        '#F9DFF2 ',
128
+                        '#F9DFC0 ',
129
+                        '#E0C7FB',
130
+                        '#CDF6DE',
131
+                        '#FAEAB7',
132
+                        '#E0EEFE'
133
+                    ],
67 134
                     borderWidth: 1
68 135
                 }]
69 136
             },
70 137
             options: {
71 138
                 responsive: true,
72 139
                 plugins: {
73
-                    legend: false
140
+                    legend: false,
141
+                    tooltip: {
142
+                        callbacks: {
143
+                            label: function(context) {
144
+                                let label = context.label || '';
145
+                                let value = context.parsed;
146
+                                return `(${value}%)`;
147
+                            }
148
+                        }
149
+                    }
74 150
                 }
75 151
             }
76 152
         });

+ 73
- 46
resources/views/layouts/main.blade.php Näytä tiedosto

@@ -1,5 +1,6 @@
1 1
 <!DOCTYPE html>
2 2
 <html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
3
+
3 4
 <head>
4 5
     <meta charset="utf-8">
5 6
     <meta name="viewport" content="width=device-width, initial-scale=1">
@@ -8,65 +9,91 @@
8 9
     <link rel="preconnect" href="https://fonts.bunny.net">
9 10
     <link href="https://fonts.bunny.net/css?family=figtree:400,500,600&display=swap" rel="stylesheet" />
10 11
 
12
+    <!-- Font Awesome CDN -->
13
+    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css"
14
+        integrity="sha512-Evv84Mr4kqVGRNSgIGL/F/aIDqQb7xQ2vcrdIwxfjThSH8CSR7PBEakCr51Ck+w+/U6swU2Im1vVX0SVk9ABhg=="
15
+        crossorigin="anonymous" referrerpolicy="no-referrer" />
16
+
11 17
     @vite(['resources/css/app.css', 'resources/js/app.js'])
12 18
     <script defer src="https://unpkg.com/alpinejs@3.x.x/dist/cdn.min.js"></script>
13 19
 
14 20
 </head>
21
+
15 22
 <body class="antialiased bg-gray-100 text-gray-800">
16 23
 
17
-<div x-data="{ sidebarOpen: true }" class="min-h-screen flex">
18
-
19
-    <!-- Sidebar -->
20
-    <div :class="sidebarOpen ? 'w-64' : 'w-16'" class="bg-white border-r border-gray-200 transition-all duration-300 flex flex-col">
21
-        <div class="p-4 flex justify-between items-center">
22
-            <span x-show="sidebarOpen" class="font-bold text-lg">Dashboard</span>
23
-            <button @click="sidebarOpen = !sidebarOpen" class="text-gray-600 focus:outline-none">
24
-                <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
25
-                    <path :class="sidebarOpen ? 'block' : 'hidden'" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
26
-                    <path :class="!sidebarOpen ? 'block' : 'hidden'" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" />
27
-                </svg>
28
-            </button>
29
-        </div>
24
+    <div x-data="{ sidebarOpen: true }" class="min-h-screen flex p-6" style="gap:25px">
30 25
 
31
-        <nav class="flex-1 px-2 space-y-2" x-show="sidebarOpen">
32
-
33
-            <!-- Dashboard -->
34
-            <a href="#" class="block px-4 py-2 rounded hover:bg-gray-200">
35
-                Dashboard
36
-            </a>
37
-
38
-            <!-- Projects (with children) -->
39
-            <div x-data="{ open: false }" class="space-y-1">
40
-                <button
41
-                    @click="open = !open"
42
-                    class="w-full flex justify-between items-center px-4 py-2 rounded hover:bg-gray-200 text-left"
43
-                >
44
-                    <span>Projects</span>
45
-                    <svg :class="{'rotate-90': open}" class="w-4 h-4 transition-transform" fill="none" stroke="currentColor" viewBox="0 0 24 24">
46
-                        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7" />
26
+        <!-- Sidebar -->
27
+        <div :class="sidebarOpen ? 'w-56' : 'w-16'"
28
+            class="bg-white border-r border-gray-200 transition-all duration-300 flex flex-col rounded">
29
+            <div class="p-4 flex justify-between items-center">
30
+                <span x-show="sidebarOpen" class="font-bold border-b-2 p-5">
31
+                    <img src="./assets/image/logoinvestpahang.png" />
32
+                </span>
33
+                {{-- <button @click="sidebarOpen = !sidebarOpen" class="text-gray-600 focus:outline-none">
34
+                    <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
35
+                        <path :class="sidebarOpen ? 'block' : 'hidden'" stroke-linecap="round" stroke-linejoin="round"
36
+                            stroke-width="2" d="M6 18L18 6M6 6l12 12" />
37
+                        <path :class="!sidebarOpen ? 'block' : 'hidden'" stroke-linecap="round" stroke-linejoin="round"
38
+                            stroke-width="2" d="M4 6h16M4 12h16M4 18h16" />
47 39
                     </svg>
48
-                </button>
49
-                <div x-show="open" x-transition class="pl-6">
50
-                    <a href="#" class="block px-2 py-1 rounded hover:bg-gray-100">All Projects</a>
51
-                    <a href="#" class="block px-2 py-1 rounded hover:bg-gray-100">Create Project</a>
52
-                </div>
40
+                </button> --}}
53 41
             </div>
54 42
 
55
-            <!-- Settings -->
56
-            <a href="#" class="block px-4 py-2 rounded hover:bg-gray-200">
57
-                Settings
58
-            </a>
43
+            <nav class="flex-1 px-2 space-y-2" x-show="sidebarOpen">
59 44
 
60
-        </nav>
61
-    </div>
45
+                <!-- Dashboard -->
46
+                <a href="/" class="flex items-center gap-2 px-4 py-2 rounded hover:bg-gray-200">
47
+                    <i class="fa-solid fa-table-columns w-4 text-xs text-[#BD8736]"></i>
48
+                    <span>Dashboard</span>
49
+                </a>
62 50
 
63
-    <!-- Content -->
64
-    <div class="flex-1 p-6">
65
-        @yield('content')
66
-    </div>
67
-    @yield('scripts')
51
+                <a href="/agency" class="flex items-center gap-2 px-4 py-2 rounded hover:bg-gray-200">
52
+                    <i class="fa-solid fa-paste w-4 text-xs text-[#BD8736]"></i>
53
+                    <span>Senarai Agensi</span>
54
+                </a>
55
+
56
+                <a href="/project" class="flex items-center gap-2 px-4 py-2 rounded hover:bg-gray-200">
57
+                    <i class="fa-solid fa-folder-open w-4 text-xs text-[#BD8736]"></i>
58
+                    <span>Senarai Projek</span>
59
+                </a>
60
+
61
+                <a href="/agency_performance" class="flex items-center gap-2 px-4 py-2 rounded hover:bg-gray-200">
62
+                    <i class="fa-solid fa-coins w-4 text-xs text-[#BD8736]"></i>
63
+                    <span>Laporan Agensi</span>
64
+                </a>
68 65
 
69
-</div>
66
+                <!-- Projects (with children) -->
67
+                {{-- <div x-data="{ open: false }" class="space-y-1">
68
+                    <button @click="open = !open"
69
+                        class="w-full flex items-center justify-between px-4 py-2 rounded hover:bg-gray-200 text-left">
70
+                        <div class="flex items-center gap-2">
71
+                            <i class="fas fa-folder w-4 text-xs text-[#BD8736]"></i>
72
+                            <span>Projects</span>
73
+                        </div>
74
+                        <svg :class="{ 'rotate-90': open }" class="w-4 h-4 transition-transform" fill="none"
75
+                            stroke="currentColor" viewBox="0 0 24 24">
76
+                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7" />
77
+                        </svg>
78
+                    </button>
79
+                    <div x-show="open" x-transition class="pl-10">
80
+                        <a href="#" class="block px-2 py-1 rounded hover:bg-gray-100">All Projects</a>
81
+                        <a href="#" class="block px-2 py-1 rounded hover:bg-gray-100">Create Project</a>
82
+                    </div>
83
+                </div> --}}
84
+
85
+            </nav>
86
+
87
+        </div>
88
+
89
+        <!-- Content -->
90
+        <div class="flex-1 overflow-y-scroll overflow-x-hidden" style="max-height: 93vh">
91
+            @yield('content')
92
+        </div>
93
+        @yield('scripts')
94
+
95
+    </div>
70 96
 
71 97
 </body>
98
+
72 99
 </html>

+ 236
- 0
resources/views/project.blade.php Näytä tiedosto

@@ -0,0 +1,236 @@
1
+@extends('layouts.main')
2
+
3
+
4
+@php
5
+    $hasNotification = true;
6
+    $FDI_amt = 100000000;
7
+@endphp
8
+
9
+@section('content')
10
+    <div class="flex flex-col gap-4 bg-white rounded p-10 min-h-screen">
11
+
12
+        <div class="flex justify-between items-center">
13
+            <p class="flex items-center text-xs">
14
+                <i class="fa-solid fa-house text-[#BD8736] mr-1"></i>
15
+                <span>Dashboard <i class="fa-solid fa-chevron-right"></i> Lihat Projek</span>
16
+            </p>
17
+            <div class="relative cursor-pointer">
18
+                @if ($hasNotification)
19
+                    <div class="absolute top-[2px] left-0 w-2 h-2 bg-[#E50A0A] rounded-full"></div>
20
+                @endif
21
+
22
+                <i class="fa-regular fa-bell text-md hover:text-[#BD8736]"></i>
23
+            </div>
24
+        </div>
25
+
26
+        <div class="flex" style="gap:10px">
27
+            <div class="relative w-fit">
28
+                <input type="text" placeholder="Carian"
29
+                    class="w-full pl-4 pr-10 py-1 px-5 border border-gray-300 rounded-lg text-sm text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-blue-500" />
30
+                <div class="pointer-events-none absolute text-gray-500 text-xs"
31
+                    style="top: 50%; transform: translateY(-50%); right:10px">
32
+                    <i class="fas fa-search"></i>
33
+                </div>
34
+            </div>
35
+
36
+            <div class="relative w-fit">
37
+                <select
38
+                    class="appearance-none w-full pl-4 pr-10 py-1 px-5 border border-gray-300 rounded-lg text-sm text-gray-700 cursor-pointer bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-blue-500">
39
+                    <option value="comited" selected>Komited</option>
40
+                    <option value="potential">Pontential</option>
41
+                </select>
42
+            </div>
43
+
44
+            <div class="relative w-fit">
45
+                <select
46
+                    class="appearance-none w-full pl-4 pr-10 py-1 px-5 border border-gray-300 rounded-lg text-sm text-gray-700 cursor-pointer bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-blue-500">
47
+                    <option value="all" selected>Status</option>
48
+                    <option value="final">Perjanjian Muktamad</option>
49
+                    <option value="draft">Deraf Perjanjian</option>
50
+                </select>
51
+            </div>
52
+
53
+            <div class="relative w-fit">
54
+                <select
55
+                    class="appearance-none w-full pl-4 pr-10 py-1 px-5 border border-gray-300 rounded-lg text-sm text-gray-700 cursor-pointer bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-blue-500">
56
+                    <option value="all" selected>Daerah</option>
57
+                    <option value="1">Gambang</option>
58
+                    <option value="2">Pekan</option>
59
+                </select>
60
+            </div>
61
+
62
+            <div class="relative w-fit">
63
+                <select
64
+                    class="appearance-none w-full pl-4 pr-10 py-1 px-5 border border-gray-300 rounded-lg text-sm text-gray-700 cursor-pointer bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-blue-500">
65
+                    <option value="all" selected>Tahun</option>
66
+                    <option value="2026">2026</option>
67
+                    <option value="2025">2025</option>
68
+                </select>
69
+            </div>
70
+
71
+            <button
72
+                class="bg-[#012961] hover:bg-blue-700 text-white font-semibold w-fit text-xs py-2 px-4 rounded-lg shadow-md transition duration-200 ml-auto">
73
+                <span><i class="fa-solid fa-file-excel text-white text-xs pe-3"></i> Eksport</span>
74
+            </button>
75
+
76
+        </div>
77
+
78
+        <div class="border rounded">
79
+            <h5 class="font-semibold m-5">Senarai Pelaburan Komited Perbadanan Kemajuan Negeri Pahang (PKNP) 2025</h5>
80
+            <div class="bg-[#012961] text-white p-5">
81
+                <h3 class="text-xs font-bold">FOREIGN DIRECT INVESTMENT (FDI)</h3>
82
+            </div>
83
+            <div class="overflow-x-scroll overflow-hidden rounded-[10px]">
84
+                <table class="min-w-[2000px] text-sm text-left text-gray-700 border-collapse">
85
+                    <thead>
86
+                        <tr>
87
+                            <th class="text-xs px-4 py-5">Bil</th>
88
+                            <th class="text-xs px-4 py-5">Nama Syarikat</th>
89
+                            <th class="text-xs px-4 py-5">Jenis Projek</th>
90
+                            <th class="text-xs px-4 py-5">Status</th>
91
+                            <th class="text-xs px-4 py-5">Catatan</th>
92
+                            <th class="text-xs px-4 py-5">Tarikh MOA Ditandatangani</th>
93
+                            <th class="text-xs px-4 py-5">Daerah</th>
94
+                            <th class="text-xs px-4 py-5">Anggaran Nilai Pelaburan (RM)</th>
95
+                            <th class="text-xs px-4 py-5">Anggaran Peluang Pekerjaan</th>
96
+                            <th class="text-xs px-4 py-5">Keluasan (Ekar)</th>
97
+                        </tr>
98
+                    </thead>
99
+                    <tbody>
100
+                        @foreach ($comittedFDIProject as $index => $project)
101
+                            <tr>
102
+                                <td class="px-4 py-2">{{ $index + 1 }}</td>
103
+                                <td class="px-4 py-2">{{ $project['company_name'] }}</td>
104
+                                <td class="px-4 py-2">{{ $project['type'] }}
105
+                                </td>
106
+                                <td class="px-4 py-2 text-center">
107
+                                    @switch($project['status'])
108
+                                        @case(1)
109
+                                            <div class="px-3 py-1 text-xs rounded-lg border inline-block"
110
+                                                style="color:#E5A20A; background-color:#FFFBF4; border-color:#E5A20A;width:100%">
111
+                                                Perjanjian Muktamad
112
+                                            </div>
113
+                                        @break
114
+
115
+                                        @case(0)
116
+                                            <div class="px-3 py-1 text-xs rounded-lg border inline-block"
117
+                                                style="color:#49B452; background-color:#F7FFF7; border-color:#49B452; width:100%">
118
+                                                Deraf Perjanjian
119
+                                            </div>
120
+                                        @break
121
+
122
+                                        <div></div>
123
+
124
+                                        @default
125
+                                    @endswitch
126
+                                </td>
127
+                                <td class="px-4 py-2 text-xs">{{ $project['note'] }}</td>
128
+                                <td class="px-4 py-2 text-xs">{{ $project['moa_date'] }}</td>
129
+                                <td class="px-4 py-2 text-xs">{{ $project['area'] }}</td>
130
+                                <td class="px-4 py-2 text-xs">{{ number_format($project['invesment_approx'], 2) }}</td>
131
+                                <td class="px-4 py-2 text-xs">{{ $project['labour_approx'] }}</td>
132
+                                @if ($project['land_area'])
133
+                                    <td class="px-4 py-2 text-xs">{{ number_format($project['land_area']) }}</td>
134
+                                @else
135
+                                    <td class="px-4 py-2 text-xs"><span class="text-md font-bold">TBC</span></td>
136
+                                @endif
137
+                            </tr>
138
+                        @endforeach
139
+                    </tbody>
140
+                </table>
141
+            </div>
142
+            <div class="bg-[#F8F8F8] p-5">
143
+                <h3 class="text-xs font-bold">JUMLAH FDI: <span class="ms-4">{{ number_format($FDI_amt, 2) }}</span></h3>
144
+            </div>
145
+        </div>
146
+
147
+        <div class="border rounded overflow-hidden">
148
+            <div class="bg-[#012961] text-white p-5">
149
+                <h3 class="text-xs font-bold">Domestic Direct Investment (DDI)</h3>
150
+            </div>
151
+            <div class="overflow-x-scroll overflow-hidden rounded-[10px]">
152
+                <table class="min-w-[2000px] text-sm text-left text-gray-700 border-collapse">
153
+                    <thead>
154
+                        <tr>
155
+                            <th class="text-xs px-4 py-5">Bil</th>
156
+                            <th class="text-xs px-4 py-5">Nama Syarikat</th>
157
+                            <th class="text-xs px-4 py-5">Jenis Projek</th>
158
+                            <th class="text-xs px-4 py-5">Status</th>
159
+                            <th class="text-xs px-4 py-5">Catatan</th>
160
+                            <th class="text-xs px-4 py-5">Tarikh MOA Ditandatangani</th>
161
+                            <th class="text-xs px-4 py-5">Daerah</th>
162
+                            <th class="text-xs px-4 py-5">Anggaran Nilai Pelaburan (RM)</th>
163
+                            <th class="text-xs px-4 py-5">Anggaran Peluang Pekerjaan</th>
164
+                            <th class="text-xs px-4 py-5">Keluasan (Ekar)</th>
165
+                        </tr>
166
+                    </thead>
167
+                    <tbody>
168
+                        @foreach ($commitedDDIProject as $index => $project)
169
+                            <tr>
170
+                                <td class="px-4 py-2">{{ $index + 1 }}</td>
171
+                                <td class="px-4 py-2">{{ $project['company_name'] }}</td>
172
+                                <td class="px-4 py-2">{{ $project['type'] }}
173
+                                </td>
174
+                                <td class="px-4 py-2 text-center">
175
+                                    @switch($project['status'])
176
+                                        @case(1)
177
+                                            <div class="px-3 py-1 text-xs rounded-lg border inline-block"
178
+                                                style="color:#E5A20A; background-color:#FFFBF4; border-color:#E5A20A;width:100%">
179
+                                                Perjanjian Muktamad
180
+                                            </div>
181
+                                        @break
182
+
183
+                                        @case(0)
184
+                                            <div class="px-3 py-1 text-xs rounded-lg border inline-block"
185
+                                                style="color:#49B452; background-color:#F7FFF7; border-color:#49B452; width:100%">
186
+                                                Deraf Perjanjian
187
+                                            </div>
188
+                                        @break
189
+
190
+                                        <div></div>
191
+
192
+                                        @default
193
+                                    @endswitch
194
+                                </td>
195
+                                <td class="px-4 py-2 text-xs">{{ $project['note'] }}</td>
196
+                                <td class="px-4 py-2 text-xs">{{ $project['moa_date'] }}</td>
197
+                                <td class="px-4 py-2 text-xs">{{ $project['area'] }}</td>
198
+                                <td class="px-4 py-2 text-xs">{{ number_format($project['invesment_approx'], 2) }}</td>
199
+                                <td class="px-4 py-2 text-xs">{{ $project['labour_approx'] }}</td>
200
+                                @if ($project['land_area'])
201
+                                    <td class="px-4 py-2 text-xs">{{ number_format($project['land_area'], 2) }}</td>
202
+                                @else
203
+                                    <td class="px-4 py-2 text-xs"><span class="text-md font-bold">TBC</span></td>
204
+                                @endif
205
+                            </tr>
206
+                        @endforeach
207
+                    </tbody>
208
+                </table>
209
+            </div>
210
+            <div class="bg-[#F8F8F8] p-5">
211
+                <h3 class="text-xs font-bold">JUMLAH DDI: <span class="ms-4">{{ number_format($FDI_amt, 2) }}</span>
212
+                </h3>
213
+            </div>
214
+        </div>
215
+
216
+        <button
217
+            class="bg-[#012961] hover:bg-blue-700 text-white font-semibold w-fit text-xs py-2 px-4 rounded-lg shadow-md transition duration-200 ml-auto">
218
+            <i class="fa-solid fa-download text-white text-xs"></i>
219
+            <span>Simpan</span>
220
+        </button>
221
+
222
+        <div class="border rounded p-5">
223
+
224
+            <h5 class="font-semibold mb-4">Rekod Penetapan KPI Pelaburan</h5>
225
+            <p class="text-xs font-bold">YB Dato’ Pengerusi memohon agar sasaran adalah melebihi sasaran tahun 2024: <span
226
+                    class="text-[#BD8736]">DEADLINE, 2 WEEK from JPPP MEETING.</span></p>
227
+            <p class="text-xs font-bold">15-04-2025 | Jumlah Pelaburan Komited telah dikemaskini berdasarkan data yang diisi
228
+                oleh S-GLC. Jumlah pelaburan komited berjumlah RM 2,000,333.00.</p>
229
+
230
+        </div>
231
+
232
+    </div>
233
+@endsection
234
+
235
+@section('scripts')
236
+@endsection

+ 298
- 1
routes/web.php Näytä tiedosto

@@ -3,5 +3,302 @@
3 3
 use Illuminate\Support\Facades\Route;
4 4
 
5 5
 Route::get('/', function () {
6
-    return view('home');
6
+
7
+    $rekodKPIPelaburan = [
8
+        [
9
+            'id' => 1,
10
+            'name' => 'Perbadanan Kemajuan Negeri Pahang (PKNP)',
11
+            'investment_target' => 2000897,
12
+            'investment_target_setting' => 2000897,
13
+        ],
14
+        [
15
+            'id' => 2,
16
+            'name' => 'Perbadanan Pertanian Negeri Pahang (PKPP)',
17
+            'investment_target' => 2000897,
18
+            'investment_target_setting' => 2000897,
19
+        ],
20
+        [
21
+            'id' => 3,
22
+            'name' => 'Perbadanan Setiausaha Kerajaan Pahang (PSK)',
23
+            'investment_target' => 2000897,
24
+            'investment_target_setting' => 2000897,
25
+        ],
26
+        [
27
+            'id' => 4,
28
+            'name' => 'Pahang Corporations Sdn. Bhd',
29
+            'investment_target' => 2000897,
30
+            'investment_target_setting' => 2000897,
31
+        ],
32
+        [
33
+            'id' => 5,
34
+            'name' => 'East Coast Development Region Council (ECERDC)',
35
+            'investment_target' => 2000897,
36
+            'investment_target_setting' => 2000897,
37
+        ],
38
+        [
39
+            'id' => 6,
40
+            'name' => 'Yayasan Pahang',
41
+            'investment_target' => 2000897,
42
+            'investment_target_setting' => 2000897,
43
+        ],
44
+        [
45
+            'id' => 7,
46
+            'name' => 'TGA Solutions',
47
+            'investment_target' => 2000897,
48
+            'investment_target_setting' => 2000897,
49
+        ],
50
+        [
51
+            'id' => 8,
52
+            'name' => 'UNIPSAS',
53
+            'investment_target' => 2000897,
54
+            'investment_target_setting' => 2000897,
55
+        ]
56
+    ];
57
+
58
+    $status = [
59
+        [
60
+            'name' => 'Deraf Perjanjian',
61
+            'percent' => "38"
62
+        ],
63
+        [
64
+            'name' => 'Dalam Tindakan/Rundingan Kertas Kerja',
65
+            'percent' => "18"
66
+        ],
67
+        [
68
+            'name' => 'Penyediaan Kertas BOD',
69
+            'percent' => "9"
70
+        ],
71
+        [
72
+            'name' => 'Project Syarikat',
73
+            'percent' => "24"
74
+        ],
75
+        [
76
+            'name' => 'Penilaian JK Pelaburan',
77
+            'percent' => "21"
78
+        ],
79
+        [
80
+            'name' => 'Perjanjian Muktamad',
81
+            'percent' => "42"
82
+        ]
83
+    ];
84
+
85
+    return view('home', compact('rekodKPIPelaburan', 'status'));
86
+});
87
+
88
+Route::get('/agency', function () {
89
+
90
+    $agencys = [
91
+        [
92
+            "id" => 1,
93
+            "name" => "Perbadanan Kemajuan Negeri Pahang (PKNP)",
94
+            "active_count" => 23,
95
+            "status" => 2,
96
+        ],
97
+        [
98
+            "id" => 2,
99
+            "name" => "Perbadanan Pertanian Negeri Pahang (PKPP)",
100
+            "active_count" => 45,
101
+            "status" => 1,
102
+        ],
103
+        [
104
+            "id" => 3,
105
+            "name" => "Perbadanan Setiausaha Kerajaan Pahang (PSK)",
106
+            "active_count" => 21,
107
+            "status" => 3,
108
+        ],
109
+        [
110
+            "id" => 4,
111
+            "name" => "Pahang Corporations Sdn. Bhd",
112
+            "active_count" => 77,
113
+            "status" => 2,
114
+        ],
115
+        [
116
+            "id" => 5,
117
+            "name" => "Perbadanan Kemajuan Cameron Highlands (PKCH)",
118
+            "active_count" => 53,
119
+            "status" => 1,
120
+        ],
121
+        [
122
+            "id" => 6,
123
+            "name" => "Pahang Mining Corporations Sdn. Bhd",
124
+            "active_count" => 56,
125
+            "status" => 3,
126
+        ],
127
+        [
128
+            "id" => 7,
129
+            "name" => "East Coast Development Region Council (ECERDC)",
130
+            "active_count" => 32,
131
+            "status" => 2,
132
+        ],
133
+        [
134
+            "id" => 8,
135
+            "name" => "Yayasan Pahang",
136
+            "active_count" => 234,
137
+            "status" => 1,
138
+        ],
139
+        [
140
+            "id" => 9,
141
+            "name" => "TGA Solutions",
142
+            "active_count" => 90,
143
+            "status" => 3,
144
+        ],
145
+        [
146
+            "id" => 10,
147
+            "name" => "UNIPSAS",
148
+            "active_count" => 32,
149
+            "status" => 2,
150
+        ]
151
+    ];
152
+
153
+    return view('agency', compact('agencys'));
154
+});
155
+
156
+Route::get('/project', function () {
157
+
158
+    $comittedFDIProject = [
159
+        [
160
+            "id" => 1,
161
+            "company_name" => "Fire Phoenix International",
162
+            "type" => "Data Center",
163
+            "status" => 1,
164
+            "note" => "Dalam Proses Submit",
165
+            "moa_date" => "22-02-2025",
166
+            "area" => "Gambang",
167
+            "invesment_approx" => 100000000,
168
+            "labour_approx" => 50,
169
+            "land_area" => 4757
170
+        ],
171
+        [
172
+            "id" => 2,
173
+            "company_name" => "Lestari Angkasa Sdn Bhd",
174
+            "type" => "International Space Port",
175
+            "status" => 0,
176
+            "note" => "Loi Ditandatangani pada 14-03-2025",
177
+            "moa_date" => "22-02-2025",
178
+            "area" => "Pekan",
179
+            "invesment_approx" => 100000000,
180
+            "labour_approx" => 50,
181
+            "land_area" => null
182
+        ]
183
+    ];
184
+
185
+    $commitedDDIProject = [
186
+        [
187
+            "id" => 1,
188
+            "company_name" => "Kicap Bentong Sdn. Bhd (Jualan)",
189
+            "type" => "Kilang Memproses Kicap (Pembesaran)",
190
+            "status" => 0,
191
+            "note" => "Dalam Proses Submit",
192
+            "moa_date" => "",
193
+            "area" => "Kawasan Perindustrian Bentong",
194
+            "invesment_approx" => 100000000,
195
+            "labour_approx" => 50,
196
+            "land_area" => 2
197
+        ],
198
+        [
199
+            "id" => 2,
200
+            "company_name" => "Advanced Achieve Property Management Sdn. Bhd",
201
+            "type" => "International Space Port",
202
+            "status" => 1,
203
+            "note" => "Dalam Proses Pindahan",
204
+            "moa_date" => "",
205
+            "area" => "KP Gebeng 1",
206
+            "invesment_approx" => 100000000,
207
+            "labour_approx" => 50,
208
+            "land_area" => 1.74
209
+        ],
210
+        [
211
+            "id" => 3,
212
+            "company_name" => "BH Setia Sdn Bhd (Jualan IKS)",
213
+            "type" => "Data Center",
214
+            "status" => 1,
215
+            "note" => "Proses Dalam Pindahan",
216
+            "moa_date" => "22-02-2025",
217
+            "area" => "KP Gebeng 2",
218
+            "invesment_approx" => 100000000,
219
+            "labour_approx" => 50,
220
+            "land_area" => 2.046
221
+        ],
222
+        [
223
+            "id" => 4,
224
+            "company_name" => "Gading Senggara Property (Pajakan)",
225
+            "type" => "International Space Port",
226
+            "status" => 0,
227
+            "note" => "Dalam Proses Memuktamadkan Perjanjian",
228
+            "moa_date" => "",
229
+            "area" => "KP Gebeng 3",
230
+            "invesment_approx" => 100000000,
231
+            "labour_approx" => 50,
232
+            "land_area" => 152
233
+        ]
234
+    ];
235
+
236
+    return view('project', compact('comittedFDIProject', 'commitedDDIProject'));
237
+});
238
+
239
+Route::get('/agency_performance', function(){
240
+    $agencys = [
241
+        [
242
+            "id" => 1,
243
+            "name" => "Perbadanan Kemajuan Negeri Pahang (PKNP)",
244
+            "company_name" => "Fire Phoenix International",
245
+            "percent" => 45,
246
+        ],
247
+        [
248
+            "id" => 2,
249
+            "name" => "Perbadanan Pertanian Negeri Pahang (PKPP)",
250
+            "company_name" => "Lestari Angkasa Sdn. Bhd.",
251
+            "percent" => 66,
252
+        ],
253
+        [
254
+            "id" => 3,
255
+            "name" => "Perbadanan Setiausaha Kerajaan Pahang (PSK)",
256
+            "company_name" => "Fire Phoenix International",
257
+            "percent" => 15,
258
+        ],
259
+        [
260
+            "id" => 4,
261
+            "name" => "Pahang Corporations Sdn. Bhd",
262
+            "company_name" => "Lestari Angkasa Sdn. Bhd.",
263
+            "percent" => 45,
264
+        ],
265
+        [
266
+            "id" => 5,
267
+            "name" => "Perbadanan Kemajuan Cameron Highlands (PKCH)",
268
+            "company_name" => "Fire Phoenix International",
269
+            "percent" => 66,
270
+        ],
271
+        [
272
+            "id" => 6,
273
+            "name" => "Pahang Mining Corporations Sdn. Bhd",
274
+            "company_name" => "Lestari Angkasa Sdn. Bhd.",
275
+            "percent" => 15,
276
+        ],
277
+        [
278
+            "id" => 7,
279
+            "name" => "East Coast Development Region Council (ECERDC)",
280
+            "company_name" => "Fire Phoenix International",
281
+            "percent" => 45,
282
+        ],
283
+        [
284
+            "id" => 8,
285
+            "name" => "Yayasan Pahang",
286
+            "company_name" => "Lestari Angkasa Sdn. Bhd.",
287
+            "percent" => 66,
288
+        ],
289
+        [
290
+            "id" => 9,
291
+            "name" => "TGA Solutions",
292
+            "company_name" => "Fire Phoenix International",
293
+            "percent" => 15,
294
+        ],
295
+        [
296
+            "id" => 10,
297
+            "name" => "UNIPSAS",
298
+            "company_name" => "Lestari Angkasa Sdn. Bhd.",
299
+            "percent" => 45,
300
+        ]
301
+    ];
302
+
303
+    return view('agency_performance', compact('agencys'));
7 304
 });

Loading…
Peruuta
Tallenna