@extends($activeTheme.'layouts.main') @section('title', $blog->title) @section('description', text_shorting(strip_tags($blog->description), 150)) @section('og_image', asset('storage/blog/'.$blog->image)) @section('content')

{{$blog->title}}

{{ ___('By :author', ['author' => $blog->user->name]) }}
{!! ads_on_top() !!}
@if($settings->blog_banner && isset($blog->image)) @endif

{{ $blog->title }}

{!! $blog->description !!}
@if(!empty($blog->tags))
{{ ___('Tags') }}: @foreach($blog->tags as $tag) @if(!empty(trim($tag))) {{ trim($tag) }} @endif @endforeach
@endif
@if($settings->blog_comment_enable)

{{ ___('Comments') }} ({{ $blogComments->count() }})

    @forelse ($blogComments as $blogComment) @include($activeTheme.'blog.comment', [ 'blog_id' => $blog->id, 'blogComment' => $blogComment, 'level' => 1 ]) @empty
  • {{ ___('No comments found') }}
  • @endforelse
{{ $blogComments->links($activeTheme.'pagination/default') }} @if($settings->blog_comment_user || (!$settings->blog_comment_user && auth()->check()))

{{ ___('Post a Comment') }}

@csrf
@if(!auth()->check())
@error('user_name') {{ $message }} @enderror
@error('user_email') {{ $message }} @enderror
@else

{{ ___('You are commenting as:') }} {{ request()->user()->name }}

@endif
{!! display_captcha() !!} @error('g-recaptcha-response') {{ $message }} @enderror
@else
{{ ___('Please login to post a comment.') }}
@endif @endif
@include($activeTheme.'blog.sidebar')
{!! ads_on_top() !!} @push('scripts_at_bottom') {!! google_captcha() !!} @endpush @endsection