@forelse ($channels as $channel)

{{ $channel->display_name ?? $channel->name }}

@if ($channel->platformInstance) {{ $channel->platformInstance->name }} @endif
@php($impact = $deletionImpact[$channel->id] ?? ['articles' => 0, 'publications' => 0])
@if ($channel->description)

{{ $channel->description }}

@endif
Linked Accounts ({{ $channel->platformAccounts->count() }})
@if ($channel->platformAccounts->isNotEmpty())
@foreach ($channel->platformAccounts->take(3) as $account)
{{ $account->username }} @if ($account->isUnhealthy()) Credentials failing @endif
@endforeach @if ($channel->platformAccounts->count() > 3) +{{ $channel->platformAccounts->count() - 3 }} more @endif
@else

No accounts linked

@endif
{{ $channel->is_active ? 'Active' : 'Inactive' }} {{ $channel->created_at->format('M d, Y') }}
@empty

No channels

No platform channels have been configured yet.

@endforelse
@if ($managingChannel) @if ($availableAccounts->isNotEmpty())

Available Accounts

@foreach ($availableAccounts as $account)
{{ $account->username }}
@endforeach
@else

No available accounts to link.

@endif
@endif @if ($showCreateModal)
@error('newPlatformInstanceId')

{{ $message }}

@enderror @if ($communityLoadError)

{{ $communityLoadError }}

@endif
@if ($availableCommunities)
@error('newCommunityId')

{{ $message }}

@enderror
@endif
@error('newLanguageId')

{{ $message }}

@enderror
@error('newDescription')

{{ $message }}

@enderror
@endif @if ($editingChannel)
@error('editDisplayName')

{{ $message }}

@enderror
@error('editLanguageId')

{{ $message }}

@enderror
@error('editDescription')

{{ $message }}

@enderror
Community
{{ $editingChannel->name }}
Instance
{{ $editingChannel->platformInstance->name }}

The community and instance identify this channel on the remote platform and cannot be changed. Every route attached to this channel publishes here. Create a new channel to post somewhere else.

@endif