@forelse ($shops as $shop)
@if($shop->is_promoted ?? false) @endif
@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->shop_name }} @if($shop->is_verified) @endif

{{ $shop->stateRelation->name ?? 'N/A' }}, {{ $shop->countryRelation->name ?? 'N/A' }}

{{ $shop->services_count ?? 0 }}{{__('services') }}
{{ $shop->actual_products_count ?? 0 }}{{__('products') }}
@empty

{{__('no_shops_found') }}

{{__('try_adjusting_your_search_or_filter_criteria') }}.

@endforelse