@extends('layouts.frontend') @section('title', $post->meta_title ?? $post->title . ' - ' . \App\Models\Setting::get('site_name', config('app.name'))) @section('meta_description', $post->meta_description ?? Str::limit(strip_tags($post->content), 160)) @section('content')
@if($post->category) {{ $post->category->name }} @endif

{{ $post->title }}

@if($post->author) By {{ $post->author->name }} @endif {{ $post->published_at?->format('M d, Y') ?? $post->created_at->format('M d, Y') }}
@if($post->image) {{ $post->title }} @endif
{!! $post->content !!}

Comments ({{ $post->comments->count() }})

@if($post->comments->count() > 0)
@foreach($post->comments as $comment)
{{ strtoupper(substr($comment->name, 0, 1)) }}

{{ $comment->name }}

{{ $comment->created_at->diffForHumans() }}

{{ $comment->comment }}

@endforeach
@endif

Leave a Comment

@csrf
@if($relatedPosts->count() > 0)

Related Posts

@foreach($relatedPosts as $related) @if($related->image) {{ $related->title }} @endif

{{ $related->title }}

@endforeach
@endif
@endsection