@extends('layouts.default-admin') @section('title', 'Guestbook') @section('content') @php $entries = DB::select(' SELECT id, name, timestamp, message, ip_address FROM guestbook__entries ORDER BY id DESC '); @endphp

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

@foreach ($entries as $entry)
Name: {{ $entry->name }}
IP:   {{ $entry->ip_address }}
Date: {{ gmdate("H:i:s - Y-m-d", $entry->timestamp) }}
del

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