aboutsummaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
Diffstat (limited to 'resources')
-rw-r--r--resources/views/pages/news.blade.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/resources/views/pages/news.blade.php b/resources/views/pages/news.blade.php
index b4a9f19..a8685eb 100644
--- a/resources/views/pages/news.blade.php
+++ b/resources/views/pages/news.blade.php
@@ -1,4 +1,14 @@
@extends('layouts.app')
@section('content')
+ @foreach($news as $post)
+ <div class="well">
+ <h3>{{ $post->title }}</h3>
+ <small>Written at: {{ $post->created_at }}</small>
+ <p>{{ $post->text }}</p>
+ @isset ($post->author)
+ <small>Author: {{ $post->author }}</small>
+ @endisset
+ </div>
+ @endforeach
@endsection()