diff --git a/app/Http/Controllers/DashboardRplController.php b/app/Http/Controllers/DashboardRplController.php
index 7991693..e12937e 100644
--- a/app/Http/Controllers/DashboardRplController.php
+++ b/app/Http/Controllers/DashboardRplController.php
@@ -90,6 +90,19 @@ public function index(Request $request)
$persentaseLearning = $totalAktivitas > 0 ? ($jumlahDataLearning / $totalAktivitas) * 100 : 0;
$persentaseProject = $totalAktivitas > 0 ? ($jumlahDataProject / $totalAktivitas) * 100 : 0;
+ $chartData = [
+ 'labels' => ['Learning', 'Project'],
+ 'datasets' => [
+ [
+ 'data' => [$persentaseLearning, $persentaseProject],
+ 'backgroundColor' => ['#FF9F43', '#42A5F5'],
+ 'hoverBackgroundColor' => ['#FF7043', '#1E88E5']
+ ]
+ ]
+ ];
+
+ $activityData = $jumlahAktivitasLearning;
+
return view('dashboardrpl', compact(
'jumlahDataProject',
'jumlahDataLearning',
@@ -97,7 +110,10 @@ public function index(Request $request)
'persentaseLearning',
'persentaseProject',
'aktivitasNames',
- 'siswaData'
+ 'siswaData',
+ 'chartData',
+ 'activityData'
));
+
}
}
diff --git a/resources/views/dashboard_siswa.blade.php b/resources/views/dashboard_siswa.blade.php
index 24416fe..8e4ddbc 100644
--- a/resources/views/dashboard_siswa.blade.php
+++ b/resources/views/dashboard_siswa.blade.php
@@ -5,13 +5,15 @@