@foreach($productsDiscount as $product)
{{$product->name}}

{{$product->name}}

@if($product->price_with_discount() < $product->price) {{currency_format($product->price_with_discount())}} {{currency_format($product->price)}} {{round($product->discount_percentage())}}% @lang('off') @else @if($product->old_price && ($product->price < $product->old_price)) {{currency_format($product->price)}} {{currency_format($product->old_price)}} {{round(100 * ($product->old_price - $product->price) / $product->old_price)}}% @lang('off') @else {{currency_format($product->price)}} @endif @endif
@if($product->in_stock < 1) @lang('Out of Stock!') @elseif($product->in_stock < 4) @lang('Only') {{$product->in_stock}} @lang('left in Stock!') @endif

{!! Form::open(['method'=>'patch', 'route'=>['front.cart.add', $product->id], 'id'=>'cart-form']) !!} @if($product->in_stock > 0) {!! Form::submit(__('Add To Cart'), ['class'=>'btn btn-xs btn-success', 'name'=>'submit_button']) !!} @endif @lang('View Details') {!! Form::close() !!}
@endforeach