@extends('layouts.app')
@section('title', 'Posts')
@section('content')
@if($posts->count())
@foreach($posts as $post)
-
{{ $post->title }}
· {{ $post->created_at->diffForHumans() }} @if($post->published) · Published@endif
@endforeach
{{ $posts->links() }}
@else
No posts yet.
@endif
@endsection