{{ $userSec->top_rated_product_section_title ?? __('Top Rated') }}
@if (count($top_rated ?? []) == 0)
{{ $keywords['NO PRODUCTS FOUND'] ?? __('NO PRODUCTS FOUND') }}
@else
@for ($k = 0; $k < count($top_rated); $k += 4)
@if ($top_rated[$k]->itemContents != '[]')
@if (isset($top_rated[$k]))
{{ @$top_rated[$k]->itemContents[0]->category->name }}
@if ($shop_settings->item_rating_system == 1)
({{ reviewCount($top_rated[$k]->id) }})
@endif
@php
$flash_info = flashAmountStatus($top_rated[$k]->id, $top_rated[$k]->current_price);
$product_current_price = $flash_info['amount'];
$flash_status = $flash_info['status'];
@endphp
@if ($flash_status == true)
{{ symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($product_current_price)) }}
{{ symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($top_rated[$k]->current_price)) }}
@else
{{ symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($top_rated[$k]->current_price)) }}
{{ symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($top_rated[$k]->previous_price)) }}
@endif
@if ($shop_settings->catalog_mode != 1)
@endif
@php
$customer_id = Auth::guard('customer')->check() ? Auth::guard('customer')->user()->id : null;
$checkWishList = $customer_id ? checkWishList($top_rated[$k]->id, $customer_id) : false;
@endphp
@endif
@if (isset($top_rated[$k + 1]))
@if (!is_null(@$top_rated[$k + 1]->itemContents[0]->slug))
@if (count($top_rated[$k + 1]->itemContents) > 0)
@endif
{{ @$top_rated[$k + 1]->itemContents[0]->category->name }}
@if ($shop_settings->item_rating_system == 1)
({{ reviewCount($top_rated[$k + 1]->id) }})
@endif
@php
$flash_info = flashAmountStatus($top_rated[$k + 1]->id, $top_rated[$k + 1]->current_price);
$product_current_price = $flash_info['amount'];
$flash_status = $flash_info['status'];
@endphp
@if ($flash_status == true)
{{ symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($product_current_price)) }}
{{ symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($top_rated[$k + 1]->current_price)) }}
@else
{{ symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($top_rated[$k + 1]->current_price)) }}
{{ symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($top_rated[$k + 1]->previous_price)) }}
@endif
@if ($shop_settings->catalog_mode != 1)
@endif
@php
$customer_id = Auth::guard('customer')->check()
? Auth::guard('customer')->user()->id
: null;
$checkWishList = $customer_id ? checkWishList($top_rated[$k + 1]->id, $customer_id) : false;
@endphp
@endif
@endif
@if (isset($top_rated[$k + 2]))
@if (!is_null(@$top_rated[$k + 2]->itemContents[0]->category->slug))
@if (count($top_rated[$k + 2]->itemContents) > 0)
@endif
{{ @$top_rated[$k + 2]->itemContents[0]->category->name }}
@if ($shop_settings->item_rating_system == 1)
({{ reviewCount($top_rated[$k + 2]->id) }})
@endif
@php
$flash_info = flashAmountStatus($top_rated[$k + 2]->id, $top_rated[$k + 2]->current_price);
$product_current_price = $flash_info['amount'];
$flash_status = $flash_info['status'];
@endphp
@if ($flash_status == true)
{{ symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($product_current_price)) }}
{{ symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($top_rated[$k + 2]->current_price)) }}
@else
{{ symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($top_rated[$k + 2]->current_price)) }}
{{ symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($top_rated[$k + 2]->previous_price)) }}
@endif
@if ($shop_settings->catalog_mode != 1)
@endif
@php
$customer_id = Auth::guard('customer')->check()
? Auth::guard('customer')->user()->id
: null;
$checkWishList = $customer_id ? checkWishList($top_rated[$k + 2]->id, $customer_id) : false;
@endphp
@endif
@endif
@if (isset($top_rated[$k + 3]))
@if (!is_null(@$top_rated[$k + 3]->itemContents[0]->category->slug))
@if (count($top_rated[$k + 3]->itemContents) > 0)
@endif
{{ @$top_rated[$k + 3]->itemContents[0]->category->name }}
@if ($shop_settings->item_rating_system == 1)
({{ reviewCount($top_rated[$k + 3]->id) }})
@endif
@php
$flash_info = flashAmountStatus($top_rated[$k + 3]->id, $top_rated[$k + 3]->current_price);
$product_current_price = $flash_info['amount'];
$flash_status = $flash_info['status'];
@endphp
@if ($flash_status == true)
{{ symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($product_current_price)) }}
{{ symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($top_rated[$k + 3]->current_price)) }}
@else
{{ symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($top_rated[$k + 3]->current_price)) }}
{{ symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($top_rated[$k + 3]->previous_price)) }}
@endif
@if ($shop_settings->catalog_mode != 1)
@endif
@php
$customer_id = Auth::guard('customer')->check()
? Auth::guard('customer')->user()->id
: null;
$checkWishList = $customer_id ? checkWishList($top_rated[$k + 3]->id, $customer_id) : false;
@endphp
@endif
@endif
@endif
@endfor
@endif