From cdd9fcf7bf49e4468c2290e30a98c6730a334900 Mon Sep 17 00:00:00 2001 From: Mateja Date: Mon, 2 Nov 2020 17:45:41 +0100 Subject: News system finished... --- resources/views/pages/news.blade.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'resources/views/pages/news.blade.php') diff --git a/resources/views/pages/news.blade.php b/resources/views/pages/news.blade.php index 44d0202..1e9b83b 100644 --- a/resources/views/pages/news.blade.php +++ b/resources/views/pages/news.blade.php @@ -4,10 +4,11 @@ @section('content') @foreach($news as $post) -
-

{{ $post->title }}

+
+

{{ $post->title }}

Published at {{ $post->created_at->format('Y-m-d') }}@isset ($post->author) by {{$post->author }}@endisset -

{{ $post->text }}

+
+
{!! $post->text !!}
@endforeach @endsection() -- cgit v1.2.3