aboutsummaryrefslogtreecommitdiff
path: root/resources/views/pages/news.blade.php
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2020-10-25 22:18:23 +0100
committerMateja <mail@matejamaric.com>2020-10-25 22:18:23 +0100
commitdda8fb2a05de804f2b37245fde2580a9d18cc51b (patch)
tree032bbd11439aded239488b88a34944b0d7384e1a /resources/views/pages/news.blade.php
parent4b92a7928ec6634dff4ca066af0a43ad1cfb3c46 (diff)
downloadyota-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.php5
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()