{{-- Ändra utskick form: only the start time can change, as before. PUTs start_time and _token to sendout.update; resources/assets/js/nuhet/sendout-form.js writes start_time ("Y-m-d H:i:s") from the date and time inputs, which carry no name of their own. Without JavaScript that never happens, so the submit buttons start disabled (the script enables them) and a banner says why. --}} @php $start = $sendout->start_time; $newsletter = $sendout->newsletter()->withTrashed()->first(); $sender = $sendout->senderProfile()->withTrashed()->first(); $listNames = $sendout->receiverLists()->orderBy('name')->pluck('name'); $longDate = fn ($date) => \App\Support\DisplayDate::timestamp($date); $i18n = ['notChosen' => __('sendout.create.notChosen')]; @endphp