@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) @lang('This comment is currently under review') @else {{ $comment->text }} @endif {{-- Report Option for Author --}} @if (auth()->user() && $comment->product->user_id === auth()->id()) @if (!@$comment->is_reported) @lang('Report') @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 @lang('Reply') @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 @lang('Post Comment') @endif @endif @php echo getAds('728x90'); @endphp @include($activeTemplate . 'partials.common_sidebar')
{{ $comment->text }}
{{ $reply->text }}
@lang('Comments are currently disabled for this product')
@lang('Please provide a reason for reporting this comment:')
{{ $comment->user->fullname }}
@if ($comment->user->orderItems->where('product_id', $product->id)->count()) @lang('Purchased') @endif{{ $comment->text }}
@endif {{-- Report Option for Author --}} @if (auth()->user() && $comment->product->user_id === auth()->id()){{ @$reply->user->fullname }}
@if ($reply->author_reply) @lang('Author') @endif{{ $reply->text }}
@lang('Comments are currently disabled for this product')
@else @if (auth()->user() && @$comment->product->user_id !== auth()->id())@lang('Add a comment')