@extends('layouts.app')
@section('title', 'News')
@section('content')
@if (session('statusE'))
{{ session('status') }}
@endif
@if (count($news) > 0)
@foreach($news as $post)
{{ $post->title }}
Published at {{ $post->created_at->format('Y-m-d') }}@isset ($post->author) by {{$post->author }}@endisset
{!! $post->text !!}
@endforeach
{{ $news->links() }}
@else
There are no news.
@endif
@endsection()