From 690ea377fe20512e06a78a93fde72ac372769a85 Mon Sep 17 00:00:00 2001 From: Frankie B Date: Thu, 20 Jul 2023 03:33:04 +0100 Subject: [PATCH] Add IP to guestbook admin page --- resources/views/pages/admin/guestbook.blade.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/views/pages/admin/guestbook.blade.php b/resources/views/pages/admin/guestbook.blade.php index ec870bb..1480ea9 100644 --- a/resources/views/pages/admin/guestbook.blade.php +++ b/resources/views/pages/admin/guestbook.blade.php @@ -3,7 +3,7 @@ @section('content') @php $entries = DB::select(' - SELECT id, name, timestamp, message + SELECT id, name, timestamp, message, ip_address FROM guestbook__entries ORDER BY id DESC '); @@ -14,6 +14,7 @@ Name: {{ $entry->name }}
+ IP:   {{ $entry->ip_address }}
Date: {{ gmdate("H:i:s - Y-m-d", $entry->timestamp) }}