@foreach($similarProducts as $item)
@if(isset($item['status']) && $item['status'] === 'markdown')
Уценка
@endif
{{--
--}} {{-- @if(!empty($item['pic'][0]))--}} {{--
--}} {{-- @else--}} {{--
--}} {{-- @endif--}} {{--
--}}

{{ $item['name'] }}

@if($item['new_price'] != 0 && $item['price_action'] == 0 && $item['old_price'] == 0) {{ $item['new_price_format'] }} @elseif($item['new_price'] != 0 && $item['price_action'] == 0 && $item['old_price'] != 0) {{ $item['new_price_format'] }} {{ $item['old_price_format'] }} @endif @if($item['sale_percent'] > 0) -{{ $item['sale_percent'] }}% @endif
@if(!isset($item['status']) || $item['status'] !== 'markdown') @endif
@endforeach