@for($sk = 0; $sk < 4; $sk++)
@endfor
@php $products = json_decode($tabs[$i]->products, true); @endphp @if(!is_null($products) && count($products) > 0)
@foreach($products as $prod_id) @php $product = \App\Models\User\UserItem::where('id', $prod_id) ->with([ 'itemContents' => function($q) use ($uLang) { $q->where('language_id', '=', $uLang); }, 'sliders', ]) ->first(); @endphp @if(!is_null($product) && count($product->itemContents) > 0) @php $pContent = $product->itemContents->first(); $flash_i = flashAmountStatus($product->id, $product->current_price); $flash_s = $flash_i['status']; if($flash_s) { $p_new = symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($flash_i['amount'])); $p_old = symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($product->current_price)); } else { $p_new = symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($product->current_price)); $p_old = symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($product->previous_price)); } @endphp @endif @endforeach
@else

{{ $keywords['No products found'] ?? __('No products found') }}

@endif