@forelse($products as $product) @php $image_url = count($product->media) > 0 ? $product->media->first()->display_url : (!empty($product->product_image) ? asset('/uploads/img/' . rawurlencode($product->product_image)) : asset('/img/default.png')); @endphp @php ob_start(); @endphp {{ $product->name }} @if($product->type == 'variable') - {{ $product->variation }} @endif ({{ $product->sub_sku }}) @if(!empty($show_prices)) {{ __('lang_v1.default') }} - @format_currency($product->selling_price) @foreach($product->group_prices as $group_price) @if(array_key_exists($group_price->price_group_id, $allowed_group_prices)) {{ $allowed_group_prices[$group_price->price_group_id] }} - @format_currency($group_price->price_inc_tax) @endif @endforeach @endif @php $title = trim(preg_replace('/\s+/', ' ', strip_tags(ob_get_clean()))); @endphp
{{ $product->name }} @if($product->type == 'variable') - {{ $product->variation }} @endif

{{ $product->sub_sku }}

@if($product->enable_stock) {{ @num_format($product->qty_available) }} {{ $product->unit }} @lang('lang_v1.in_stock') @else -- @endif

@if(!empty($show_prices))
@format_currency($product->selling_price) @foreach($product->group_prices as $group_price) @if(array_key_exists($group_price->price_group_id, $allowed_group_prices)) {{ $allowed_group_prices[$group_price->price_group_id] }}: @format_currency($group_price->price_inc_tax) @endif @endforeach
@endif
@empty

@lang('lang_v1.no_products_to_display')

@endforelse