@foreach($similarProducts as $item)
@if(isset($item['status']) && $item['status'] === 'markdown')
Уценка
@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
@php $isOnBasket = in_array($item['id'], $userIDSBasket); @endphp @if(!isset($item['status']) || $item['status'] !== 'markdown') @endif
@endforeach