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

{{ trans('plugins/ecommerce::customer-dashboard.waiting_for_review') }}

{{ trans('plugins/ecommerce::customer-dashboard.share_experience_description') }}

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

{{ trans('plugins/ecommerce::customer-dashboard.your_reviews') }}

{{ trans('plugins/ecommerce::customer-dashboard.products_you_reviewed') }}

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

{{ trans('plugins/ecommerce::customer-dashboard.waiting_for_review') }}

{{ trans('plugins/ecommerce::customer-dashboard.no_products_pending_review') }}

{{ trans('plugins/ecommerce::customer-dashboard.all_caught_up') }}

{{ trans('plugins/ecommerce::customer-dashboard.no_products_waiting_review_description') }}

{{ trans('plugins/ecommerce::customer-dashboard.browse_products') }}
@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