diff --git a/app/Http/Controllers/PenilaianController.php b/app/Http/Controllers/PenilaianController.php
index 0013891..1599ac8 100644
--- a/app/Http/Controllers/PenilaianController.php
+++ b/app/Http/Controllers/PenilaianController.php
@@ -536,7 +536,7 @@
$filteredRecords = $query->count();
// Ambil data dengan relasi
- $data = $query->with(['user', 'debiture', 'branch', 'tujuanPenilaian', 'region.teams.teamsUsers'])->get();
+ $data = $query->with(['user', 'debiture', 'branch', 'tujuanPenilaian', 'approveSo'])->get();
// Hitung jumlah halaman
diff --git a/app/Models/Permohonan.php b/app/Models/Permohonan.php
index eac4ad8..0ed5c0a 100644
--- a/app/Models/Permohonan.php
+++ b/app/Models/Permohonan.php
@@ -193,4 +193,16 @@
public function approveBayar(){
return $this->belongsTo(User::class, 'approve_bayar_by', 'id');
}
+
+ public function approveEo(){
+ return $this->belongsTo(User::class, 'approval_eo', 'id');
+ }
+
+ public function approveDd(){
+ return $this->belongsTo(User::class, 'approval_dd', 'id');
+ }
+
+ public function approveSo(){
+ return $this->belongsTo(User::class, 'approval_so', 'id');
+ }
}
diff --git a/resources/views/penilaian/otorisator/index.blade.php b/resources/views/penilaian/otorisator/index.blade.php
index 282d63a..1b0b790 100644
--- a/resources/views/penilaian/otorisator/index.blade.php
+++ b/resources/views/penilaian/otorisator/index.blade.php
@@ -8,8 +8,8 @@
+ data-datatable-state-save="false" id="permohonan-table"
+ data-api-url="{{ route('otorisator.datatables', ['otorisator' => $header]) }}">