@if($products) @php $count = 0; @endphp {{-- Se estiver em categorias, ele irá montar diferente, pulando a cada 4 itens --}} @if (\Request::route()->named('front.category.slug'))
@if(!is_null($product->attributes->where('default', 1)->first()))
@if(!is_null($product->attributes->where('default', 1)->first()->sale_price))
{{ number_format($product->attributes->where('default', 1)->first()->sale_price, 2, ',', '.') }}
@else
{{ number_format($product->attributes->where('default', 1)->first()->price, 2, ',', '.') }}
@endif
@else
@if ($product->sale_price && ($product->sale_price_ini < date("Y-m-d")) && ($product->sale_price_fim >= date("Y-m-d")))
{{ config('cart.currency_symbol') }} {{ number_format($product->price, 2, ',', '.') }} {{ config('cart.currency_symbol') }} {{ number_format($product->sale_price, 2, ',', '.') }}
@else
{{ config('cart.currency_symbol') }} {{ number_format($product->price, 2, ',', '.') }}
@endif
@endif
* Disponível para Curitiba e região
@if(!is_null($product->attributes->where('default', 1)->first())) @if(!is_null($product->attributes->where('default', 1)->first()->sale_price)) {{ number_format($product->attributes->where('default', 1)->first()->sale_price, 2, ',', '.') }}
Promoção!
@else {{ number_format($product->attributes->where('default', 1)->first()->price, 2, ',', '.') }} @endif @else @if ($product->sale_price && (($product->sale_price_ini < date("Y-m-d")) && ($product->sale_price_fim >= date("Y-m-d"))) ) {{ config('cart.currency_symbol') }} {{ number_format($product->price, 2, ',', '.') }} {{ config('cart.currency_symbol') }} {{ number_format($product->sale_price, 2, ',', '.') }} @else {{ config('cart.currency_symbol') }} {{ number_format($product->price, 2, ',', '.') }} @endif @endif* Disponível para Curitiba e região
Nenhum produto.
@endif