@php
$reviewOptions = [
'product_quality',
'purchase_worth',
'delivery_quality',
'seller_quality',
];
@endphp
{{-- Rate --}}
@include('design_1.web.components.reviews.rate_card', ['itemRow' => $product, 'reviewOptions' => $reviewOptions])
{{-- Review form --}}
@include('design_1.web.components.reviews.submit_form', [
'itemRow' => $product,
'itemName' => 'product_id',
'reviewOptions' => $reviewOptions,
'reviewFormPath' => "/products/reviews/store",
'hasBought' => $product->checkUserHasBought(),
])
{{-- Review Lists --}}
@if(!empty($productReviews) and count($productReviews['reviews']))
@include('design_1.web.components.reviews.all_cards', ['reviews' => $productReviews['reviews']])
@if(!empty($productReviews['has_more']))
@endif
@endif
@include('design_1.web.components.reviews.reply_form', [
'itemId' => $product->id,
'itemName' => 'product_id',
'reviewReplyFormPath' => "/products/reviews/store-reply-comment",
])