@extends('layouts.app')
@section('title', 'News')
@section('content')
@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
@endsection()