blob: 585888944d8126e1f5805cb9068320aacbc0ee28 (
plain) (
tree)
|
|
@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()
|