{{$titleSlider}}

@foreach($products as $key => $product)
@if(Auth::check()) @if(!$product->favouritedBy(Auth::user())) @else @endif @else @endif {{$product->name}}

{{strip_tags((strlen($product->name)>30)? substr($product->name,0,30).'...' : $product->name)}}

@if($product->price_with_discount() < $product->price) {{currency_format($product->price_with_discount())}} {{currency_format($product->price)}} @if(round($product->discount_percentage()) > 0) {{round($product->discount_percentage())}}@lang('% off') @endif @else @if($product->old_price && ($product->price < $product->old_price)) {{currency_format($product->price)}} {{currency_format($product->old_price)}} @if(round(100 * ($product->old_price - $product->price) / $product->old_price) > 0) {{round(100 * ($product->old_price - $product->price) / $product->old_price)}}@lang('% off') @endif @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) @endif {!! Form::close() !!}
@endforeach