@extends(BaseHelper::getAdminMasterLayoutTemplate()) @section('content')

@include('plugins/ecommerce::reviews.partials.rating', [ 'star' => $review->star, ])

{{ $review->user->name ?: $review->customer_name }} ({{ $review->user->email ?: $review->customer_email }})
{{ $review->created_at->diffForHumans() }}
{!! BaseHelper::clean($review->status->toHtml()) !!}

{{ $review->comment }}

@if ($review->images)
@foreach ($review->images as $image) @endforeach
@endif
{{ trans('plugins/ecommerce::review.delete') }} @if ($review->status == Botble\Base\Enums\BaseStatusEnum::PUBLISHED) {{ trans('plugins/ecommerce::review.unpublish') }} @else {{ trans('plugins/ecommerce::review.publish') }} @endif
@if (auth()->user()->hasPermission('reviews.reply') || $review->reply) @if (auth()->user()->hasPermission('reviews.reply'))

{{ trans('plugins/ecommerce::review.reply_to_review') }}

@if ($review->reply)
{{ $review->reply->user->name }} ({{ $review->reply->user->email }})
{{ $review->reply->created_at->diffForHumans() }}
{{ $review->reply->message }}
@else
@include('plugins/ecommerce::reviews.partials.reply-form', ['reply' => $review->reply])
{{ trans('plugins/ecommerce::review.reply') }}
@endif
@endif
@endif

{{ trans('plugins/ecommerce::review.product') }}

{{ $review->product->name }}

{{ $review->product->name }}

@include('plugins/ecommerce::reviews.partials.rating', [ 'star' => $review->product->reviews_avg_star, ]) ({{ number_format($review->product->reviews_count) }})
@endsection @push('footer') @if ($review->reply) @endif @endpush