From 8089475535f0435b8a15762cfcefae07e37cce8c Mon Sep 17 00:00:00 2001 From: Tim Slager Date: Thu, 18 Jan 2024 14:31:09 +0100 Subject: [PATCH 1/4] Fix: Fixed the admin layout. --- .../vue/components/admin/Siderbar.vue | 74 +++++ src/resources/vue/layouts/admin-layout.vue | 64 +--- src/resources/vue/pages/admin/index.vue | 287 +++++++++--------- 3 files changed, 225 insertions(+), 200 deletions(-) create mode 100644 src/resources/vue/components/admin/Siderbar.vue diff --git a/src/resources/vue/components/admin/Siderbar.vue b/src/resources/vue/components/admin/Siderbar.vue new file mode 100644 index 0000000..89ea380 --- /dev/null +++ b/src/resources/vue/components/admin/Siderbar.vue @@ -0,0 +1,74 @@ + + + + diff --git a/src/resources/vue/layouts/admin-layout.vue b/src/resources/vue/layouts/admin-layout.vue index 9f4e87b..f1746c7 100644 --- a/src/resources/vue/layouts/admin-layout.vue +++ b/src/resources/vue/layouts/admin-layout.vue @@ -1,67 +1,19 @@ + \ No newline at end of file +} + From 3d4f65cdf14e0e96ac68110e936ada6ce696efbf Mon Sep 17 00:00:00 2001 From: Chris Friemann Date: Wed, 17 Jan 2024 14:47:48 +0100 Subject: [PATCH 2/4] feat: return page with mock data --- src/app/Http/Controllers/AdminController.php | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/src/app/Http/Controllers/AdminController.php b/src/app/Http/Controllers/AdminController.php index fe59c20..e292d35 100644 --- a/src/app/Http/Controllers/AdminController.php +++ b/src/app/Http/Controllers/AdminController.php @@ -9,6 +9,24 @@ class AdminController extends Controller { public function index() { - return Inertia::render('admin/index'); + return Inertia::render('admin/index', [ + 'userData' => [ + 'name' => 'John Doe', + ], + 'count' => [ + 'items' => 10, + 'customers' => 20, + 'reservations' => 30, + 'invoices' => 40, + ], + 'chart1' => [ + 'labels' => ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug'], + 'series' => [1, 2, 3, 4, 5, 6, 7, 8] + ], + 'chart2' => [ + 'labels' => ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug'], + 'series' => [0, 1, 2, 3, 4, 5, 6, 7] + ], + ]); } } From e0ad061068195c31ec82cdc497827f8ab565fd68 Mon Sep 17 00:00:00 2001 From: Chris Friemann Date: Wed, 17 Jan 2024 14:55:01 +0100 Subject: [PATCH 3/4] feat: adminpage, datamapping the mock data --- src/resources/vue/pages/admin/index.vue | 158 ++++++++++++++++++------ 1 file changed, 118 insertions(+), 40 deletions(-) diff --git a/src/resources/vue/pages/admin/index.vue b/src/resources/vue/pages/admin/index.vue index 163f042..3126519 100644 --- a/src/resources/vue/pages/admin/index.vue +++ b/src/resources/vue/pages/admin/index.vue @@ -1,37 +1,38 @@