aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--resources/views/pages/news.blade.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/resources/views/pages/news.blade.php b/resources/views/pages/news.blade.php
index 33ff039..8627510 100644
--- a/resources/views/pages/news.blade.php
+++ b/resources/views/pages/news.blade.php
@@ -16,10 +16,12 @@
<h6 class="card-subtitle mb-2 text-muted">Published at {{ $post->created_at->format('Y-m-d') }}@isset ($post->author) by {{$post->author }}@endisset</h4>
<div class="card-text">{!! $post->text !!}</div>
</div>
+ @auth
<div class="mt-3 card-footer">
<a href="{{ route('newsEdit', $post->id) }}" class="btn btn-warning">Edit</a>
<a href="{{ route('newsDelete', $post->id) }}" class="float-right btn btn-danger">Delete</a>
</div>
+ @endauth
</div>
@endforeach
{{ $news->links() }}