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

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

    {{ __('no_comments') }}

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