diff --git a/resources/views/livewire/plugins/recipe.blade.php b/resources/views/livewire/plugins/recipe.blade.php index c62335e..9fd318e 100644 --- a/resources/views/livewire/plugins/recipe.blade.php +++ b/resources/views/livewire/plugins/recipe.blade.php @@ -1,6 +1,7 @@ fillformFields(); + $this->data_payload_updated_at = $this->plugin->data_payload_updated_at; } public function fillFormFields(): void @@ -114,8 +117,12 @@ new class extends Component { ->get($this->plugin->polling_url) ->json(); - $this->plugin->update(['data_payload' => $response]); + $this->plugin->update([ + 'data_payload' => $response, + 'data_payload_updated_at' => now() + ]); $this->data_payload = json_encode($response, JSON_PRETTY_PRINT); + $this->data_payload_updated_at = now(); } } @@ -512,7 +519,9 @@ HTML;
- Data Payload + {{ $this->data_payload_updated_at?->diffForHumans() ?? 'Never' }} +