@php $user=Auth::user() ?? ""; $businessDetail=$user->getBusinessDetail; $rating=$businessDetail->rating->avg('rating'); $bracket=count($businessDetail->rating); @endphp
@if(\Illuminate\Support\Facades\File::exists(public_path($businessDetail->logoImageUrl))) @else @endif

{{$businessDetail->businessName}}

Owner

Business :{{$businessDetail->businessType}}

    @if($rating == 0)
  • @elseif($rating == 1 || $rating < 2)
  • @elseif($rating == 2 || $rating < 3)
  • @elseif($rating == 3 || $rating < 3)
  • @elseif($rating==4 || $rating < 4)
  • @elseif($rating==5 || $rating < 5)
  • @endif   ({{$bracket}})      See all

Tools