{{-- SMS-utskick, one SMS sendout (DESIGN.md Page patterns 4; #2957 slice 5a, card #3019). Same data as before the reskin (SMSSendoutController@show): the name, the message, "Antal SMS" (SMS rows of type 1) and "Antal SMS-delar" (their parts), plus how many of them have been handed to the operator (the list's "Skickade" number) as a progress bar. The old page had no charts and its replies table was switched off (the controller still passes $replies), so neither is shown. Counted in SQL instead of loading every SMS row, as the old view did. --}} @extends('layouts.nuhet') @section('_pageTitle', __('sms.show.pageTitle', ['name' => $smsSendout->name])) @section('pagename', __('sms.sendout.headerTitle')) @php $longDate = fn ($date) => \App\Support\DisplayDate::timestamp($date); $smsRows = $smsSendout->sms()->where('type', 1); $total = (clone $smsRows)->count(); $parts = (int) (clone $smsRows)->sum('parts'); $sent = (clone $smsRows)->whereNotNull('third_party_id')->count(); $sentHint = __('sms.nhList.show.sentHint', ['sent' => formatNumber($sent), 'total' => formatNumber($total)]); @endphp @section('page')
{{ __('sms.nhList.show.lead') }}
{{ $sentHint }}.