aboutsummaryrefslogtreecommitdiff
path: root/resources/views/pages/news.blade.php
blob: a8685eb39db68c9ede8b65bd5f9220e7313a4332 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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()