aboutsummaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
authorFrankie B <git@diskfloppy.me>2023-07-20 03:33:04 +0100
committerFrankie B <git@diskfloppy.me>2023-07-20 03:33:04 +0100
commit690ea377fe20512e06a78a93fde72ac372769a85 (patch)
tree3d3096e922b259f282cbbe16787d6ca0956106a9 /resources
parent50a8b45625b7d27a498abfb22cc0c9e16b262bd6 (diff)
Add IP to guestbook admin page
Diffstat (limited to 'resources')
-rw-r--r--resources/views/pages/admin/guestbook.blade.php3
1 files changed, 2 insertions, 1 deletions
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 @@
<tr>
<td>
Name:&nbsp;{{ $entry->name }}<br/>
+ IP:&nbsp;&nbsp;&nbsp;{{ $entry->ip_address }}<br/>
Date:&nbsp;{{ gmdate("H:i:s - Y-m-d", $entry->timestamp) }}
</td>
<td class="gb_del">