@php $collections = DB::table('collections')->whereIn('id',explode(',',$widget->tab_product_collection_id))->get(); @endphp
@if($widget->tab_product_collection_type == 'slider')
chevron_right
chevron_left
@endif
@foreach($collections as $key=>$collection) @php $product_arr = explode(',',$collection->products); $products = DB::table('products')->where('is_active', true)->where('is_online', true)->whereIn('id',$product_arr)->offset(0)->limit($widget->tab_product_collection_limit)->get(); @endphp
@if($widget->tab_product_collection_type == 'slider')
@forelse ($products as $product)
@include('ecommerce::frontend.includes.product-template')
@empty @endforelse
@else
@foreach($products as $product) @include('ecommerce::frontend.includes.product-template') @endforeach
@endif
@endforeach