mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-21 10:49:10 -04:00
fix bug in news when user is delete
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
<div class="col-md-4">
|
||||
<h3 class="news-title mb-4">{{ $new->title }}</h3>
|
||||
<div class="news-body-small"> {!! $new->body !!}</div>
|
||||
<span class="news-small">{{ \App\User::find($new->user_id)->fullname()}}, {{$new->created_at}}</span>
|
||||
<span class="news-small">@if(\App\User::find($new->user_id)){{ \App\User::find($new->user_id)->fullname()}},@endif {{$new->created_at}}</span>
|
||||
<div class="news-tags">
|
||||
@if($new->tags != [])
|
||||
@foreach($new->tags as $tag)
|
||||
|
||||
Reference in New Issue
Block a user