aboutsummaryrefslogtreecommitdiff
path: root/resources/views/pages/news.blade.php
blob: 5e4453f054b3512a3216aef5ab91a351823d63d5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
@extends('layouts.app')

@section('content')
    @foreach($news as $post)
        <div class="well">
            <h3>{{ $post->title }}</h3>
            <small>Published at {{ $post->created_at->format('Y-m-d') }}@isset ($post->author) by {{$post->author }}@endisset</small>
            <p>{{ $post->text }}</p>
        </div>
    @endforeach
@endsection()