Design Refresh
This commit is contained in:
parent
1dee7ae516
commit
e7202174f7
44 changed files with 593 additions and 228 deletions
|
|
@ -103,7 +103,7 @@
|
|||
@php
|
||||
$user_agent = $parser->parse($entry->agent);
|
||||
@endphp
|
||||
<div class="gb-entry">
|
||||
<div class="gb-entry{{ $entry->flagged ? " gb-entry-flagged" : "" }}">
|
||||
Submitted by <strong>{{ $entry->name }}</strong>
|
||||
on <strong>{{ $entry->created_at->format('Y-m-d') }}</strong>
|
||||
at <strong>{{ $entry->created_at->format('h:i:s A (e)') }}</strong>
|
||||
|
|
@ -120,6 +120,21 @@
|
|||
on <strong>{{ $user_agent->os->toString() }}</strong></address>
|
||||
@endif
|
||||
@endif
|
||||
@if(Auth::check())
|
||||
<hr>
|
||||
@if($entry->flagged)
|
||||
<form action="{{ route('guestbook.flag',$entry->id) }}" method="GET">
|
||||
@csrf
|
||||
<button type="submit">Remove Flag</button>
|
||||
</form>
|
||||
|
||||
@endif
|
||||
<form action="{{ route('guestbook.destroy',$entry->id) }}" method="POST">
|
||||
@csrf
|
||||
@method('DELETE')
|
||||
<button type="submit">Delete</button>
|
||||
</form>
|
||||
@endif
|
||||
</div>
|
||||
<br>
|
||||
@endforeach
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue