{{-- Product Images --}}
@if($product->images && !empty($product->images[0]))
{{-- Main Image --}}
{{-- Thumbnails (if more than one image) --}}
@if(count($product->images) > 1)
@endif
{{-- Product Details --}}
@foreach($product->images as $image)
@endforeach
@endif
@else
{{ $product->name }}
@if($product->company)Sold by: {{ $product->company->name }}
@endif
@if($product->sale_price && $product->sale_price < $product->price)
${{ number_format($product->sale_price, 2) }}
${{ number_format($product->price, 2) }}
@else
${{ number_format($product->price, 2) }}
@endif
@if($product->sku)
SKU: {{ $product->sku }}
@endif
{!! $product->description !!} {{-- Sanitize if user-generated --}}
{{-- Add to Cart Button / Stock Status --}}
@if($product->stock_quantity !== null)
{{ $product->stock_quantity > 0 ? $product->stock_quantity . ' in stock' : 'Out of stock' }}
@endif