@if ($ubs->middle_right_banner_section == 1) @if ($banners) @php $rightBanners = $banners->where('position', 'left')->values(); $banner = $rightBanners[$i] ?? null; @endphp @if ($banner)
@endif @endif @endif

{{ $tabs[$i]->name }}

@for ($skeleton = 0; $skeleton <= 1; $skeleton++)
@for ($skel = 1; $skel <= 2; $skel++)
@endfor
@endfor
@if ($ubs->middle_right_banner_section == 1) @if ($banners) @php $rightBanners = $banners->where('position', 'left')->values(); $banner = $rightBanners[$i] ?? null; @endphp @if ($banner)
Banner
@if ($banner->title)

{{ $banner->title }}

@endif @if ($banner->subtitle)

{{ $banner->subtitle }}

@endif
@if ($banner->banner_url && $banner->button_text) {{ $banner->button_text }} @endif
@endif @endif @endif

{{ $tabs[$i]->name }}

@php $products = json_decode($tabs[$i]->products, true); $active_p_ids = \App\Models\User\UserItem::where('user_id', $user->id) ->where('status', 1) ->whereHas('itemContents', function ($q) use ($uLang) { $q->where('language_id', '=', $uLang); }) ->pluck('id') ->toArray(); if (empty($products) || !is_array($products)) { $products = array_slice($active_p_ids, 0, 8); } else { $products = array_values(array_intersect($products, $active_p_ids)); if (empty($products)) { $products = array_slice($active_p_ids, 0, 8); } } @endphp @if (!is_null($products)) @for ($k = 0; $k < count($products); $k += 2) @php $product_details1 = \App\Models\User\UserItem::where('id', $products[$k]) ->with([ 'itemContents' => function ($q) use ($uLang) { $q->where('language_id', '=', $uLang); }, 'sliders', ]) ->first(); $product_details2 = null; if ($k + 1 < count($products)) { $product_details2 = \App\Models\User\UserItem::where('id', $products[$k + 1]) ->with([ 'itemContents' => function ($q) use ($uLang) { $q->where('language_id', '=', $uLang); }, 'sliders', ]) ->first(); } @endphp
@if (isset($product_details1) && count($product_details1->itemContents) > 0)
Product Product
{{ @$product_details1->itemContents[0]->category->name }} @if (count($product_details1->itemContents) > 0)
{{ $product_details1->itemContents[0]->title }}
@endif @if ($shop_settings->item_rating_system == 1)
({{ reviewCount($product_details1->id) }})
@endif @php $flash_info = flashAmountStatus($product_details1->id, $product_details1->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($product_details1->current_price)) }} @else {{ symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($product_details1->current_price)) }} {{ symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($product_details1->previous_price)) }} @endif
@php $customer_id = Auth::guard('customer')->check() ? Auth::guard('customer')->user()->id : null; $checkWishList = $customer_id ? checkWishList($product_details1->id, $customer_id) : false; @endphp @if ($shop_settings->catalog_mode != 1) @endif
@endif @if (isset($product_details2) && count($product_details2->itemContents) > 0)
Product Product
{{ @$product_details2->itemContents[0]->category->name }} @if (count($product_details2->itemContents) > 0)
{{ $product_details2->itemContents[0]->title }}
@endif @if ($shop_settings->item_rating_system == 1)
({{ reviewCount($product_details2->id) }})
@endif @php $flash_info = flashAmountStatus($product_details2->id, $product_details2->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($product_details2->current_price)) }} @else {{ symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($product_details2->current_price)) }} {{ symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($product_details2->previous_price)) }} @endif
@php $customer_id = Auth::guard('customer')->check() ? Auth::guard('customer')->user()->id : null; $checkWishList = $customer_id ? checkWishList($product_details2->id, $customer_id) : false; @endphp @if ($shop_settings->catalog_mode != 1) @endif
@endif
@endfor @endif