@extends('layouts.app') @section('title', ($caption ?: $entityName).' โ€” '. __('ui.community_gallery_title').' โ€” Coaster World') @section('content')
โ† {{ __('ui.community_photo_back_gallery') }} {{ __('ui.community_photo_detail_kicker') }}

{{ $entityName }}

@if($url) {{ $caption ?: $entityName }} @endif @if($caption)
{{ $caption }}
@endif
{{ __('ui.community_photo_open_entity') }} @auth @if($interactionsReady && (int) $asset->owner_user_id !== (int) auth()->id())
@csrf
@else ๐Ÿ‘ {{ $helpfulCount }} {{ __('ui.community_photo_helpful_count') }} @endif @else ๐Ÿ‘ {{ $helpfulCount }} {{ __('ui.community_photo_helpful_count') }} @endauth
{{ __('ui.community_photo_discussion_kicker') }}

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

@if(session('community_photo_interaction_status'))
{{ __('ui.community_photo_interaction_'.session('community_photo_interaction_status')) }}
@endif @if(session('social_report_status'))
{{ session('social_report_status') }}
@endif @auth @if($interactionsReady)
@csrf
@else @endif @else @endauth
@forelse($asset->communityPhotoComments as $comment)
@if($comment->user?->username && (($comment->user->socialSettings?->activity_visibility === 'public') || auth()->id() === $comment->user_id)) {{ '@'.$comment->user->username }} @else {{ $comment->user?->name ?: __('ui.community_photo_explorer') }} @endif

{{ $comment->body }}

@auth
@if((int) $comment->user_id === (int) auth()->id() || auth()->user()->is_admin)
@csrf @method('DELETE')
@else
{{ __('ui.community_report') }}
@csrf
@endif
@endauth
@empty @endforelse
@endsection