@foreach ($products as $product)
@endforeach
@else
@include('frontend.shop.not_found')
@endif
@php
$rating = $product?->avg_rating ?? 0;
$fullStars = floor($rating);
$halfStar = $rating - $fullStars >= 0.5 ? 1 : 0;
$emptyStars = 5 - $fullStars - $halfStar;
@endphp
@for ($i = 0; $i < $fullStars; $i++)
{{ get_svg('innerpage.star_full') }}
@endfor
@if ($halfStar)
{{ get_svg('innerpage.half_star') }}
@endif
@for ($i = 0; $i < $emptyStars; $i++)
{{ get_svg('innerpage.empty_star') }}
@endfor
({{ $product->review_count }} {{ __('Ratings') }})
{{ $product?->name }}
{!! $product->price_display !!}
{{ $product?->translate?->short_description }}