@for ($skeleton = 1; $skeleton <= 4; $skeleton++) @endfor
shape shape shape shape shape shape
@php $products = json_decode($tabs[$i]->products, true); @endphp @if (!is_null($products))
@for ($j = 0; $j < count($products); $j++) @php $product_details = \App\Models\User\UserItem::where('id', $products[$j]) ->with([ 'itemContents' => function ($q) use ($uLang) { $q->where('language_id', '=', $uLang); }, 'sliders', ]) ->first(); if (is_null($product_details)) { continue; } @endphp @if (!is_null(@$product_details->itemContents[0]->slug)) @php $flash_info = flashAmountStatus($product_details->id, $product_details->current_price); $product_current_price = $flash_info['amount']; $flash_status = $flash_info['status']; @endphp
Product Product
{{ $product_details->itemContents[0]->category->name }}
{{ $product_details->itemContents[0]->title }}
@if ($shop_settings->item_rating_system == 1)
({{ reviewCount($product_details->id) }})
@endif
@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)) }} {{ symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($product_details->previous_price)) }} @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 @if ($shop_settings->catalog_mode != 1) @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 @if ($item_label) {{ $label }} @endif @if ($flash_status == true) {{ $product_details->flash_amount }}% @endif
@endif @endfor
@endif
@if ($ubs->right_banner_section == 1) @if ($banners) @php $rightBanners = $banners->where('position', 'right')->values(); $banner = $rightBanners[$i] ?? null; @endphp @if ($banner)
@endif @endif @endif
shape shape shape shape shape shape