@extends('layouts.app') @section('title', $post->title) @section('meta_description', $post->meta_description ?: $post->excerpt) @section('content')
{{-- Categories & Date --}}
@if($post->categories->isNotEmpty()) @foreach($post->categories as $category) {{ $category->name }} @if(!$loop->last)·@endif @endforeach · @endif
{{-- Title --}}

{{ $post->title }}

{{-- Excerpt --}} @if($post->excerpt)

{!! $post->excerpt !!}

@endif {{-- Author Meta --}}
By {{ $post->user->name }} · {{ $post->reading_time_minutes ?? 0 }} min read
{{-- Featured Image --}} @if($post->featured_image_media_id)
{{ $post->title }}
@endif {{-- YouTube Video --}} @if($post->youtube_url)
@endif {{-- Body --}}
{!! $post->body_html !!}
{{-- Share --}} @if(settings('show_share_buttons', true))

Share this post

@if(settings('social_share_twitter', true)) Twitter @endif @if(settings('social_share_facebook', true)) Facebook @endif @if(settings('social_share_linkedin', true)) LinkedIn @endif
@endif {{-- Author Box --}} @if(settings('show_author_box', true))
{{ strtoupper(substr($post->user->name, 0, 1)) }}

{{ $post->user->name }}

@if($post->user->bio)

{{ $post->user->bio }}

@endif
@endif {{-- Post Navigation --}} @if(settings('show_post_navigation', true) && ($previous || $next)) @endif {{-- Related Posts --}} @if(settings('show_related_posts', true) && $related->isNotEmpty())

Related Posts

@foreach($related as $relPost) @include('partials.post-card', ['post' => $relPost]) @endforeach
@endif {{-- Comments --}} @if($post->approvedComments->isNotEmpty() || true)

Comments

{{-- Comment List --}} @foreach($post->approvedComments->whereNull('parent_id') as $comment) @include('partials.comment-item', ['comment' => $comment]) @endforeach {{-- Comment Form --}}
@csrf @if(!auth()->check())
@endif
@endif
@endsection