aboutsummaryrefslogblamecommitdiff
path: root/resources/views/pages/news.blade.php
blob: 585888944d8126e1f5805cb9068320aacbc0ee28 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12

                       

                         
                   
                            





                                                                                                                                                                         

               
             
@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
@endsection()