@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
@for ($i = 0; $i < $fullStars; $i++) @endfor @if ($halfStar) @endif @for ($i = 0; $i < $emptyStars; $i++) @endfor

{{ $shop->avg_rating }}

{{ $shop->shop->shop_name ?? '' }}

{{ $shop->shop->cityRelation->name ?? '' }}, {{ $shop->shop->countryRelation->name ?? '' }}

{{ $shop->shop->services_list ? $shop->shop->products_list->count() : 0 }}{{__('Services')}}
{{ $shop->shop->products_list ? $shop->shop->products_list->count() : 0 }}{{__('products')}}
@endforeach @elseif($data['type'] == 'products') @foreach($wishlists as $product) @php $image = $product->product->product_image; $profile_image = $product->provider_profile_image; $rating = round($product->avg_rating, 1); $reviewsCount = $product->reviews_count ?? 0; $fullStars = floor($rating); $halfStar = ($rating - $fullStars) >= 0.5 ? 1 : 0; $emptyStars = 5 - ($fullStars + $halfStar); @endphp
product @if($product->popular && $product->popular == 1)
{{__('trending')}}
@elseif($product->featured && $product->featured == 1)
{{__('best_seller')}}
@endif
br and-img-01
@for ($i = 0; $i < $fullStars; $i++) @endfor @if ($halfStar) @endif @for ($i = 0; $i < $emptyStars; $i++) @endfor

{{ $product->avg_rating }} ({{ $product->reviews_count ?? 0}} {{__('reviews')}})

{{ $product->product->source_name ?? '' }}
{{ getDefaultCurrencySymbol() }}{{ $product->product->source_price ?? '' }}
@endforeach @elseif($data['type'] == 'services') @foreach($wishlists as $service) @php $image = $service->service?->image; $shop = $service->service?->shop; $shop_image = $shop?->shop_logo; $rating = round($service->avg_rating, 1); $reviewsCount = $service->reviews_count ?? 0; $fullStars = floor($rating); $halfStar = ($rating - $fullStars) >= 0.5 ? 1 : 0; $emptyStars = 5 - ($fullStars + $halfStar); @endphp
service
{{ $service->service?->categories?->name ?? ''}}
@if($service->popular == 1) @elseif($service->featured == 1) @endif

{{ $service->service?->location ?? '' }}

{{ $service->service?->source_name ?? '' }}

{{ $service->service?->categories?->name ?? ''}}

@if($shop) shop
{{ $shop->shop_name ?? ''}}

@for ($i = 0; $i < $fullStars; $i++) @endfor @if ($halfStar) @endif @for ($i = 0; $i < $emptyStars; $i++) @endfor {{ $rating }} ({{ $reviewsCount }} {{__('reviews')}})

@endif

{{__('start_from')}}

{{ getDefaultCurrencySymbol() }}{{ $service->service?->source_price ?? '' }}
@endforeach @endif