@if($data['type'] == 'shops') @foreach($wishlists as $shop) @php $image = $shop->shop?->shop_logo ? uploadedAsset($shop->shop?->shop_logo, 'default_shop_logo') : uploadedAsset('', 'default2'); $rating = round($shop->avg_rating, 1); $reviewsCount = $shop->reviews_count ?? 0; $fullStars = floor($rating); $halfStar = ($rating - $fullStars) >= 0.5 ? 1 : 0; $emptyStars = 5 - ($fullStars + $halfStar); @endphp
{{ $shop->avg_rating }}
{{ $shop->shop->cityRelation->name ?? '' }}, {{ $shop->shop->countryRelation->name ?? '' }}
{{ $product->avg_rating }} ({{ $product->reviews_count ?? 0}} {{__('reviews')}})
{{ $service->service?->location ?? '' }}
{{ $service->service?->categories?->name ?? ''}}
@for ($i = 0; $i < $fullStars; $i++) @endfor @if ($halfStar) @endif @for ($i = 0; $i < $emptyStars; $i++) @endfor {{ $rating }} ({{ $reviewsCount }} {{__('reviews')}})
{{__('start_from')}}