@extends('backend.layouts.app') @section('content')

{{translate('Detail Reviews')}}

@can('add_custom_review') @endcan

Image
{{ $product->getTranslation('name') }}

{{ strtoupper(translate('Rating')) }}

{{ $product->rating }}

@for ($i=0; $i < $product->rating; $i++) @endfor @for ($i=0; $i < 5-$product->rating; $i++) @endfor


@php $activeClasss = 'btn-soft-blue'; $inActiveClasses = 'text-secondary border-dashed border-soft-light'; @endphp {{ translate('Reviews').' ' }}({{ $customerReviewCount }}) {{ translate('Custom Reviews').' ' }}({{ $customReviewCount }})
@if($reviewType == 'custom') @endif @foreach($reviews as $key => $review) @if($reviewType == 'custom') @endif @endforeach
# {{ strtoupper(translate('Customer')) }} {{ strtoupper(translate('Rating')) }} {{ strtoupper(translate('Comment')) }} {{ strtoupper(translate('Published')) }}{{ strtoupper(translate('Options')) }}
{{ ($key+1) + ($reviews->currentPage() - 1)*$reviews->perPage() }} @php $customerName = null; $customerAvatar = null; if($review->type == "real"){ if($review->user != null){ $customerName = $review->user->name; $customerAvatar = uploaded_asset($review->user->avatar_original); } else { $customerName = translate('Customer Not Found'); } } else{ $customerName = $review->custom_reviewer_name; $customerAvatar = uploaded_asset($review->custom_reviewer_image); } @endphp
Image
{{ $customerName }}
{{ $review->rating }} {{ $review->comment }} @if($review->photos != null)
@foreach (explode(',', $review->photos) as $photo) @endforeach
@endif
{{ date("j F, Y", strtotime($review->created_at)) }}
@can('edit_custom_review') @endcan
{{ $reviews->appends(request()->input())->links() }}
@endsection @section('script') @endsection