{{-- Ä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
@csrf @method('PUT')
@include('sendout.partials.nh-noscript')

{{ __('sendout.editForm.timeStep') }}

{{ __('sendout.editForm.timeHint') }}

has('start_time')) aria-invalid="true" aria-describedby="start_time-error" @endif>
has('start_time')) aria-invalid="true" aria-describedby="start_time-error" @endif>
@error('start_time')

{{ $message }}

@enderror
{{ $sendout->subject }}{{ $start ? $longDate($start) : '' }} {{ __('sendout.editForm.save') }}