@extends('layouts.app') @section('title', $post->title) @section('content')

{{ $post->title }}

Created: {{ $post->created_at->format('M j, Y \a\t g:i A') }} @if($post->status === 'published') Published @elseif($post->pending_approval) Pending Approval @else Draft @endif
@if($post->status === 'draft') Edit @endif ← Back to My Posts
@if($post->featured_image)
{{ $post->title }}
@endif
@if($post->excerpt)

{{ $post->excerpt }}

@endif
{!! nl2br(e($post->content)) !!}
@if($post->pending_approval)

Awaiting Approval

This post is pending admin approval. You can still edit it while it's under review.

@elseif($post->status === 'published')

Published

This post is live on the platform. View public page

@endif
@endsection