@extends('theme::layouts.app', ['title' => __('blog.title|Blog Post')]) @section('content') {{-- Breadcrumbs --}} @include('theme::partials.breadcrumbs')
@php $shareUrl = urlencode(request()->fullUrl()); $shareText = urlencode($post->title); @endphp
{{-- Header --}}
@if($post->category->first()) {{ $post->category->first()->name }} @endif

{{ $post->title }}

{{ $post->user->name ?? 'Author' }} {{ $post->user->name ?? __('blog.Guest User') }}
calendar_today {{ $post->created_at->format('M d, Y') }}
schedule @lang('blog.:min min read', ['min' => $post->read_time])
{{-- Featured Image --}}
@if(!$post->hasFeaturedImage()) {{$post->title}} @else {{$post->title}} @endif
{{-- Sidebar / Share Buttons --}} {{-- Main Post Content --}}
{!! $post->content !!}
{{-- Share Section --}}

@lang('blog.heading|Share this article')

{{-- Related Posts --}}

@lang('blog.heading|Related Posts')

@forelse($relatedPosts as $related)
{{ $related->title }}
@if($related->category->first()) {{ $related->category->first()->name }} @endif

{{ $related->title }}

@empty

@lang('blog.No related posts found.')

@endforelse
{{-- Comments --}}

@lang('blog.heading|Comments (:count)', ['count' => $comments->count()])

@if(setting('blog.comments', 1))
@auth
{{ auth()->user()->name }} @lang('blog.Post as') {{ auth()->user()->name }}
@csrf
@else

@lang('blog.Please login to leave a comment.')

@lang('general.Login')
@endauth
@forelse($comments as $comment) @include('theme::partials.blog.comment-item-layout', ['comment' => $comment, 'post' => $post]) @empty

@lang('blog.No comments yet. Be the first to comment!')

@endforelse
{{-- Pagination if available --}}
@endif
@endsection