@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())

{{ __('Waiting for your review') }}

{{ __('Share your experience with these products') }}

@foreach ($products as $product)
{{ RvMedia::image($product->order_product_image ?: $product->image, $product->name, 'thumb', true, ['class' => 'img-fluid rounded']) }}

{!! BaseHelper::clean($product->order_product_name ?: $product->name) !!}

@if ($product->order_completed_at)
{{ __('Order completed') }}:
@endif
{{ __('Rate this product:') }}
@for ($i = 5; $i >= 1; $i--) @endfor
@if (!$loop->last)
@endif @endforeach
@endif {{-- Reviewed Products Card --}} @if ($reviews->isNotEmpty())

{{ __('Your Reviews') }}

{{ __('Products you have reviewed') }}

@include(EcommerceHelper::viewPath('customers.product-reviews.reviewed'))
@endif {{-- Empty State for Waiting Reviews --}} @if ($products->isEmpty() && $reviews->isNotEmpty())

{{ __('Waiting for your review') }}

{{ __('No products pending review') }}

{{ __('All caught up!') }}

{{ __("You don't have any products waiting for review. Keep shopping to discover new products!") }}

{{ __('Browse Products') }}
@endif
@include(EcommerceHelper::viewPath('customers.product-reviews.modal')) @else @include(EcommerceHelper::viewPath('customers.partials.empty-state'), [ 'title' => __('No reviews yet!'), 'subtitle' => __('Start shopping and share your experience by reviewing products you\'ve purchased.'), 'actionUrl' => route('public.products'), 'actionLabel' => __('Start Shopping'), ]) @endif @endsection