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

@section('title', 'News')

@section('content')
    @foreach($news as $post)
        <div class="card mb-3">
            <div class="card-body">
                <h2 class="card-title">{{ $post->title }}</h2>
                <h6 class="card-subtitle mb-2 text-muted">Published at {{ $post->created_at->format('Y-m-d') }}@isset ($post->author) by {{$post->author }}@endisset</h4>
                <div class="card-text">{!! $post->text !!}</div>
            </div>
        </div>
    @endforeach
    {{ $news->links() }}
@endsection()