diff --git a/Livewire/Branch/BranchModal.php b/Livewire/Branch/BranchModal.php index a4b34d7..790b180 100644 --- a/Livewire/Branch/BranchModal.php +++ b/Livewire/Branch/BranchModal.php @@ -71,6 +71,8 @@ { $branch = Branch::find($id); + $branch->delete_by = auth()->user()->id; + $branch->deleted_at = now(); $approval = [ 'method' => 'delete', diff --git a/Livewire/Currency/CurrencyModal.php b/Livewire/Currency/CurrencyModal.php index 4acb07b..a275bc2 100644 --- a/Livewire/Currency/CurrencyModal.php +++ b/Livewire/Currency/CurrencyModal.php @@ -70,6 +70,8 @@ public function delete($id) { $curency = Currency::find($id); + $curency->delete_by = auth()->user()->id; + $curency->deleted_at = now(); $approval = [ 'method' => 'delete', diff --git a/Livewire/Debitur/DebiturModal.php b/Livewire/Debitur/DebiturModal.php index 4c1ab6b..7006a9e 100644 --- a/Livewire/Debitur/DebiturModal.php +++ b/Livewire/Debitur/DebiturModal.php @@ -88,6 +88,8 @@ public function delete($id) { $debitur = Debitur::find($id); + $debitur->delete_by = auth()->user()->id; + $debitur->deleted_at = now(); $approval = [ 'method' => 'delete', diff --git a/Livewire/DetailJaminan/DetailJaminanModal.php b/Livewire/DetailJaminan/DetailJaminanModal.php index 81727e1..dad7ed0 100644 --- a/Livewire/DetailJaminan/DetailJaminanModal.php +++ b/Livewire/DetailJaminan/DetailJaminanModal.php @@ -88,6 +88,8 @@ public function delete($id) { $detailjaminan = DetailJaminan::find($id); + $detailjaminan->delete_by = auth()->user()->id; + $detailjaminan->deleted_at = now(); $approval = [ 'method' => 'delete', diff --git a/Livewire/DetailPembayaran/DetailPembayaranModal.php b/Livewire/DetailPembayaran/DetailPembayaranModal.php index 3ffa8b9..f4072ac 100644 --- a/Livewire/DetailPembayaran/DetailPembayaranModal.php +++ b/Livewire/DetailPembayaran/DetailPembayaranModal.php @@ -85,6 +85,8 @@ public function delete($id) { $detailpembayaran = DetailPembayaran::find($id); + $detailpembayaran->delete_by = auth()->user()->id; + $detailpembayaran->deleted_at = now(); $approval = [ 'method' => 'delete', diff --git a/Livewire/DetailPenagihan/DetailPenagihanModal.php b/Livewire/DetailPenagihan/DetailPenagihanModal.php index 24ac8bd..011579b 100644 --- a/Livewire/DetailPenagihan/DetailPenagihanModal.php +++ b/Livewire/DetailPenagihan/DetailPenagihanModal.php @@ -95,6 +95,8 @@ { // Emit a success event with a message $detailpenagihan = DetailPenagihan::find($id); + $detailpenagihan->delete_by = auth()->user()->id; + $detailpenagihan->deleted_at = now(); $approval = [ 'method' => 'delete', diff --git a/Livewire/DetailSubrogasiJamkrindo/DetailSubrogasiJamkrindoModal.php b/Livewire/DetailSubrogasiJamkrindo/DetailSubrogasiJamkrindoModal.php index 1ee4630..0d672b7 100644 --- a/Livewire/DetailSubrogasiJamkrindo/DetailSubrogasiJamkrindoModal.php +++ b/Livewire/DetailSubrogasiJamkrindo/DetailSubrogasiJamkrindoModal.php @@ -96,6 +96,8 @@ { // Emit a success event with a message $detailsubrogasi = DetailSubrogasiJamkrindo::find($id); + $detailsubrogasi->delete_by = auth()->user()->id; + $detailsubrogasi->deleted_at = now(); $approval = [ 'method' => 'delete', diff --git a/Livewire/FacilityType/FacilityTypeModal.php b/Livewire/FacilityType/FacilityTypeModal.php index 7e3a03e..6a89afe 100644 --- a/Livewire/FacilityType/FacilityTypeModal.php +++ b/Livewire/FacilityType/FacilityTypeModal.php @@ -70,6 +70,8 @@ public function delete($id) { $facility = FacilityType::find($id); + $facility->delete_by = auth()->user()->id; + $facility->deleted_at = now(); $approval = [ 'method' => 'delete', diff --git a/Livewire/GuaranteeType/GuaranteeTypeModal.php b/Livewire/GuaranteeType/GuaranteeTypeModal.php index b40d774..1f76ccc 100644 --- a/Livewire/GuaranteeType/GuaranteeTypeModal.php +++ b/Livewire/GuaranteeType/GuaranteeTypeModal.php @@ -70,6 +70,8 @@ public function delete($id) { $guarantee = GuaranteeType::find($id); + $guarantee->delete_by = auth()->user()->id; + $guarantee->deleted_at = now(); $approval = [ 'method' => 'delete', diff --git a/Livewire/HapusBuku/NomorPinjamanModal.php b/Livewire/HapusBuku/NomorPinjamanModal.php index be63d70..167a20d 100644 --- a/Livewire/HapusBuku/NomorPinjamanModal.php +++ b/Livewire/HapusBuku/NomorPinjamanModal.php @@ -49,6 +49,8 @@ public function delete($id) { $hapusbuku = HapusBuku::find($id); + $hapusbuku->delete_by = auth()->user()->id; + $hapusbuku->deleted_at = now(); $approval = [ 'method' => 'delete', diff --git a/Livewire/KlaimJamkrindo/KlaimJamkrindoModal.php b/Livewire/KlaimJamkrindo/KlaimJamkrindoModal.php index 87a000d..42bba14 100644 --- a/Livewire/KlaimJamkrindo/KlaimJamkrindoModal.php +++ b/Livewire/KlaimJamkrindo/KlaimJamkrindoModal.php @@ -109,6 +109,8 @@ { // Emit a success event with a message $klaimjamkrindo = KlaimJamkrindo::find($id); + $klaimjamkrindo->delete_by = auth()->user()->id; + $klaimjamkrindo->deleted_at = now(); $approval = [ 'method' => 'delete', diff --git a/Livewire/LoanType/LoanTypeModal.php b/Livewire/LoanType/LoanTypeModal.php index 6ccf549..4f6e73e 100644 --- a/Livewire/LoanType/LoanTypeModal.php +++ b/Livewire/LoanType/LoanTypeModal.php @@ -70,6 +70,8 @@ public function delete($id) { $loan = LoanType::find($id); + $loan->delete_by = auth()->user()->id; + $loan->deleted_at = now(); $approval = [ 'method' => 'delete', diff --git a/Livewire/Rekening/RekeningModal.php b/Livewire/Rekening/RekeningModal.php index f76d341..4962e0b 100644 --- a/Livewire/Rekening/RekeningModal.php +++ b/Livewire/Rekening/RekeningModal.php @@ -108,6 +108,8 @@ public function delete($id) { $rekening = Rekening::find($id); + $rekening->delete_by = auth()->user()->id; + $rekening->deleted_at = now(); $approval = [ 'method' => 'delete', diff --git a/Livewire/SubrogasiJamkrindo/SubrogasiJamkrindoModal.php b/Livewire/SubrogasiJamkrindo/SubrogasiJamkrindoModal.php index d1c2c99..bbc201d 100644 --- a/Livewire/SubrogasiJamkrindo/SubrogasiJamkrindoModal.php +++ b/Livewire/SubrogasiJamkrindo/SubrogasiJamkrindoModal.php @@ -155,6 +155,8 @@ public function delete($id) { $subrogasi = SubrogasiJamkrindo::find($id); + $subrogasi->delete_by = auth()->user()->id; + $subrogasi->deleted_at = now(); $approval = [ 'method' => 'delete',