Try your search with a different keyword or use * as a wildcard.
@model CustomerProductReviewsModel
@using Nop.Core.Domain.Catalog
@inject Nop.Services.Html.IHtmlFormatter htmlFormatter
@{
Layout = "_ColumnsTwo";
//title
NopHtml.AddTitleParts(T("PageTitle.CustomerProductReviews").Text);
//page class
NopHtml.AppendPageCssClassParts("html-account-page");
NopHtml.AppendPageCssClassParts("html-my-product-reviews-list-page");
}
@section left
{
@await Component.InvokeAsync(typeof(CustomerNavigationViewComponent), new { selectedTabId = CustomerNavigationEnum.ProductReviews })
}
@T("Account.MyAccount") - @T("Account.CustomerProductReviews")
@await Component.InvokeAsync(typeof(WidgetViewComponent), new { widgetZone = PublicWidgetZones.CustomerProductReviewsTop, additionalData = Model })
@if (Model.ProductReviews.Count > 0)
{
foreach (var review in Model.ProductReviews)
{
var ratingPercent = review.Rating * 20;
@review.Title@(!string.IsNullOrEmpty(review.ApprovalStatus) ? $" - {review.ApprovalStatus}" : null)
@Html.Raw(htmlFormatter.FormatText(review.ReviewText, false, true, false, false, false, false))
@foreach (var reviewType in review.AdditionalProductReviewList.Where(x => x.Rating > 0))
{
var ratingExtPercent = reviewType.Rating * 20;
}
@if (!string.IsNullOrEmpty(review.ReplyText))
{
}
}
var pager = await Html.PagerAsync(Model.PagerModel);
if (!string.IsNullOrEmpty(await pager.RenderHtmlContentAsync()))
{
@pager
}
}
else
{
@T("Account.CustomerProductReviews.NoRecords")
}
@await Component.InvokeAsync(typeof(WidgetViewComponent), new { widgetZone = PublicWidgetZones.CustomerProductReviewsBottom, additionalData = Model })