aboutsummaryrefslogtreecommitdiff
path: root/resources/views/pages/admin
diff options
context:
space:
mode:
Diffstat (limited to 'resources/views/pages/admin')
-rw-r--r--resources/views/pages/admin/guestbook-del-confirm.blade.php33
-rw-r--r--resources/views/pages/admin/guestbook.blade.php32
-rw-r--r--resources/views/pages/admin/index.blade.php9
3 files changed, 0 insertions, 74 deletions
diff --git a/resources/views/pages/admin/guestbook-del-confirm.blade.php b/resources/views/pages/admin/guestbook-del-confirm.blade.php
deleted file mode 100644
index de920e0..0000000
--- a/resources/views/pages/admin/guestbook-del-confirm.blade.php
+++ /dev/null
@@ -1,33 +0,0 @@
-@extends('layouts.minimal')
-@section('title', 'Delete confirm')
-@section('content')
- <h1>Delete Confirmation</h1>
- <hr>
- <p>Are you sure you want to delete this entry?</p>
-
- <h3>Entry Details:</h3>
- <table class="gb-entry-details">
- <tr>
- <td><b>ID:</b></td>
- <td>{{ $entry->id }}</td>
- </tr>
- <tr>
- <td><b>Name:</b></td>
- <td>{{ $entry->name }}</td>
- </tr>
- <tr>
- <td><b>Date:</b></td>
- <td>{{ gmdate("H:i:s - Y-m-d", $entry->timestamp) }}</td>
- </tr>
- <tr>
- <td><b>Message:</b></td>
- <td>{{ $entry->message }}</td>
- </tr>
- </table>
-
- <form action="/admin/guestbook/delete" method="POST">
- @csrf
- <input type="hidden" name="id" value="{{ $entry->id }}">
- <button type="submit">Confirm Delete</button>
- </form>
-@stop
diff --git a/resources/views/pages/admin/guestbook.blade.php b/resources/views/pages/admin/guestbook.blade.php
deleted file mode 100644
index 85460cc..0000000
--- a/resources/views/pages/admin/guestbook.blade.php
+++ /dev/null
@@ -1,32 +0,0 @@
-@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
- <h1>Entries <small>({{ count($entries) }} total)</small></h1>
- @foreach ($entries as $entry)
- <table class="gb-admin">
- <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">
- <a href="/admin/guestbook/delete?id={{ $entry->id }}">del</a>
- </td>
- </tr>
- <tr>
- <td class="gb-message">
- <br>
- {{ htmlspecialchars($entry->message) }}
- </td>
- </tr></table>
- @endforeach
-@stop
-
diff --git a/resources/views/pages/admin/index.blade.php b/resources/views/pages/admin/index.blade.php
deleted file mode 100644
index fd34313..0000000
--- a/resources/views/pages/admin/index.blade.php
+++ /dev/null
@@ -1,9 +0,0 @@
-@extends('layouts.default-admin')
-@section('title', 'Page Title')
-@section('description', 'Page description goes here')
-@php
- $user = auth()->user();
-@endphp
-@section('content')
- <p>You are logged in as {{ $user->name }} ({{ $user->email }})</p>
-@stop