diff options
Diffstat (limited to 'resources/views/pages/news.blade.php')
-rw-r--r-- | resources/views/pages/news.blade.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/resources/views/pages/news.blade.php b/resources/views/pages/news.blade.php index a8685eb..5e4453f 100644 --- a/resources/views/pages/news.blade.php +++ b/resources/views/pages/news.blade.php @@ -4,11 +4,8 @@ @foreach($news as $post) <div class="well"> <h3>{{ $post->title }}</h3> - <small>Written at: {{ $post->created_at }}</small> + <small>Published at {{ $post->created_at->format('Y-m-d') }}@isset ($post->author) by {{$post->author }}@endisset</small> <p>{{ $post->text }}</p> - @isset ($post->author) - <small>Author: {{ $post->author }}</small> - @endisset </div> @endforeach @endsection() |