@foreach($featured_products as $variation)
	<div class="col-md-3 col-xs-4 product_list no-print">
		<div class="product_box" data-toggle="tooltip" data-placement="bottom" data-variation_id="{{$variation->id}}" title="{{$variation->full_name}}">

		<div class="image-container" 
			style="background-image: url(
					{{-- @if(count($variation->media) > 0)
						$variation->media->first()->display_url --}}
					@if($variation->media)
						{{ $variation->media }}
					@elseif(!empty($variation->product->image_url))
						{{$variation->product->image_url}}
					@else
						{{asset('/img/default.png')}}
					@endif
				);
			background-repeat: no-repeat; background-position: center;
			background-size: contain;">
			
		</div>
		{{-- <div class="image-container" style="background-image: url({{asset('/img/default.png')}}); background-repeat: no-repeat; background-position: center;
		background-size: contain;"></div> --}}

		<div class="text_div">
			<small class="text text-muted">{{$variation->product_name}} 
			{{-- @if($variation->product->type == 'variable')
				- {{$variation->product_name}}
			@endif --}}
			</small>

			<small class="text-muted">
				({{$variation->sub_sku}})
			</small>
		</div>
			
		</div>
	</div>
@endforeach