{{-- 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
{{ __('receiver_history.'.$channel.'_overview_hint') }}