@php $communityEntityType = $community['type']; $communityEntityId = $community['id']; $communityAverage = $community['average']; $communityCount = $community['count']; $communityReviews = $community['reviews']; $communityMine = $community['mine']; $communityHistogram = $community['histogram']; @endphp
{{ __('ui.community_kicker') }}

{{ __('ui.community_title') }}

{{ __('ui.community_intro') }}

{{ $communityAverage !== null ? number_format($communityAverage, 1, ',', '') : '—' }}
@for($star=1;$star<=5;$star++)@endfor
{{ trans_choice('ui.community_reviews_count', $communityCount, ['count'=>$communityCount]) }}
@if(session('community_status'))
✓ {{ session('community_status') }}
@endif @if(session('social_report_status'))
✓ {{ session('social_report_status') }}
@endif @if($errors->has('community'))
{{ $errors->first('community') }}
@endif
@foreach([5,4,3,2,1] as $rating) @php $ratingCount=$communityHistogram[$rating] ?? 0; $pct=$communityCount ? round(($ratingCount/$communityCount)*100) : 0; @endphp
{{ $rating }} ★{{ $ratingCount }}
@endforeach
{{ $community['verifiedCount'] }}{{ __('ui.community_verified_count') }}
@auth
@csrf
{{ $communityMine ? __('ui.community_edit_review') : __('ui.community_write_review') }}{{ __('ui.community_review_help') }}
@for($rating=5;$rating>=1;$rating--) rating) === $rating) required> @endfor
@if($communityMine){{ __('ui.community_your_review_exists') }}@endif
@else @endauth
@forelse($communityReviews as $review)
{{ strtoupper(mb_substr($review->user?->username ?: $review->user?->name ?: '?',0,1)) }}
@if($review->user?->username){{ '@'.$review->user->username }}@else{{ $review->user?->name }}@endif{{ $review->updated_at?->diffForHumans() }}
{{ $review->rating }}/5@for($i=1;$i<=5;$i++)@endfor@if($review->is_verified)✓ {{ __('ui.community_verified') }}@endif
@if($review->title)

{{ $review->title }}

@endif @if($review->body)

{{ $review->body }}

@endif
@auth @if(auth()->id() !== $review->user_id)
@csrf
{{ __('ui.community_report') }}
@csrf
@else
@csrf @method('DELETE')
@endif @else 👍 {{ __('ui.community_helpful') }} {{ $review->helpful_reactions_count }} @endauth
@if($review->comments->isNotEmpty())
@foreach($review->comments->take(6) as $comment)
{{ $comment->user?->username ? '@'.$comment->user->username : $comment->user?->name }}{{ $comment->created_at?->diffForHumans() }}

{{ $comment->body }}

@auth
@if(auth()->id()===$comment->user_id)
@csrf @method('DELETE')
@else
{{ __('ui.community_report') }}
@csrf
@endif
@endauth
@endforeach
@endif @auth
@csrf
@endauth
@empty
{{ __('ui.community_empty_title') }}

{{ __('ui.community_empty_text') }}

@endforelse