{{-- Importera mottagare form (#2957 slice 4d, card #3018). Included by import/create only. Posts the same fields as the old Dropzone and text modal to imports.store: agreement (1), importFile (a .csv, .txt or .xlsx file; .xlsx is converted to CSV on the server) or importText (one address per line) and _token. resources/assets/js/nuhet/import-form.js sends the file with XMLHttpRequest, because the server answers a file upload with JSON ({import_id} or an error), and goes on to data-edit-url; pasted addresses are a normal POST that the server redirects. --}} @php $i18n = [ 'missingSource' => __('import.nh.missingSource'), 'uploadFailed' => __('import.alert.invalidFileContent'), ]; @endphp