@if(count($products) > 0) @include('includes.form_errors')
    @foreach($products as $key => $product)
  • @if(Auth::check()) @if(!$product->favouritedBy(Auth::user())) @else @endif @else @endif @if($product->photo) {{$product->name}} @else {{$product->name}} @endif
    {{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
  • @endforeach
@endif