@php $collection = DB::table('collections')->where('id',$widget->product_collection_id)->first(); $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->product_collection_limit)->get(); @endphp

{{$widget->product_collection_title}}

@if($widget->product_collection_type == 'slider')
chevron_right
chevron_left
@endif
@if($widget->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