{{ $userSec->tab_section_title ?? ($keywords['Tab Section'] ?? __('Tab Section')) }}

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

@endfor

{{ $userSec->tab_section_title ?? ($keywords['Tab Section'] ?? __('Tab Section')) }}

@if (count($tabs) == 0)
{{ $userSec->category_section_title ?? ($keywords['NO PRODUCTS FOUND'] ?? __('NO PRODUCTS FOUND')) }}
@else @for ($i = 0; $i < count($tabs); $i++)
@php $product_ids = json_decode($tabs[$i]->products, true) ?? []; $valid_products = \App\Models\User\UserItem::whereIn('id', $product_ids) ->where('status', 1) ->pluck('id') ->toArray(); if (empty($valid_products)) { $valid_products = \App\Models\User\UserItem::where('user_id', $user->id) ->where('status', 1) ->orderBy('id', 'DESC') ->take(8) ->pluck('id') ->toArray(); } @endphp @if (!empty($valid_products)) @for ($j = 0; $j < count($valid_products); $j++) @if ($j < 8)
@php $product_details = \App\Models\User\UserItem::where('id', $valid_products[$j]) ->with([ 'itemContents' => function ($q) use ($uLang) { $q->where('language_id', '=', $uLang); }, 'sliders', ]) ->first(); @endphp @if (!is_null(@$product_details->itemContents[0]->slug))
Product Product
@php $flash_info = flashAmountStatus( $product_details->id, $product_details->current_price, ); $product_current_price = $flash_info['amount']; $flash_status = $flash_info['status']; @endphp
@if ($shop_settings->catalog_mode != 1) @endif @php $customer_id = Auth::guard('customer')->check() ? Auth::guard('customer')->user()->id : null; $checkWishList = $customer_id ? checkWishList($product_details->id, $customer_id) : false; @endphp
{{ $product_details->itemContents[0]->category->name }}

{{ $product_details->itemContents[0]->title }}

@if ($flash_status == true) {{ symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($product_current_price)) }} {{ symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($product_details->current_price)) }} @else {{ symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($product_details->current_price)) }} @if ($product_details->previous_price > 0) {{ symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($product_details->previous_price)) }} @endif @endif
@php $item_label = DB::table('labels') ->where('id', $product_details->itemContents[0]->label_id) ->first(); $label = $item_label->name ?? null; $color = $item_label->color ?? null; @endphp {{ $label }} @if ($flash_status == true) {{ $product_details->flash_amount }}% @endif
@endif
@endif @endfor @else
{{ $userSec->category_section_title ?? ($keywords['NO PRODUCTS FOUND'] ?? __('NO PRODUCTS FOUND')) }}
@endif
@endfor @endif