{{ __('tutor.student_reviews') }}

{{ number_format($tutorAvgRatings , 1) }}
@php $fullStars = floor($tutorAvgRatings); $halfStars = ($tutorAvgRatings - $fullStars >= 0.5) ? 1 : 0; $emptyStars = 5 - $fullStars - $halfStars; @endphp @for ($i = 0; $i < $fullStars; $i++) @endfor @if ($halfStars) @endif @for ($i = 0; $i < $emptyStars; $i++) @endfor {{ __('tutor.based_on') }} {{ $tutorReviewCount }} {{ $tutorReviewCount == 1 ? __('tutor.rating') : __('tutor.ratings') }}
    @foreach ($tutorRatingsCount as $rating => $count)
  • {{ $rating }}.0 {{ $count }}
    @php $progressWidth = ($tutorReviewCount > 0) ? ($count / $tutorReviewCount) * 100 : 0; @endphp
  • @endforeach
@if ($allTutorRatings->count() > 0)
    @foreach ($allTutorRatings as $review)
  • @if (!empty($review?->profile?->image) && Storage::disk(getStorageDisk())->exists($review?->profile?->image)) {{$review->profile?->image}} @else {{ $review->profile?->image }} @endif

    {{ $review?->profile?->short_name }} @if ($review?->profile?->user?->address?->country?->short_code) @endif

    {{$review->created_at->format('M d, Y') }}
    @php $fullStars = floor($review->rating); $halfStars = ($review->rating - $fullStars >= 0.5) ? 1 : 0; $emptyStars = 5 - $fullStars - $halfStars; @endphp @for ($i = 0; $i < $fullStars; $i++) @endfor @if ($halfStars) @endif @for ($i = 0; $i < $emptyStars; $i++) @endfor
    {{ number_format($review->rating, 1) }}/5.0
    @php $comment = strip_tags($review->comment); $shortComment = Str::limit($comment, 180, preserveWords: true); @endphp
    @if (Str::length($comment) > 180)

    {{ $shortComment }} {{ __('general.show_more') }}

    {{ $comment }} {{ __('general.show_less') }}

    @else
    {!! $comment !!}
    @endif
  • @endforeach
@if($allTutorRatings->total() > 1)
{{ $allTutorRatings->links('pagination.pagination') }}
@endif
@else
no record
{{ __('general.no_reviews_yet') }}
{{ __('general.no_records') }}
@endif