diff --git a/app/Enums/StatusKelengkapanPresisiEnum.php b/app/Enums/StatusKelengkapanPresisiEnum.php
new file mode 100644
index 00000000..9969252b
--- /dev/null
+++ b/app/Enums/StatusKelengkapanPresisiEnum.php
@@ -0,0 +1,79 @@
+ 'Tidak Lengkap',
+ self::LENGKAP_SEBAGIAN => 'Lengkap Sebagian',
+ self::DATA_LENGKAP => 'Data Lengkap',
+ default => 'Status Tidak Diketahui',
+ };
+ }
+
+ public static function getBadgeClass($value): string
+ {
+ return match ($value) {
+ self::DATA_LENGKAP => 'label-success',
+ self::LENGKAP_SEBAGIAN => 'label-warning',
+ self::TIDAK_LENGKAP => 'label-danger',
+ default => 'label-default',
+ };
+ }
+
+ public static function getAll(): array
+ {
+ return [
+ self::TIDAK_LENGKAP => 'Tidak Lengkap',
+ self::LENGKAP_SEBAGIAN => 'Lengkap Sebagian',
+ self::DATA_LENGKAP => 'Data Lengkap',
+ ];
+ }
+}
\ No newline at end of file
diff --git a/resources/views/components/filter-status-presisi.blade.php b/resources/views/components/filter-status-presisi.blade.php
new file mode 100644
index 00000000..b3681113
--- /dev/null
+++ b/resources/views/components/filter-status-presisi.blade.php
@@ -0,0 +1,8 @@
+
+
+
\ No newline at end of file
diff --git a/resources/views/data_pokok/agama/cetak.blade.php b/resources/views/data_pokok/agama/cetak.blade.php
index 06673ce1..11cc2ab1 100644
--- a/resources/views/data_pokok/agama/cetak.blade.php
+++ b/resources/views/data_pokok/agama/cetak.blade.php
@@ -16,8 +16,7 @@
NO
-
NIK
-
NOMOR KK
+
NIK
NAMA
AGAMA
FREKWENSI MENGIKUTI KEGIATAN KEAGAMAAN DALAM SETAHUN
@@ -35,31 +34,20 @@
const header = @include('layouts.components.header_bearer_api_gabungan');
$.ajax({
- url: `{{ config('app.databaseGabunganUrl') . '/api/v1/data-presisi/agama' }}?${filter}`,
+ url: `{{ config('app.databaseGabunganUrl') . '/api/v1/data-presisi/agama/rtm' }}?${filter}`,
headers: header,
method: 'get',
success: function(json) {
- var no = 1;
- // Transform the included array into an object
- const transformedIncluded = json.included.reduce((acc, item) => {
- if (!acc[item.type]) {
- acc[item.type] = {};
- }
- acc[item.type][item.id] = item.attributes;
- return acc;
- }, {});
+ var no = 1;
json.data.forEach(function(item) {
var row = `