From 7c16dc53b55aa50d6c9ac0bdea2f51fbbf2b20b0 Mon Sep 17 00:00:00 2001 From: Frankie B Date: Sun, 16 Jul 2023 21:02:51 +0100 Subject: feat: site admin (#8) --- resources/views/pages/admin/guestbook.blade.php | 27 +++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 resources/views/pages/admin/guestbook.blade.php (limited to 'resources/views/pages/admin/guestbook.blade.php') diff --git a/resources/views/pages/admin/guestbook.blade.php b/resources/views/pages/admin/guestbook.blade.php new file mode 100644 index 0000000..56323ef --- /dev/null +++ b/resources/views/pages/admin/guestbook.blade.php @@ -0,0 +1,27 @@ +@extends('layouts.default-admin') +@section('title', 'guestbook') +@section('content') + @php + $entries = DB::select('SELECT id, name, timestamp, message FROM guestbook_entries ORDER BY id DESC'); + @endphp +

Entries ({{ count($entries) }} total)

+ @foreach ($entries as $entry) + + + + + + + +
+ Name: {{ $entry->name }}
+ Date: {{ gmdate("H:i:s - Y-m-d", $entry->timestamp) }} +
+ del +
+
+ {{ htmlspecialchars($entry->message) }} +
+ @endforeach +@stop + -- cgit v1.2.3-54-g00ecf