@php
$rating = $shop->ratings_avg_rating ?? 0;
$fullStars = floor($rating);
$halfStar = $rating - $fullStars >= 0.5;
$emptyStars = 5 - $fullStars - ($halfStar ? 1 : 0);
@endphp
@for ($i = 0; $i < $fullStars; $i++)
@endfor
@if ($halfStar)
@endif
@for ($i = 0; $i < $emptyStars; $i++)
@endfor
{{ number_format($rating, 1) }}
{{ $shop->stateRelation->name ?? 'N/A' }}, {{ $shop->countryRelation->name ?? 'N/A' }}
{{ $shop->services_count ?? 0 }}{{__('services') }}
{{ $shop->actual_products_count ?? 0 }}{{__('products') }}