@php
$reviewOptions = [
'content_quality',
'instructor_skills',
'purchase_worth',
'support_quality',
];
@endphp
{{-- Rate --}}
@include('design_1.web.components.reviews.rate_card', ['itemRow' => $event, 'reviewOptions' => $reviewOptions])
{{-- Review form --}}
@include('design_1.web.components.reviews.submit_form', [
'itemRow' => $event,
'itemName' => 'event_id',
'reviewOptions' => $reviewOptions,
'reviewFormPath' => "/events/{$event->slug}/reviews/store",
'hasBought' => $event->checkUserHasBought(),
])
{{-- Review Lists --}}
@if(!empty($eventReviews) and count($eventReviews['reviews']))
@include('design_1.web.components.reviews.all_cards', ['reviews' => $eventReviews['reviews']])
@if(!empty($eventReviews['has_more']))
@endif
@endif
@include('design_1.web.components.reviews.reply_form', [
'itemId' => $event->id,
'itemName' => 'event_id',
'reviewReplyFormPath' => "/events/{$event->slug}/reviews/store-reply-comment",
])