@extends('layouts.app') @section('title', __('ui.community_feed_title').' Β· Coaster World') @section('content') @php $kindIcons = [ 'rides' => '🎒', 'visits' => '🎟️', 'badges' => 'πŸ…', 'challenges' => 'πŸ†', 'road_trips' => 'πŸ—ΊοΈ', 'reviews' => '⭐', 'photos' => 'πŸ“·', ]; $filters = ['all', 'rides', 'visits', 'badges', 'challenges', 'road_trips', 'reviews', 'photos']; @endphp
{{ __('ui.community_feed_kicker') }}

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

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

πŸ›‘οΈ

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

{{ __('ui.community_feed_people') }} {{ $actor_count }} {{ $scope === 'friends' ? __('ui.community_feed_people_friends') : __('ui.community_feed_people_public') }}
{{ __('ui.community_feed_stream_kicker') }}

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

{{ $events->total() }} {{ __('ui.community_feed_events') }}
@if($events->count())
@foreach($events as $event)
{{ $kindIcons[$event['kind']] ?? 'β€’' }}
@if($event['actor_url']) {{ $event['actor_initial'] }} @else {{ $event['actor_initial'] }} @endif
@if($event['actor_url']) {{ '@'.$event['actor_name'] }} @else {{ $event['actor_name'] }} @endif {{ __('ui.community_feed_action_'.$event['kind']) }}
@if($event['image_url']) {{ $event['subtitle'] ?: $event['title'] }} @endif
@if($event['url']) {{ $event['title'] }} @else {{ $event['title'] }} @endif @if($event['subtitle'])

{{ $event['subtitle'] }}

@endif @if($event['body'])
{{ $event['body'] }}
@endif @if($event['kind'] === 'reviews')
{{ str_repeat('β˜…', (int) ($event['meta']['rating'] ?? 0)) }}{{ str_repeat('β˜†', max(0, 5 - (int) ($event['meta']['rating'] ?? 0))) }} @if($event['meta']['verified'] ?? false)βœ“ {{ __('ui.community_review_verified') }}@endif
@elseif($event['kind'] === 'badges')
{{ __('ui.community_feed_badge_tier_'.($event['meta']['tier'] ?? 'bronze')) }}
@elseif($event['kind'] === 'challenges' && isset($event['meta']['score']))
{{ __('ui.community_feed_score', ['score' => $event['meta']['score']]) }}
@elseif($event['kind'] === 'photos')
πŸ‘ {{ (int)($event['meta']['helpful'] ?? 0) }}πŸ’¬ {{ (int)($event['meta']['comments'] ?? 0) }}
@endif
@endforeach
@if($events->hasPages())
{{ $events->links() }}
@endif @else
{{ $scope === 'friends' ? 'πŸ‘₯' : '🌍' }}
{{ $scope === 'friends' ? __('ui.community_feed_empty_friends_title') : __('ui.community_feed_empty_community_title') }}

{{ $scope === 'friends' ? __('ui.community_feed_empty_friends_text') : __('ui.community_feed_empty_community_text') }}

@if($scope === 'friends') {{ __('ui.community_feed_find_friends') }} @endif
@endif
@endsection