@extends(EcommerceHelper::viewPath('customers.master'))
@section('title', SeoHelper::getTitle())
@section('content')
@if($products->isNotEmpty() || $reviews->isNotEmpty())
@include(EcommerceHelper::viewPath('customers.product-reviews.icons'))
{{-- Waiting for Review Card --}}
@if ($products->isNotEmpty())
@foreach ($products as $product)
{{ RvMedia::image($product->order_product_image ?: $product->image, $product->name, 'thumb', true, ['class' => 'img-fluid rounded']) }}
@if ($product->order_completed_at)
{{ trans('plugins/ecommerce::customer-dashboard.order_completed') }}:
@endif
{{ trans('plugins/ecommerce::customer-dashboard.rate_this_product') }}
@for ($i = 5; $i >= 1; $i--)
@endfor
@if (!$loop->last)
@endif
@endforeach
@endif
{{-- Reviewed Products Card --}}
@if ($reviews->isNotEmpty())
@include(EcommerceHelper::viewPath('customers.product-reviews.reviewed'))
@endif
{{-- Empty State for Waiting Reviews --}}
@if ($products->isEmpty() && $reviews->isNotEmpty())
@endif
@include(EcommerceHelper::viewPath('customers.product-reviews.modal'))
@else
@include(EcommerceHelper::viewPath('customers.partials.empty-state'), [
'title' => trans('plugins/ecommerce::customer-dashboard.no_reviews_yet'),
'subtitle' => trans('plugins/ecommerce::customer-dashboard.start_shopping_and_review_description'),
'actionUrl' => route('public.products'),
'actionLabel' => trans('plugins/ecommerce::customer-dashboard.start_shopping'),
])
@endif
@endsection