@extends('layouts.app') @section('content')
@if($post->category) @endif

{{ $post->title }}

{{ $post->published_at->format('F d, Y') }} {{ $post->reading_time ?? '5' }} min read {{ $post->views_count }} views
@if($post->featured_image)
{{ $post->title }}
@endif
@if($post->author->avatar) {{ $post->author->name }} @else
@endif
{{ $post->author->name }}
Tech Insights Specialist
{!! nl2br(e($post->content)) !!}

Discussion ({{ $post->approvedComments->count() }})

@if(session('success'))
{{ session('success') }}
@endif
Leave a perspective
@csrf
@foreach($post->approvedComments as $comment)
{{ $comment->name }}
{{ $comment->created_at->diffForHumans() }}

{{ $comment->comment }}

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

Continue Reading

View All
@foreach($relatedPosts as $related)
@endforeach
@endif
@endsection