@if ($ubs->top_rated_section == 1)

{{ $userSec->top_rated_product_section_title ?? __('Top Rated') }}

@for ($skeleton = 1; $skeleton <= 3; $skeleton++)

@endfor
@endif @if ($ubs->bottom_middle_banner_section == 1)
@if ($banners) @for ($i = 4; $i < count($banners); $i++) @if ($banners[$i]->position == 'bottom_middle') @endif @endfor @endif
@endif @if ($ubs->top_selling_section == 1)

{{ $userSec->top_selling_product_section_title ?? __('Top Selling') }}

@for ($skeleton = 1; $skeleton <= 3; $skeleton++)

@endfor
@endif
@if ($ubs->top_rated_section == 1)

{{ $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 ($k < count($top_rated) - 1) @if (count($top_rated[$k]->itemContents) > 0)
@if (isset($top_rated[$k]))

{{ $top_rated[$k]->itemContents[0]->title }}

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

{{ $top_rated[$k + 1]->itemContents[0]->title }}

@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]->slug))
Product

{{ $top_rated[$k + 2]->itemContents[0]->title }}

@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]->slug))
Product

{{ $top_rated[$k + 3]->itemContents[0]->title }}

@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 @endif @endfor
@endif
@endif @if ($ubs->bottom_middle_banner_section == 1)
@if ($banners) @for ($i = 4; $i < count($banners); $i++) @if ($banners[$i]->position == 'bottom_middle') @endif @endfor @endif
@endif @if ($ubs->top_selling_section == 1)

{{ $userSec->top_selling_product_section_title ?? __('Top Selling') }}

@if (count($top_selling) == 0)
{{ $keywords['NO PRODUCTS FOUND'] ?? __('NO PRODUCTS FOUND') }}
@else
@if (!empty($top_selling)) @for ($k = 0; $k <= count($top_selling); $k += 4) @if ($k < count($top_selling) - 1) @if (!is_null(@$top_selling[$k]->item->itemContents[0]->slug)) @if (@$top_selling[$k]->item->status == 1)
@if (!is_null(@$top_selling[$k]->item->itemContents[0]->slug))
Product

{{ $top_selling[$k]->item->itemContents[0]->title }}({{ $top_selling[$k]->quantity }})

@if ($shop_settings->item_rating_system == 1)
({{ reviewCount($top_selling[$k]->item->id) }})
@endif @php $flash_info = flashAmountStatus( $top_selling[$k]->item->id, $top_selling[$k]->item->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_selling[$k]->item->current_price)) }} @else {{ symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($top_selling[$k]->item->current_price)) }} {{ symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($top_selling[$k]->item->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_selling[$k]->item->id, $customer_id) : false; @endphp
@endif @if (!is_null(@$top_selling[$k + 1]->item->itemContents[0]->slug))

{{ $top_selling[$k + 1]->item->itemContents[0]->title }}({{ $top_selling[$k + 1]->quantity }})

@if ($shop_settings->item_rating_system == 1)
({{ reviewCount($top_selling[$k + 1]->item->id) }})
@endif @php $flash_info = flashAmountStatus( $top_selling[$k + 1]->item->id, $top_selling[$k + 1]->item->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_selling[$k + 1]->item->current_price)) }} @else {{ symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($top_selling[$k + 1]->item->current_price)) }} {{ symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($top_selling[$k + 1]->item->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_selling[$k + 1]->item->id, $customer_id) : false; @endphp
@endif @if (!is_null(@$top_selling[$k + 2]->item->itemContents[0]->slug))

{{ $top_selling[$k + 2]->item->itemContents[0]->title }}({{ $top_selling[$k + 2]->quantity }})

@if ($shop_settings->item_rating_system == 1)
({{ reviewCount($top_selling[$k + 2]->item->id) }})
@endif @php $flash_info = flashAmountStatus( $top_selling[$k + 2]->item->id, $top_selling[$k + 2]->item->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_selling[$k + 2]->item->current_price)) }} @else {{ symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($top_selling[$k + 2]->item->current_price)) }} {{ symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($top_selling[$k + 2]->item->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_selling[$k + 2]->item->id, $customer_id) : false; @endphp
@endif @if (!is_null(@$top_selling[$k + 3]->item->itemContents[0]->slug))

{{ $top_selling[$k + 3]->item->itemContents[0]->title }}({{ $top_selling[$k + 3]->quantity }})

@if ($shop_settings->item_rating_system == 1)
({{ reviewCount($top_selling[$k + 3]->item->id) }})
@endif @php $flash_info = flashAmountStatus( $top_selling[$k + 3]->item->id, $top_selling[$k + 3]->item->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_selling[$k + 3]->item->current_price)) }} @else {{ symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($top_selling[$k + 3]->item->current_price)) }} {{ symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($top_selling[$k + 3]->item->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_selling[$k + 3]->item->id, $customer_id) : false; @endphp
@endif
@endif @endif @endif @endfor @endif
@endif
@endif