@php $optStatus = [0 => '0 — Ouvert', 1 => '1 — Lancé']; $optOperation = [1 => '1', 2 => '2 — Prêt', 3 => '3']; $optVendor = [1 => '1 — Individuel', 2 => '2 — Coopérative', 3 => '3 — Traitant', 4 => '4 — Individuel']; $sel = fn ($cle) => array_map('intval', array_filter(array_map('trim', explode(',', (string) ($params[$cle] ?? ''))))); $selStatus = $sel('IMPORT_STATUS'); $selOp = $sel('IMPORT_OPERATION_TYPE'); $selVendor = $sel('IMPORT_VENDOR_TYPES'); @endphp