diff --git a/app/Http/Livewire/Common/Notifications/Recurring.php b/app/Http/Livewire/Common/Notifications/Recurring.php index 844ec5d02..9017eba60 100644 --- a/app/Http/Livewire/Common/Notifications/Recurring.php +++ b/app/Http/Livewire/Common/Notifications/Recurring.php @@ -69,7 +69,7 @@ class Recurring extends Component foreach ($notifications->items() as $key => $notification) { $data = (object) $notification->getAttribute('data'); - $item = Document::{$this->type}()->where('id', $data[ $this->type'_id'])->first(); + $item = Document::{$this->type}()->where('id', $data[$this->type . '_id'])->first(); $item->notification_id = $notification->getAttribute('id'); $items[] = $item; diff --git a/app/Http/Livewire/Common/Notifications/Reminder.php b/app/Http/Livewire/Common/Notifications/Reminder.php index eaceef8e7..cb3507308 100644 --- a/app/Http/Livewire/Common/Notifications/Reminder.php +++ b/app/Http/Livewire/Common/Notifications/Reminder.php @@ -69,7 +69,7 @@ class Reminder extends Component foreach ($notifications->items() as $key => $notification) { $data = (object) $notification->getAttribute('data'); - $item = Document::{$this->type}()->where('id', $data[ $this->type'_id'])->first(); + $item = Document::{$this->type}()->where('id', $data[$this->type . '_id'])->first(); $item->notification_id = $notification->getAttribute('id'); $items[] = $item;