From f5bfe96ac84cdb8f5ebf216375e9b866c73073d6 Mon Sep 17 00:00:00 2001 From: Yuri Dimas Date: Thu, 23 Oct 2025 22:04:02 +0700 Subject: [PATCH] style: add area dinas & page dashboard --- .../Dinas/Controllers/DashboardController.cs | 13 + Areas/Dinas/Views/Dashboard/Index.cshtml | 171 +++++++ Areas/Dinas/Views/_ViewImports.cshtml | 2 + Areas/Dinas/Views/_ViewStart.cshtml | 3 + Areas/Shared/Layouts/App/_Sidebar.cshtml | 422 +++++++++++------- BankSampahApp.csproj | 2 + 6 files changed, 442 insertions(+), 171 deletions(-) create mode 100644 Areas/Dinas/Controllers/DashboardController.cs create mode 100644 Areas/Dinas/Views/Dashboard/Index.cshtml create mode 100644 Areas/Dinas/Views/_ViewImports.cshtml create mode 100644 Areas/Dinas/Views/_ViewStart.cshtml diff --git a/Areas/Dinas/Controllers/DashboardController.cs b/Areas/Dinas/Controllers/DashboardController.cs new file mode 100644 index 0000000..db691dc --- /dev/null +++ b/Areas/Dinas/Controllers/DashboardController.cs @@ -0,0 +1,13 @@ +using Microsoft.AspNetCore.Mvc; + +namespace BankSampahApp.Areas.Dinas.Controllers +{ + [Area("Dinas")] + public class DashboardController : Controller + { + public IActionResult Index() + { + return View(); + } + } +} diff --git a/Areas/Dinas/Views/Dashboard/Index.cshtml b/Areas/Dinas/Views/Dashboard/Index.cshtml new file mode 100644 index 0000000..ecaab52 --- /dev/null +++ b/Areas/Dinas/Views/Dashboard/Index.cshtml @@ -0,0 +1,171 @@ +@{ + ViewData["Title"] = "Dashboard"; +} + +
+
+ Dashboard Dinas +
+
+ +
+ +
+
+ Selamat Datang + Admin Dimas +
+
+ +
+ +
+
+
+
+ +
+
+
+ Total BSI + 1203 Unit +
+
+
+
+ Sudah Verifikasi + 145 Unit +
+
+ Belum Verifikasi + 5432 Unit +
+
+
+
+
+
+
+
+ +
+
+
+ Total BSU + 1203 Unit +
+
+
+
+ Sudah Aktif + 145 Unit +
+
+ Belum Aktif + 5432 Unit +
+
+ Ditolak + 5432 Unit +
+
+
+
+
+
+
+
+ +
+
+
+ Total Offtaker + 39 Unit +
+
+
+
+ Sudah Aktif + 145 Unit +
+
+ Belum Aktif + 5432 Unit +
+
+ Ditolak + 5432 Unit +
+
+
+
+
+
+
+
+ +
+
+
+ Total Nasabah + 2780 Unit +
+
+
+
+ Sudah Aktif + 145 Unit +
+
+ Belum Aktif + 5432 Unit +
+
+
+
+
+
+ +
+ +
+
+
+
Total Sampah BSI
+
5,812 Kg
+
+ + + 40% + + vs bulan kemarin +
+
+
+
+
+
Total Sampah BSU
+
5,812 Kg
+
+ + + 40% + + vs bulan kemarin +
+
+
+
+
+
Total Sampah Offtaker
+
89.4 Kg
+
+ + + 40% + + vs bulan kemarin +
+
+
+
\ No newline at end of file diff --git a/Areas/Dinas/Views/_ViewImports.cshtml b/Areas/Dinas/Views/_ViewImports.cshtml new file mode 100644 index 0000000..7c4f6f4 --- /dev/null +++ b/Areas/Dinas/Views/_ViewImports.cshtml @@ -0,0 +1,2 @@ +@using BankSampahApp +@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers \ No newline at end of file diff --git a/Areas/Dinas/Views/_ViewStart.cshtml b/Areas/Dinas/Views/_ViewStart.cshtml new file mode 100644 index 0000000..4cf0c1a --- /dev/null +++ b/Areas/Dinas/Views/_ViewStart.cshtml @@ -0,0 +1,3 @@ +@{ + Layout = "/Areas/Shared/Layouts/App/_Layout.cshtml"; +} diff --git a/Areas/Shared/Layouts/App/_Sidebar.cshtml b/Areas/Shared/Layouts/App/_Sidebar.cshtml index 1d0715d..f47d255 100644 --- a/Areas/Shared/Layouts/App/_Sidebar.cshtml +++ b/Areas/Shared/Layouts/App/_Sidebar.cshtml @@ -1,9 +1,8 @@  - diff --git a/BankSampahApp.csproj b/BankSampahApp.csproj index dd62b0f..75640d1 100644 --- a/BankSampahApp.csproj +++ b/BankSampahApp.csproj @@ -37,6 +37,8 @@ + +