@extends('frontend.layouts.app') @section('description'){{ strip_tags($post->description) }}@endsection @section('og:image'){{ asset($post->image) }}@endsection @section('title'){{ $post->title }}@endsection @section('main')
@if (advertisementCode('blog_detailpage_inside_blog'))
{!! advertisementCode('blog_detailpage_inside_blog') !!}
@endif
{{ __('write_a_comment') }}
@csrf @auth() @else @endauth
    @forelse ($post->comments as $comment)
  • Image
    {{ $comment->user->name }} {{ $comment->created_at->diffForHumans() }}
    {!! nl2br($comment->body) !!}
    @csrf
    user
    @auth('user') @else @endauth

    @if (count($comment->replies) > 0) @foreach ($comment->replies as $reply)
  • user
    {{ $reply->user->name }} {{ $reply->created_at->diffForHumans() }}
    {!! nl2br($reply->body) !!}
  • @endforeach @endif @empty

    {{ __('no_comments') }}

    @endforelse
@endsection @section('script') @endsection