aboutsummaryrefslogtreecommitdiff
path: root/resources/views/pages/news.blade.php
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2020-10-20 00:05:48 +0200
committerMateja <mail@matejamaric.com>2020-10-20 00:05:48 +0200
commitd78e06a328b1f06ae0bbe77a2d96cb304e23878d (patch)
tree17065caeda9221eb6ccc4795fcf0b08d673c18c7 /resources/views/pages/news.blade.php
parentdf3e709ea53fb9ea34224f3ad42d4f8dbbaf049d (diff)
downloadyota-laravel-d78e06a328b1f06ae0bbe77a2d96cb304e23878d.tar.gz
yota-laravel-d78e06a328b1f06ae0bbe77a2d96cb304e23878d.zip
Database, controller and news views.
Diffstat (limited to 'resources/views/pages/news.blade.php')
-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()