diff options
author | Mateja <mail@matejamaric.com> | 2020-10-25 22:18:23 +0100 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2020-10-25 22:18:23 +0100 |
commit | dda8fb2a05de804f2b37245fde2580a9d18cc51b (patch) | |
tree | 032bbd11439aded239488b88a34944b0d7384e1a /resources/views/pages/news.blade.php | |
parent | 4b92a7928ec6634dff4ca066af0a43ad1cfb3c46 (diff) | |
download | yota-laravel-dda8fb2a05de804f2b37245fde2580a9d18cc51b.tar.gz yota-laravel-dda8fb2a05de804f2b37245fde2580a9d18cc51b.zip |
Form validation, blade, bootstrap
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() |