{{-- Read-only retained statistics; no inferred delivery status or historical totals. --}} @php $stats = $receiverStats ?? $receiver->bounceStickData(); $isSms = $channel === 'sms'; $sent = (int) ($stats['sent'] ?? 0); $rate = static fn ($count) => number_format($sent > 0 ? 100 * (int) $count / $sent : 0, 1, app()->getLocale() === 'sv' ? ',' : '.', ' '); $statTiles = $isSms ? [ ['label' => __('receiver_history.sms_records'), 'value' => isset($smsHistory) ? $smsHistory->total() : 0], ] : [ ['label' => __('receiver.nhForm.statsSent'), 'icon' => 'send', 'value' => $stats['sent'] ?? 0], ['label' => __('receiver.nhForm.statsOpened'), 'icon' => 'eye', 'value' => $stats['open'] ?? 0, 'rate' => $rate($stats['open'] ?? 0)], ['label' => __('receiver.nhForm.statsBounced'), 'icon' => 'warning', 'value' => $stats['bounce'] ?? 0, 'rate' => $rate($stats['bounce'] ?? 0)], ]; @endphp

{{ __($isSms ? 'receiver_tabs.smsStatistics' : 'receiver_tabs.emailStatistics') }}

{{ __('receiver_history.'.$channel.'_overview_hint') }}

@foreach ($statTiles as $tile)
isset($tile['icon'])])>@isset($tile['icon'])
{{ formatNumber($tile['value']) }}@isset($tile['rate']) ({{ $tile['rate'] }} %)@endisset
@endforeach
@include('receiver.partials.nh-activity', ['channel' => $channel]) @isset($emailHistory) @include('receiver.partials.nh-sendout-history', ['channel' => $channel]) @endisset