@extends('layouts.default') @section('title', 'guestbook') @section('content')
@csrf
{{ $errors->first('name') }}
{{ $errors->first('message') }}

You can submit an entry once every hour.

Your IP address will be logged but will not be publically displayed.


@php $entries = DB::select('SELECT 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) }}

{{ htmlspecialchars($entry->message) }}
@endforeach @stop