@php /** @var \Illuminate\Support\Collection $channels */ $ch = $channel ?? null; $maxNew = collect($rows)->max('new') ?: 1; @endphp
{{ __('WeChat') }} · {{ __('Insights') }}

{{ __('Follower') }} {{ __('insights') }}

{{ __('New follows, unfollows and total followers over the last 7 days (WeChat data lags ~1 day).') }}

@if ($channels->count() > 1)
@endif
@if ($channels->isEmpty())
W

{{ __('Connect a WeChat channel first.') }}

{{ __('Connect a channel') }}
@else @if ($error)
{{ __('Could not reach WeChat') }}: {{ $error }}
@endif
{{ __('Total followers') }}
{{ $total !== null ? number_format($total) : '—' }}
{{ __('New (7d)') }}
{{ number_format($newSum) }}
{{ __('Unfollows (7d)') }}
{{ number_format($cancelSum) }}
@if (! empty($rows))
{{ __('Daily') }}
@foreach ($rows as $r)
{{ $r['date'] }} +{{ $r['new'] }} · -{{ $r['cancel'] }}@if($r['total'] !== null) · {{ number_format($r['total']) }} {{ __('total') }}@endif
@endforeach
@elseif (! $error)
{{ __('No follower data yet — WeChat analytics need the Official Account to have followers and appear a day after activity.') }}
@endif @endif