From 564043b20e57af91ab81e100d7ab7d2c3664d609 Mon Sep 17 00:00:00 2001 From: Roardom Date: Sat, 25 May 2024 13:09:02 +0000 Subject: [PATCH] add: updated timestamp to user notes panel --- app/Http/Livewire/UserNotes.php | 5 +++-- resources/views/livewire/user-notes.blade.php | 9 +++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/app/Http/Livewire/UserNotes.php b/app/Http/Livewire/UserNotes.php index fedb3e2074..ef0b055f9e 100644 --- a/app/Http/Livewire/UserNotes.php +++ b/app/Http/Livewire/UserNotes.php @@ -119,8 +119,9 @@ final public function update(int $id): void $this->validateOnly('messages.*'); Note::whereKey($id)->update([ - 'staff_id' => auth()->id(), - 'message' => $this->messages[$id], + 'staff_id' => auth()->id(), + 'message' => $this->messages[$id], + 'updated_at' => now(), ]); $this->dispatch('success', type: 'success', message: 'Note has successfully been updated!'); diff --git a/resources/views/livewire/user-notes.blade.php b/resources/views/livewire/user-notes.blade.php index 51a70cc939..704ac7f2f2 100644 --- a/resources/views/livewire/user-notes.blade.php +++ b/resources/views/livewire/user-notes.blade.php @@ -49,6 +49,7 @@ class="form__button form__button--outlined" {{ __('common.staff') }} {{ __('user.note') }} {{ __('user.created-on') }} + {{ __('torrent.updated_at') }} {{ __('common.action') }} @@ -67,6 +68,14 @@ class="form__button form__button--outlined" {{ $note->created_at->diffForHumans() }} + + +