@extends($activeTemplate . 'layouts.frontend') @section('content') @php $author = $product->author; @endphp
@include($activeTemplate . 'user.product.top')
@forelse ($comments as $comment)
{{ $comment->user->fullname }}
@if ($comment->user->orderItems->where('product_id', $product->id)->count()) @lang('Purchased') @endif
{{ diffForHumans($comment->created_at) }}
@if (@$comment->is_reported) @else

{{ $comment->text }}

@endif {{-- Report Option for Author --}} @if (auth()->user() && $comment->product->user_id === auth()->id())
@if (!@$comment->is_reported) @endif
@endif {{-- replies of the comment --}} @if (!@$comment->is_reported) @foreach ($comment->replies as $reply)
{{ @$reply->user->fullname }}
@if ($reply->author_reply) @lang('Author') @endif
{{ diffForHumans($reply->created_at) }}

{{ $reply->text }}

@endforeach @if (auth()->user() && ($comment->product->user_id === auth()->id() || auth()->id() == $comment->user_id)) @if (!(gs('comment_disable') && @$product->comment_disable == Status::ENABLE))
@csrf
@endif @endif @endif
@empty
@endforelse
{{ paginateLinks($comments) }}
@if (gs('comment_disable') && @$product->comment_disable == Status::ENABLE)

@lang('Comments are currently disabled for this product')

@else @if (auth()->user() && @$comment->product->user_id !== auth()->id())
@lang('Add a comment')
@csrf
@endif @endif
@php echo getAds('728x90'); @endphp
@include($activeTemplate . 'partials.common_sidebar')
@endsection @push('script') @endpush