@if($reviewsCount < 1)

{{ trans('translations.be-the-first-to-rate-this-wine') }}

@else

{{ $ratingsAvg }}/5

@endif @if (Auth::check()) @php $ratedValue = $product->isRated(); @endphp @if($ratedValue !== false && is_numeric($ratedValue))
@for ($i=1; $i <= 5; $i++) @if($i <= $ratedValue) @else @endif @endfor
@else
@for ($i=1; $i <= 5; $i++) @endfor
@endif @endif

{{ trans('translations.rate-this-wine-to-change-your-profile') }}

@if (!Auth::check()) @endif

{{ $ratingsCount - $reviewsCount }} {{ trans('translations.notes') }}

{{ $reviewsCount }} {{ trans('translations.rating-views') }}

@if(count($ratings) > 0)
    @foreach ($ratings as $rating)
  • {{ $rating->user->first_name or 'Anonymous' }}
    @for ($i=1; $i <= 5; $i++) @if ($i <= $rating->rating) @else @endif @endfor
    {{ date('d F Y', strtotime($rating->created_at)) }}

    {!! nl2br(e($rating->text)) !!}

  • @endforeach
@else
  • {{ trans('translations.rating-empty-text-1') }} {{ trans('translations.rating-empty-text-2') }}

@endif