@for ($skeleton = 0; $skeleton <= 1; $skeleton++)
@for ($skelet = 0; $skelet <= 1; $skelet++)
@endfor
@endfor
@if ($ubs->right_banner_section == 1) @if ($banners) @php $totalBanners = $banners->where('position', 'right')->values(); $rightBanner = $totalBanners[$i] ?? null; @endphp @if (!is_null($rightBanner))
@endif @endif @endif
@php $products = json_decode($tabs[$i]->products, true); @endphp @if (!is_null($products)) @foreach (array_chunk($products, 2) as $chunk) @php $product_details1 = \App\Models\User\UserItem::where('id', $chunk[0]) ->with([ 'itemContents' => function ($q) use ($uLang) { $q->where('language_id', '=', $uLang); }, 'sliders', ]) ->first(); $product_details2 = isset($chunk[1]) ? \App\Models\User\UserItem::where('id', $chunk[1]) ->with([ 'itemContents' => function ($q) use ($uLang) { $q->where('language_id', '=', $uLang); }, 'sliders', ]) ->first() : null; @endphp
@if ($product_details1 && count($product_details1->itemContents) > 0)
@includeIf('user-front.jewellery.partials.product-inline', [ 'product' => $product_details1, ])
@endif @if ($product_details2 && count($product_details2->itemContents) > 0)
@includeIf('user-front.jewellery.partials.product-inline', [ 'product' => $product_details2, ])
@endif
@endforeach @endif
@if ($ubs->right_banner_section == 1) @if ($banners) @php $totalBanners = $banners->where('position', 'right')->values(); $rightBanner = $totalBanners[$i] ?? null; @endphp @if (!is_null($rightBanner))
@endif @endif @endif