@include('partials._provider')

{{round($providerdata->getServiceRating->avg('rating'), 1)}}{{__('messages./5')}}

@php $rating = round($providerdata->getServiceRating->avg('rating'), 1); @endphp
@foreach(range(1,5) as $i) @if($rating >0) @if($rating >0.5) @else @endif @endif @php $rating--; @endphp @endforeach
{{$providerdata->getServiceRating->sum('rating')}} {{__('messages.rating')}} {{count($providerdata->getServiceRating)}} {{__('messages.review')}}
  • {{__('messages.excellent')}}
    {{ $providerdata->getServiceRating->where('rating','5.0')->count('rating') }}
  • {{__('messages.good')}}
    {{ $providerdata->getServiceRating->where('rating','4.0')->count('rating') }}
  • {{__('messages.avarage')}}
    {{ $providerdata->getServiceRating->where('rating','3.0')->count('rating') }}
  • {{__('messages.below_avarage')}}
    {{ $providerdata->getServiceRating->where('rating','2.0')->count('rating') }}
  • {{__('messages.poor')}}
    {{ $providerdata->getServiceRating->where('rating','1.0')->count('rating') }}
{{__('messages.Review')}}