@extends('backend.layouts.app') @section('content')
{{ strtoupper(translate('Rating')) }}
{{ $product->rating }}
| # | {{ strtoupper(translate('Customer')) }} | {{ strtoupper(translate('Rating')) }} | {{ strtoupper(translate('Comment')) }} | {{ strtoupper(translate('Published')) }} |
|---|---|---|---|---|
| {{ ($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
{{ $customerName }}
|
{{ $review->rating }} | {{ $review->comment }} @if($review->photos != null) @endif |
{{ date("j F, Y", strtotime($review->created_at)) }}
|