@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