{{ $community->name }}

{{ __('Community Management Dashboard') }}

{{ __('View Community') }}
@csrf @method('PUT')
@if($community->getFirstMediaUrl('cover_image')) @endif

{{ __('Channels') }}

@forelse($community->channels as $channel)
#

{{ $channel->name }}

{{ $channel->description ?? __('No description') }} • {{ $channel->topics_count ?? 0 }} {{ __('topics') }}

@csrf @method('DELETE')
@empty

{{ __('No channels yet. Create one to get started.') }}

@endforelse

{{ __('All Topics') }}

{{ __('View in Community →') }}
@php $topicCount = 0; @endphp @foreach($community->channels as $channel) @foreach($channel->topics as $topic) @php $topicCount++; @endphp
#{{ $channel->name }} • {{ $topic->creator->name ?? __('Unknown') }} • {{ $topic->created_at->diffForHumans() }} @if($topic->is_pinned) PINNED @endif

{{ $topic->title }}

{{ strip_tags($topic->body) }}

{{ $topic->replies_count ?? 0 }} {{ __('replies') }}
{{ __('View') }}
@csrf @method('DELETE')
@endforeach @endforeach @if($topicCount === 0)

{{ __('No topics yet.') }}

@endif

{{ __('Live Sessions') }}

@php $now = now(); $events = $community->events()->orderBy('scheduled_date', 'desc')->get(); @endphp
@forelse($events as $event)

{{ $event->title }}

@if($event->isConvertedToSession()) {{ __('Active') }} @elseif($event->scheduled_date < $now) {{ __('Expired') }} @else {{ __('Upcoming') }} @endif

{{ \Carbon\Carbon::parse($event->scheduled_date)->format('M d, Y @ h:i A') }} • {{ $event->location_type === 'zoom' ? 'Zoom' : 'In-Person' }}

@csrf @method('DELETE')
@empty

{{ __('No sessions scheduled') }}

@endforelse