@foreach($products as $product) @php $photos = json_decode($product->photos, true); @endphp
{{ $product->title }}
{{ Helper::starsCount($product->id) ?? 0 }}
{{ Helper::reviewsCount($product->id) ?? 0 }}
{{ $product->newprice ?? $product->price }}
@if($product->newprice != null)
{{ $product->price }} ₽
@endif
@endforeach {{-- @if (isset($category->categories)) @foreach ($category->categories as $category) @include('includes/market/products', ['category' => $category, 'products' => $category->products]) @endforeach @endif --}}