diff --git a/Views/Lokasi/Index.cshtml b/Views/Lokasi/Index.cshtml
index 54c7b42..58302ec 100644
--- a/Views/Lokasi/Index.cshtml
+++ b/Views/Lokasi/Index.cshtml
@@ -16,11 +16,11 @@
Profil Rw
-
+
@@ -192,4 +192,22 @@
console.log('Detail clicked for ID:', id);
});
});
+
+
+ // Toggle "Tambah" button visibility based on active tab
+ const toggleTambahButton = () => {
+ const active = $('input[name="tab_profil_rw"]:checked').attr('aria-label');
+ if (active === "Lokasi TP3SR & Parkir Pengumpulan Sampah") {
+ $('#btn-tambah').show();
+ } else {
+ $('#btn-tambah').hide();
+ }
+ };
+
+ // initial check
+ toggleTambahButton();
+
+ // bind change event
+ $('input[name="tab_profil_rw"]').on('change', toggleTambahButton);
+