@foreach ($categories as $cat) @if ($cat->is_feature == 1)
@if ($ubs->left_banner_section == 1) @if ($banners) @php $leftBanners = $banners->where('position', 'left')->take(1); @endphp @if ($leftBanners) @foreach ($leftBanners as $banner)
@endforeach @endif @endif @endif
@for ($skeleton = 1; $skeleton <= 3; $skeleton++)

@endfor
@endif @endforeach @foreach ($categories as $cat) @if ($cat->is_feature == 1)
@if ($ubs->left_banner_section == 1) @if ($banners) @php $leftBanners = $banners->where('position', 'left')->take(1); @endphp @if ($leftBanners) @foreach ($leftBanners as $banner)
@endforeach @endif @endif @endif

{{ $cat->name }}

@foreach ($cat->items as $single_item) @php $product_details = \App\Models\User\UserItem::where('id', $single_item->item_id) ->with([ 'itemContents' => function ($q) use ($uLang) { $q->where('language_id', '=', $uLang); }, 'sliders', ]) ->where('status', 1) ->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
@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
{{ $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)) }} @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 ($product_details->flash == 1) {{ $product_details->flash_amount }}% @endif
@endif @endforeach
@endif @endforeach