{{-- Totals of one sendout as stat tiles (#2957 slice 3, card #3017), replacing the old sendout/partials/stats box; included by sendout/receivers and sendout/show. Same numbers and links as that box: sent, opened and bounced (the last two filter the receivers page), clicks, read online and remaining. Its "?" tooltips became hint text. Expects: $sendout. --}} @php $sent = $sendout->bounceStickData(); $events = $sendout->bounceStickDataEvents(); $remaining = $sendout->queueCount(); $remainingHint = null; if ($remaining == 0 && $sent['sent'] == 0) { $remainingHint = __($sendout->status == 0 ? 'sendout.stats.failed' : 'sendout.stats.calculating'); } elseif (SystemSetting::read()['allow_send'] == 0 && $remaining > 0) { $remainingHint = __('sendout.cantsend'); } $filterUrl = fn (string $type) => route('sendout.receivers', [$sendout->id, 'status' => \App\Models\StatEvent::$eventTypes[$type]]); @endphp
{{ formatNumber($sent['open']) }} {{ __('sendout.stats.bounce') }} {{ formatNumber($sent['bounce']) }}