@model LittleShop.DTOs.ReviewDto @{ ViewData["Title"] = "Review Details"; }

Review Details

Back to Reviews
@if (TempData["SuccessMessage"] != null) { }
Customer Review @if (Model.IsVerifiedPurchase) { Verified Purchase } @if (Model.IsApproved) { Approved } else { Pending Approval }
Product Information

Product: @Model.ProductName

Product ID: @Model.ProductId

Customer Information

Customer: @Model.CustomerDisplayName

Customer ID: @Model.CustomerId

Order ID: @Model.OrderId


Review Details
@for (int i = 1; i <= 5; i++) { } @Model.Rating out of 5 stars
@if (!string.IsNullOrEmpty(Model.Title)) {

@Model.Title

} @if (!string.IsNullOrEmpty(Model.Comment)) {

@Model.Comment

}

Review Metadata

Created: @Model.CreatedAt.ToString("MMM dd, yyyy 'at' h:mm tt")

Updated: @Model.UpdatedAt.ToString("MMM dd, yyyy 'at' h:mm tt")

@if (Model.IsApproved && Model.ApprovedAt.HasValue) {

Approved: @Model.ApprovedAt.Value.ToString("MMM dd, yyyy 'at' h:mm tt")

@if (!string.IsNullOrEmpty(Model.ApprovedByUsername)) {

Approved By: @Model.ApprovedByUsername

} }
Actions
@if (!Model.IsApproved) {
} Edit Review