@foreach($products as $product) @php $product_id=$product->product_id; $product_image=$product->image; $product_variation_first_image=isset($product->images[0]) ? $product->images[0]->image : ''; $category_name=$category->name; $product_code=$product->product->product_code; $product_price=$product->price; @endphp @php $class='col-3'; @endphp @isset($grid_type) @if($grid_type=='four') @php $class='col-3'; @endphp @elseif($grid_type=='three') @php $class='col-4'; @endphp @elseif($grid_type=='two') @php $class='col-6'; @endphp @endif @endisset
@if($product->visible_type == 'I') {{ $category_name.' '.$product_code }} @else @endif
{!! $product_code !!}
@endforeach
{!! $products->links() !!}