@auth @if ($canAddReview)
@if ($ratingReviews)

{{ __('messages.reviews_rating') }}

@for ($i = 1; $i <= 5; $i++)
@endfor
@endif
@endif @endauth @if (auth()->check() && $activeReviews->count() >= 1 && $inactiveReview)
{{ __('messages.reviews_add') }} {{ trans_choice('messages.record_active', $inactiveReview > 1 ? 2 : 1) }}
@endif @if ($activeReviews->count() > 0)
{{ __('messages.reviews_count') }} {{ $activeReviews->count() }} @if ($ratingReviews)
{{ __('messages.reviews_average') }} {{ number_format($activeReviews->avg('rating'), 1) }}
@endif
@endif
@forelse($activeReviews as $comment)

{{ $comment->user->name }}

{{ Carbon\Carbon::parse($comment->created_at)->format('d.m.Y H:i') }}

@auth @if (Auth::check() && (Auth::user()->id == $comment->user->id || (Auth::user()->company && Auth::user()->company->admin_permission == 1))) @endif @endauth

{{ $comment->body }}

@if (config('review.like') === true) @if (auth()->check()) @endif @endif @if ($ratingReviews)
@for ($i = 1; $i <= 5; $i++) @if ($i <= $comment->rating) @else @endif @endfor @endif
@empty

{{ __('messages.reviews_no') }}

@if (auth()->check() && $inactiveReview)
{{ __('messages.reviews_add') }} {{ trans_choice('messages.record_active', $inactiveReview > 1 ? 2 : 1) }}
@endif
@endforelse
{{ $reviews->links() }}