@php $featuredCategories = $featuredCategories ?? ($item_categories ?? collect()); @endphp

{{ $userSec->featured_section_title ?? ($keywords['Featured Products'] ?? __('Featured Products')) }}

@for ($skeleton = 0; $skeleton <= 5; $skeleton++)
@endfor

{{ $userSec->featured_section_title ?? ($keywords['Featured Products'] ?? __('Featured Products')) }}

@if (count($featuredCategories) == 0)
{{ $keywords['NO PRODUCTS FOUND'] ?? __('NO PRODUCTS FOUND') }}
@else @foreach ($featuredCategories->take(8) as $key => $cat)
@foreach ($cat->items->take(8) as $single_item) @php $product_details = \App\Models\User\UserItem::where([ ['id', $single_item->item_id], ['is_feature', 1], ]) ->with([ 'itemContents' => function ($q) use ($uLang) { $q->where('language_id', '=', $uLang); }, 'sliders', ]) ->first(); if (!$product_details) { $product_details = \App\Models\User\UserItem::where([ ['id', $single_item->item_id], ['status', 1], ]) ->with([ 'itemContents' => function ($q) use ($uLang) { $q->where('language_id', '=', $uLang); }, 'sliders', ]) ->first(); } @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
@php $discount_percent = 0; if (!empty($product_details->previous_price) && $product_details->previous_price > $product_details->current_price) { $discount_percent = round((($product_details->previous_price - $product_details->current_price) / $product_details->previous_price) * 100); } @endphp
Product Product
@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]->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 (!empty($product_details->previous_price) && $product_details->previous_price > $product_details->current_price) {{ symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($product_details->previous_price)) }} @endif @endif
@endif @endforeach
@endforeach @endif