+
+
+
+
+ {!! method_exists($post, 'translate') ? $post->translate('content') : ($post->content ?? '') !!}
+
+
+
+
+
+
+
+
+
+
+ @if($post->author)
+
+
+
+ @if($post->author->avatar)
+
+ @else
+
+ @endif
+
+
+
+
{{ $post->author->role ?? __('blog.author') }}
+
+
+
+
+
+
{{ method_exists($post, 'translate') ? $post->translate('excerpt') : ($post->excerpt ?? '') }}
+
+ @if($post->author->social_links ?? false)
+
+
+ @endif
+ @endif
+
+ @if($relatedPosts && $relatedPosts->count() > 0)
+
{{ __('blog.you_might_also_like') }}
+
+
+
+ @foreach($relatedPosts as $relatedPost)
+ @php
+ $relatedTitle = method_exists($relatedPost, 'translate') ? $relatedPost->translate('title') : $relatedPost->title;
+ $relatedCategoryName = $relatedPost->category ? $relatedPost->category->name : '';
+ $relatedImageUrl = $relatedPost->featured_image ? asset('storage/' . $relatedPost->featured_image) : asset('assets/img/photos/b4.jpg');
+ $relatedUrl = route('blog.show', $relatedPost->slug);
+ $relatedDate = $relatedPost->published_at ? $relatedPost->published_at->format('d M Y') : $relatedPost->created_at->format('d M Y');
+ $relatedCommentCount = $relatedPost->comments_count ?? 0;
+ @endphp
+
+
+
+
+
+
+
+
+ {{ __('blog.read_more') }}
+
+
+
+
+
+
+
+
+
+
+ @endforeach
+
+
+
+
+
+
+
+
+
+ @endif
+
+ @if($post->allow_comments)
+
+
+
+
{{ __('blog.share_thoughts') }}
+
{{ __('blog.comment_form_description') }}
+
+
+ @endif
+
{{ $comments->count() }} {{ __('blog.comments') }}
+ @if($comments->count() > 0) ++ @foreach($comments as $comment) +-
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ __('blog.reply') }}
+
+
+
+
+
+
+ @endforeach
+
+ @endif ++ {{ $comment->name }} +
++-
+
+ {{ $comment->created_at->format('d M Y') }}
+
+
+ +{{ $comment->content }}
+ @if($comment->replies && $comment->replies->count() > 0) ++ @foreach($comment->replies as $reply) +-
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ __('blog.reply') }}
+
+
+
+
+
+
+ @endforeach
+
+ @endif ++ {{ $reply->name }} +
++-
+
+ {{ $reply->created_at->format('d M Y') }}
+
+
+ +{{ $reply->content }}
+ @if($reply->replies && $reply->replies->count() > 0) ++ @foreach($reply->replies as $nestedReply) +-
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ __('blog.reply') }}
+
+
+
+
+
+
+ @endforeach
+
+ @endif ++ {{ $nestedReply->name }} +
++-
+
+ {{ $nestedReply->created_at->format('d M Y') }}
+
+
+ +{{ $nestedReply->content }}
+